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

258  {
259  return t1 + cal.getT0();
260  }
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 270 of file JDetector/JCalibration.hh.

271  {
272  return t1 - cal.getT0();
273  }
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 283 of file JDetector/JCalibration.hh.

284  {
285  return tot;
286  }
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 296 of file JDetector/JCalibration.hh.

297  {
298  return tot;
299  }

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