Skip to content

Commit 2e742e5

Browse files
committed
Add status info about exiting/entering to StepInfo
1 parent 9a66710 commit 2e742e5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

include/MCStepLogger/StepInfo.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,10 @@ struct StepInfo {
183183
int nsecondaries = 0;
184184
int prodprocess = -1; // prod process of current track
185185
int nprocessesactive = 0; // number of active processes
186-
bool stopped = false; //
186+
bool stopped = false; // if track was stopped during last step
187+
bool entered = false; // if track entered volume during last step
188+
bool exited = false; // if track exited volume during last step
189+
bool newtrack = false; // if track is new
187190
bool insensitiveRegion = false; // whether step done in sensitive region
188191

189192
const char* getProdProcessAsString() const;

src/StepInfo.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ StepInfo::StepInfo(TVirtualMC* mc)
126126

127127
// was track stopped due to energy limit ??
128128
stopped = mc->IsTrackStop();
129+
exited = mc->IsTrackExiting();
130+
entered = mc->IsTrackEntering();
131+
newtrack = mc->IsNewTrack();
129132
}
130133

131134
const char* StepInfo::getProdProcessAsString() const {

0 commit comments

Comments
 (0)