Template specialisation of hit toolkit for any primitive data type.
More...
#include <JHitToolkit.hh>
template<class JHit_t>
struct JTRIGGER::JHitToolkit< JHit_t, true >
Template specialisation of hit toolkit for any primitive data type.
Definition at line 214 of file JHitToolkit.hh.
Get time of hit.
- Parameters
-
- Returns
- time of hit [ns]
Definition at line 233 of file JHitToolkit.hh.
Get time-over-threshold of hit.
- Parameters
-
- Returns
- 0
Definition at line 245 of file JHitToolkit.hh.
Construct hit.
- Parameters
-
hit | DAQ hit |
cal | calibration |
- Returns
- hit
Definition at line 270 of file JHitToolkit.hh.
double getTime(const JDAQHit &hit, const JCalibration &cal)
Get calibrated time of DAQ hit.
Get end marker.
- Returns
- latest possible hit
Definition at line 281 of file JHitToolkit.hh.
283 return std::numeric_limits<JHit_t>::max();
template<class JHit_t >
static JHit_t JTRIGGER::JHitToolkit< JHit_t, true >::getTimeDifference |
( |
const JHit_t |
first, |
|
|
const JHit_t |
second |
|
) |
| |
|
inlinestatic |
Get time difference between two hits.
- Parameters
-
first | first hit |
second | second hit |
- Returns
- time second hit - time first hit [ns]
Definition at line 294 of file JHitToolkit.hh.
296 return second - first;
Compare time of two hits.
- Parameters
-
first | first value [ns] |
second | second value [ns] |
- Returns
- true if second hit later; else false
Definition at line 307 of file JHitToolkit.hh.
309 return first < second;
The documentation for this struct was generated from the following file: