Jpp  17.2.0
the software that should make you happy
 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 339 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 347 of file JDetector/JCalibration.hh.

348  {
349  return JDETECTOR::getTime(hit.getT(), cal);
350  }
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 360 of file JDetector/JCalibration.hh.

361  {
362  return JDETECTOR::putTime(hit.getT(), cal);
363  }
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 373 of file JDetector/JCalibration.hh.

374  {
375  return JDETECTOR::getToT(hit.getToT(), cal);
376  }
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 386 of file JDetector/JCalibration.hh.

387  {
388  return JDETECTOR::putToT(hit.getToT(), cal);
389  }
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: