Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
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.
 

Static Public Member Functions

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

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

◆ getTime()

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.

◆ putTime()

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.

◆ getToT()

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.

◆ putToT()

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: