Skip to content

Commit 2210847

Browse files
committed
fix(sim) Add GetSaveCurrentEvent() to FairMCApplication
Allows the user to get the state of the fSaveCurrentEvent flag. Fixes issue #1604.
1 parent d16b36a commit 2210847

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fairroot/base/sim/FairMCApplication.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@ class FairMCApplication : public TVirtualMCApplication
219219
*/
220220
void SetSaveCurrentEvent(Bool_t set) { fSaveCurrentEvent = set; }
221221

222+
/**
223+
* Returns the state of the flag deciding whether the current event
224+
* is goint to be stored.
225+
*/
226+
Bool_t GetSaveCurrentEvent() { return fSaveCurrentEvent; }
227+
222228
/**
223229
* Get the current application state.
224230
*/

0 commit comments

Comments
 (0)