Jpp  18.3.0-rc.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 274 of file JDetector/JCalibration.hh.

Member Function Documentation

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 283 of file JDetector/JCalibration.hh.

284  {
285  return t1 + cal.getT0();
286  }
double getT0() const
Get time offset.
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 296 of file JDetector/JCalibration.hh.

297  {
298  return t1 - cal.getT0();
299  }
double getT0() const
Get time offset.
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 309 of file JDetector/JCalibration.hh.

310  {
311  return tot;
312  }
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 322 of file JDetector/JCalibration.hh.

323  {
324  return tot;
325  }

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