Skip to content
Snippets Groups Projects
Commit 671fbe01 authored by Administrator's avatar Administrator
Browse files

Properly implement new framework function

FairSource implements with FairRoot v18.4.1 the new function SpecifyRunId
which is used to trigger the read of the first event from the input. This
function has to be properly implemented in the source classes.
parent fbc55678
No related branches found
No related tags found
1 merge request!191Fix CbmRoot for FairSoft nov20 usage
......@@ -51,6 +51,8 @@ public:
virtual Bool_t ReInitUnpackers();
virtual Bool_t SpecifyRunId() { return true; };
void Close();
void Reset();
......
......@@ -170,9 +170,16 @@ public:
virtual void Reset() {}
/** @brief Abstract in base class. No implementation here.
/** @brief Implement abstract function from base class
**
** Read the first event from input file to fill the
** event header and get the RunID
**/
virtual Bool_t SpecifyRunId() { return kTRUE; }
virtual Bool_t SpecifyRunId() {
if (ReadEvent(0)) return true;
return false;
}
/** @brief Set event-by-event mode
** @value choice kTRUE if event-by-event mode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment