FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
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
}
EventBuilderWrapper::mtx_newrun
mutex mtx_newrun
Definition:
EventBuilderWrapper.h:333
EventBuilderWrapper::fExpectedRuns
map< uint32_t, FAD::RunDescription > fExpectedRuns
Definition:
EventBuilderWrapper.h:331
EventBuilderWrapper::fNightAsInt
uint32_t fNightAsInt
Definition:
EventBuilderWrapper.h:111
EventBuilderWrapper::fRunNumber
uint32_t fRunNumber
Definition:
EventBuilderWrapper.h:112
EventBuilderWrapper::InitRunNumber
bool InitRunNumber(const string &path="")
Definition:
EventBuilderWrapper.h:119
EventBuilderWrapper
Generated on Sun Sep 18 2016 20:50:50 for FACT++ by
1.8.11