FACT++  1.0
void DataLogger::CheckForRunNumber ( const EventImp evt,
unsigned int  index 
)
private

checks whether or not the current info being treated is a run number

Checks whether or not the current info is a run number. If so, then remember it. A run number is required to open the run-log file

Parameters
Ithe current DimInfo

Definition at line 1265 of file datalogger.cc.

References AddNewRunNumber(), fRunNumberService, EventImp::GetTime(), and EventImp::GetXtra().

Referenced by infoCallback().

1266 {
1267  if (index != fRunNumberService)
1268  return;
1269 // int64_t newRun = reinterpret_cast<const uint64_t*>(evt.GetData())[0];
1270  AddNewRunNumber(evt.GetXtra(), evt.GetTime());
1271 }
unsigned int fRunNumberService
pointer to the dim&#39;s subscription that should distribute the run numbers.
Definition: datalogger.cc:387
virtual Time GetTime() const
Definition: EventImp.h:57
int64_t GetXtra() const
Definition: EventImp.h:95
void AddNewRunNumber(int64_t newRun, Time time)
Open the relevant text files related to a particular run.
Definition: datalogger.cc:1216

+ Here is the call graph for this function:

+ Here is the caller graph for this function: