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

334  {
335  return JDETECTOR::getTime(hit.getT(), cal);
336  }
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 346 of file JDetector/JCalibration.hh.

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

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

373  {
374  return JDETECTOR::putToT(hit.getToT(), cal);
375  }
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: