Auxiliary class to determine value of DAQ objects.
More...
#include <JDAQEvaluator.hh>
Auxiliary class to determine value of DAQ objects.
Definition at line 18 of file JDAQEvaluator.hh.
KM3NETDAQ::JDAQEvaluator::JDAQEvaluator |
( |
| ) |
|
|
inline |
double KM3NETDAQ::JDAQEvaluator::operator() |
( |
const JDAQUTCExtended & |
object | ) |
const |
|
inline |
Get value of object.
- Parameters
-
- Returns
- value
Definition at line 32 of file JDAQEvaluator.hh.
34 return object.getTimeNanoSecond() * 1.0e-9;
double KM3NETDAQ::JDAQEvaluator::operator() |
( |
const JDAQHeader & |
object | ) |
const |
|
inline |
Get value of object.
- Parameters
-
- Returns
- value
Definition at line 44 of file JDAQEvaluator.hh.
46 return(*
this)(
object.getTimesliceStart());
double KM3NETDAQ::JDAQEvaluator::operator() |
( |
const JDAQEvent & |
object | ) |
const |
|
inline |
Get value of event.
- Parameters
-
- Returns
- value
Definition at line 56 of file JDAQEvaluator.hh.
58 return object.getTimesliceStart().getTimeNanoSecond() * 1.0e-9 +
object.getCounter() *
getWeight();
static double getWeight()
Get relative weight for JDAQEvent evaluation.
static double KM3NETDAQ::JDAQEvaluator::getWeight |
( |
| ) |
|
|
inlinestatic |
Get relative weight for JDAQEvent evaluation.
This value should be less than the ratio of the expected maximum number of events in a single data taking run and the frame duration in units of nano seconds.
- Returns
- weigth [ns]
Definition at line 71 of file JDAQEvaluator.hh.
The documentation for this struct was generated from the following file: