Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
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.
 
static double putTime (const T t1, const JCalibration &cal)
 Get de-calibrated time.
 
static double getToT (const T tot, const JCalibration &cal)
 Get calibrated time-over-threshold of hit.
 
static double putToT (const T tot, const JCalibration &cal)
 Get de-calibrated time-over-threshold of hit.
 

Detailed Description

template<class T>
struct JDETECTOR::JCalibrator< T, true >

Template specialisation of JCalibrator for primitive data types.

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

Member Function Documentation

◆ getTime()

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

284 {
285 return t1 + cal.getT0();
286 }

◆ putTime()

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

297 {
298 return t1 - cal.getT0();
299 }

◆ getToT()

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

310 {
311 return tot;
312 }

◆ putToT()

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

323 {
324 return tot;
325 }

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