LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Plugin to assign an empty event a time stamp from the clock. More...
Public Member Functions | |
GeneratedEventTimestamp (fhicl::ParameterSet const &pset) | |
Constructor: nothing specific. More... | |
virtual art::Timestamp | eventTimestamp (art::EventID const &id) override |
Returns the time stamp for the specified event. More... | |
void | doBeginJob () |
void | doEndJob () |
void | doBeginRun (Run const &r) |
Timestamp | doBeginRunTimestamp (RunID const &rid) |
void | doBeginSubRun (SubRun const &sr) |
Timestamp | doBeginSubRunTimestamp (SubRunID const &srid) |
Timestamp | doEventTimestamp (EventID const &e) |
Private Attributes | |
art::TimeValue_t const | fOffsetFromEpoch = 0 |
Offset to be added to the chosen clock to get an absolute time. More... | |
Plugin to assign an empty event a time stamp from the clock.
art::EmptyEventTimestampPlugin
The plug in returns a time stamp that is taken from the current time on the execution node, in nanoseconds.
The time is currently defined as absolute from the UNIX "epoch" (first day of year 1970), but its absolute precision should not be relied upon.
Also note that the time is not guaranteed to be monotonic, that is, generating two events in sequence, it is not guaranteed that the second one has a time stamp larger than the previous. This may for example happen if the clock relies on a CPU internal counter, on a machine with multiple CPUs (that is probably all of them).
None so far.
Definition at line 46 of file GeneratedEventTimestamp_plugin.cc.
evgen::GeneratedEventTimestamp::GeneratedEventTimestamp | ( | fhicl::ParameterSet const & | pset | ) |
Constructor: nothing specific.
Definition at line 293 of file GeneratedEventTimestamp_plugin.cc.
References eventTimestamp(), fOffsetFromEpoch, and MF_LOG_TRACE.
|
inlineinherited |
Definition at line 107 of file EmptyEventTimestampPlugin.h.
References breakpoints::beginJob().
|
inlineinherited |
Definition at line 119 of file EmptyEventTimestampPlugin.h.
|
inlineinherited |
Definition at line 125 of file EmptyEventTimestampPlugin.h.
|
inlineinherited |
Definition at line 131 of file EmptyEventTimestampPlugin.h.
|
inlineinherited |
Definition at line 137 of file EmptyEventTimestampPlugin.h.
|
inlineinherited |
Definition at line 113 of file EmptyEventTimestampPlugin.h.
|
inlineinherited |
Definition at line 143 of file EmptyEventTimestampPlugin.h.
|
overridevirtual |
Returns the time stamp for the specified event.
Implements art::EmptyEventTimestampPlugin.
Definition at line 310 of file GeneratedEventTimestamp_plugin.cc.
References DEFINE_ART_EMPTYEVENTTIMESTAMP_PLUGIN, fOffsetFromEpoch, and art::Timestamp::value().
Referenced by GeneratedEventTimestamp().
|
private |
Offset to be added to the chosen clock to get an absolute time.
Definition at line 58 of file GeneratedEventTimestamp_plugin.cc.
Referenced by eventTimestamp(), and GeneratedEventTimestamp().