Jpp 20.0.0-195-g190c9e876
the software that should make you happy
Loading...
Searching...
No Matches
KM3NETDAQ::JDAQEvaluator Struct Reference

Auxiliary class to determine time of DAQ objects. More...

#include <JDAQEvaluator.hh>

Classes

struct  value_type
 Type definition of time value. More...
 

Public Member Functions

 JDAQEvaluator ()
 Default constructor.
 
value_type operator() (const JDAQUTCExtended &object) const
 Get time of object.
 
value_type operator() (const JDAQHeader &object) const
 Get time of object.
 
value_type operator() (const JDAQEventHeader &object) const
 Get time of event.
 

Detailed Description

Auxiliary class to determine time of DAQ objects.

The time is relative to the fixed time defined in JDAQUTCExtended.
For DAQ events, the time is offset by the product of the event counter and a constant weight.
To correlate DAQ events with summary data, the weight should be set to a value such that this product is strictly less than half of the frame duration.

Definition at line 30 of file JDAQEvaluator.hh.

Constructor & Destructor Documentation

◆ JDAQEvaluator()

KM3NETDAQ::JDAQEvaluator::JDAQEvaluator ( )
inline

Default constructor.

Definition at line 102 of file JDAQEvaluator.hh.

103 {}

Member Function Documentation

◆ operator()() [1/3]

value_type KM3NETDAQ::JDAQEvaluator::operator() ( const JDAQUTCExtended & object) const
inline

Get time of object.

Parameters
objectUTC time
Returns
time

Definition at line 112 of file JDAQEvaluator.hh.

113 {
114 return value_type(object, JDAQEvaluator::value_type::max());
115 }
static JTriggerCounter_t max()
maximal counter value

◆ operator()() [2/3]

value_type KM3NETDAQ::JDAQEvaluator::operator() ( const JDAQHeader & object) const
inline

Get time of object.

Parameters
objectDAQ header
Returns
time

Definition at line 124 of file JDAQEvaluator.hh.

125 {
126 return (*this)(object.getTimesliceStart());
127 }

◆ operator()() [3/3]

value_type KM3NETDAQ::JDAQEvaluator::operator() ( const JDAQEventHeader & object) const
inline

Get time of event.

Parameters
objectevent header
Returns
time

Definition at line 136 of file JDAQEvaluator.hh.

137 {
138 return value_type(object.getTimesliceStart(), object.getCounter());
139 }

The documentation for this struct was generated from the following file: