Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
JDETECTOR::JCalibrator< JHit_t, false > Struct Template Reference

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

#include <JCalibration.hh>

Public Member Functions

double putToT (const JHit_t &hit, const JCalibration &cal)
 Get de-calibrated time-over-threshold of hit. More...
 

Static Public Member Functions

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

Detailed Description

template<class JHit_t>
struct JDETECTOR::JCalibrator< JHit_t, false >

Template specialisation of JCalibrator for non-primitive data types.

It is assumed that the template class has the following methods:

     getT();
     getToT();

which should return the time (ns) and time-over-threshold (ns), respectively.

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

Member Function Documentation

template<class JHit_t >
static double JDETECTOR::JCalibrator< JHit_t, false >::getTime ( const JHit_t &  hit,
const JCalibration cal 
)
inlinestatic

Get calibrated time of hit.

Parameters
hithit
calcalibration
Returns
time [ns]

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

337  {
338  return JDETECTOR::getTime(hit.getT(), cal);
339  }
double getTime(const T &t1, const JCalibration &cal)
Get calibrated time.
template<class JHit_t >
static double JDETECTOR::JCalibrator< JHit_t, false >::putTime ( const JHit_t &  hit,
const JCalibration cal 
)
inlinestatic

Get de-calibrated time of hit.

Parameters
hithit
calcalibration
Returns
time [ns]

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

350  {
351  return JDETECTOR::putTime(hit.getT(), cal);
352  }
double putTime(const T &t1, const JCalibration &cal)
Get de-calibrated time.
template<class JHit_t >
static double JDETECTOR::JCalibrator< JHit_t, false >::getToT ( const JHit_t &  hit,
const JCalibration cal 
)
inlinestatic

Get calibrated time-over-threshold of hit.

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

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

363  {
364  return JDETECTOR::getToT(hit.getToT(), cal);
365  }
double getToT(const T &tot, const JCalibration &cal)
Get calibrated time-over-threshold of hit.
template<class JHit_t >
double JDETECTOR::JCalibrator< JHit_t, false >::putToT ( const JHit_t &  hit,
const JCalibration cal 
)
inline

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

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

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

376  {
377  return JDETECTOR::putToT(hit.getToT(), cal);
378  }
double putToT(const T &tot, const JCalibration &cal)
Get de-calibrated time-over-threshold of hit.

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