Jpp 19.3.0-rc.1
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 29 of file JDAQEvaluator.hh.

Constructor & Destructor Documentation

◆ JDAQEvaluator()

KM3NETDAQ::JDAQEvaluator::JDAQEvaluator ( )
inline

Default constructor.

Definition at line 92 of file JDAQEvaluator.hh.

93 {}

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 102 of file JDAQEvaluator.hh.

103 {
104 return value_type(object, JDAQEvaluator::value_type::max());
105 }
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 114 of file JDAQEvaluator.hh.

115 {
116 return (*this)(object.getTimesliceStart());
117 }

◆ 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 126 of file JDAQEvaluator.hh.

127 {
128 return value_type(object.getTimesliceStart(), object.getCounter());
129 }

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