FACT++  1.0
uint32_t EventBuilderWrapper::StartNewRun ( int64_t  maxtime,
int64_t  maxevt,
const pair< string, FAD::Configuration > &  ref 
)
inline

Definition at line 335 of file EventBuilderWrapper.h.

References fRunNumber.

336  {
337  if (maxtime<=0 || maxtime>24*60*60)
338  maxtime = 24*60*60;
339  if (maxevt<=0 || maxevt>INT32_MAX)
340  maxevt = INT32_MAX;
341 
342  if (!InitRunNumber())
343  return 0;
344 
345  const FAD::RunDescription descr =
346  {
347  uint32_t(maxtime),
348  uint32_t(maxevt),
349  fNightAsInt,
350  ref.first,
351  ref.second,
352  };
353 
354  const lock_guard<mutex> lock(mtx_newrun);
355  fExpectedRuns[fRunNumber] = descr;
356  return fRunNumber++;
357  }
map< uint32_t, FAD::RunDescription > fExpectedRuns
bool InitRunNumber(const string &path="")