Jpp
 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 263 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 272 of file JDetector/JCalibration.hh.

273  {
274  return t1 + cal.getT0();
275  }
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 285 of file JDetector/JCalibration.hh.

286  {
287  return t1 - cal.getT0();
288  }
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 298 of file JDetector/JCalibration.hh.

299  {
300  return tot;
301  }
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 311 of file JDetector/JCalibration.hh.

312  {
313  return tot;
314  }

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