LArSoft
v06_85_00
Liquid Argon Software toolkit - http://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... | |
virtual void | rewind () override |
Resets the status; since this plug in is stateless, this is a no-op. 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) |
void | doRewind () |
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 297 of file GeneratedEventTimestamp_plugin.cc.
References eventTimestamp(), fOffsetFromEpoch, and LOG_TRACE.
|
inlineinherited |
Definition at line 113 of file EmptyEventTimestampPlugin.h.
References breakpoints::beginJob().
|
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 143 of file EmptyEventTimestampPlugin.h.
|
inlineinherited |
Definition at line 119 of file EmptyEventTimestampPlugin.h.
|
inlineinherited |
Definition at line 149 of file EmptyEventTimestampPlugin.h.
|
inlineinherited |
Definition at line 156 of file EmptyEventTimestampPlugin.h.
|
overridevirtual |
Returns the time stamp for the specified event.
Implements art::EmptyEventTimestampPlugin.
Definition at line 314 of file GeneratedEventTimestamp_plugin.cc.
References DEFINE_ART_EMPTYEVENTTIMESTAMP_PLUGIN, fOffsetFromEpoch, and art::Timestamp::value().
Referenced by GeneratedEventTimestamp().
|
inlineoverridevirtual |
Resets the status; since this plug in is stateless, this is a no-op.
Implements art::EmptyEventTimestampPlugin.
Definition at line 57 of file GeneratedEventTimestamp_plugin.cc.
|
private |
Offset to be added to the chosen clock to get an absolute time.
Definition at line 62 of file GeneratedEventTimestamp_plugin.cc.
Referenced by eventTimestamp(), and GeneratedEventTimestamp().