Jpp
Static Public Member Functions | List of all members
JDETECTOR::JCalibrator< T, true > Struct Template Reference

Template specialisation of JCalibrator for primitive data types. More...

#include <JCalibration.hh>

Static Public Member Functions

static double getTime (const T t1, const JCalibration &cal)
 Get calibrated time. More...
 
static double putTime (const T t1, const JCalibration &cal)
 Get de-calibrated time. More...
 
static double getToT (const T tot, const JCalibration &cal)
 Get calibrated time-over-threshold of hit. More...
 
static double putToT (const T tot, const JCalibration &cal)
 Get de-calibrated time-over-threshold of hit. More...
 

Detailed Description

template<class T>
struct JDETECTOR::JCalibrator< T, true >

Template specialisation of JCalibrator for primitive data types.

Definition at line 254 of file JDetector/JCalibration.hh.

Member Function Documentation

◆ getTime()

template<class T >
static double JDETECTOR::JCalibrator< T, true >::getTime ( const T  t1,
const JCalibration cal 
)
inlinestatic

Get calibrated time.

Parameters
t1time [ns]
calcalibration
Returns
time [ns]

Definition at line 263 of file JDetector/JCalibration.hh.

264  {
265  return t1 + cal.getT0();
266  }

◆ putTime()

template<class T >
static double JDETECTOR::JCalibrator< T, true >::putTime ( const T  t1,
const JCalibration cal 
)
inlinestatic

Get de-calibrated time.

Parameters
t1time [ns]
calcalibration
Returns
time [ns]

Definition at line 276 of file JDetector/JCalibration.hh.

277  {
278  return t1 - cal.getT0();
279  }

◆ getToT()

template<class T >
static double JDETECTOR::JCalibrator< T, true >::getToT ( const T  tot,
const JCalibration cal 
)
inlinestatic

Get calibrated time-over-threshold of hit.

Parameters
tottime-over-threshold [ns]
calcalibration
Returns
time-over-threshold [ns]

Definition at line 289 of file JDetector/JCalibration.hh.

290  {
291  return tot;
292  }

◆ putToT()

template<class T >
static double JDETECTOR::JCalibrator< T, true >::putToT ( const T  tot,
const JCalibration cal 
)
inlinestatic

Get de-calibrated time-over-threshold of hit.

Parameters
tottime-over-threshold [ns]
calcalibration
Returns
time-over-threshold [ns]

Definition at line 302 of file JDetector/JCalibration.hh.

303  {
304  return tot;
305  }

The documentation for this struct was generated from the following file:
JDETECTOR::JCalibration::getT0
double getT0() const
Get time offset.
Definition: JDetector/JCalibration.hh:83