Jpp  19.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | List of all members
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. More...
 
value_type operator() (const JDAQUTCExtended &object) const
 Get time of object. More...
 
value_type operator() (const JDAQHeader &object) const
 Get time of object. More...
 
value_type operator() (const JDAQEventHeader &object) const
 Get time of event. More...
 

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

Constructor & Destructor Documentation

KM3NETDAQ::JDAQEvaluator::JDAQEvaluator ( )
inline

Default constructor.

Definition at line 67 of file JDAQEvaluator.hh.

68  {}

Member Function Documentation

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

Get time of object.

Parameters
objectUTC time
Returns
time

Definition at line 77 of file JDAQEvaluator.hh.

78  {
79  return { object, 0 };
80  }
value_type KM3NETDAQ::JDAQEvaluator::operator() ( const JDAQHeader object) const
inline

Get time of object.

Parameters
objectDAQ header
Returns
time

Definition at line 89 of file JDAQEvaluator.hh.

90  {
91  return(*this)(object.getTimesliceStart());
92  }
value_type KM3NETDAQ::JDAQEvaluator::operator() ( const JDAQEventHeader object) const
inline

Get time of event.

Parameters
objectevent header
Returns
time

Definition at line 101 of file JDAQEvaluator.hh.

102  {
103  return { object.getTimesliceStart(), object.getCounter() };
104  }

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