1 #ifndef BSEMCCOUNTER_HH 2 #define BSEMCCOUNTER_HH 4 #include "TStopwatch.h" 6 #include "FairLogger.h" 7 #include "FairRootManager.h" 19 template <
class DataStruct>
25 if (fEventnumber % 100 == 0) {
27 Double_t realTime = fTimer.RealTime();
28 fTotalTime += realTime;
29 if (fEventnumber > 0) {
30 LOG(info) <<
"Event: " << fEventnumber <<
" - Last 100 Events took " << realTime <<
" s - expeting to finish in " 31 << (fTotalTime) * ((Double_t)fTotalEventNumber / (Double_t)(fEventnumber)-1);
41 fTotalEventNumber = FairRootManager::Instance()->CheckMaxEventNo();
47 Double_t fTotalTime{0};
48 Int_t fEventnumber{0};
49 Int_t fTotalEventNumber{1000};
virtual void Process()
The actual data transformation (digitizing, clustering, etc.) should be defined here.
Simple Process that prints every 100 Events the number of events.
Helper class to indirect the Parameter fetching via the FairRuntimeDb.
virtual void SetData(DataStruct *)
Pass the data container ptrs to the process, and store pointers in class members. ...
virtual void SetupParameters(const PndParameterRegister *)
Fetch all parameters from the PndParameterRegister.