Go to the documentation of this file. 1 #ifndef __JDETECTOR__JCALIBRATION__
2 #define __JDETECTOR__JCALIBRATION__
190 template<class T, bool is_primitive = JLANG::JClass<T>::is_primitive>
265 return t1 + cal.
getT0();
278 return t1 - cal.
getT0();
318 template<
class JHit_t>
double getToT(const T &tot, const JCalibration &cal)
Get calibrated time-over-threshold of hit.
friend std::ostream & operator<<(std::ostream &out, const JCalibration &cal)
Write JCalibration to output.
Interface for binary input.
friend JReader & operator>>(JReader &in, JCalibration &cal)
Read JCalibration from input.
const double TIME_OVER_THRESHOLD_NS
Specification for time-over-threshold corresponding to a one photo-electron pulse.
Data structure for PMT calibration.
double putTime(const T &t1, const JCalibration &cal)
Get de-calibrated time.
JCalibration(const double __t0)
Constructor.
static double getToT(const JHit_t &hit, const JCalibration &cal)
Get calibrated time-over-threshold of hit.
double getT0() const
Get time offset.
void subT0(const double t0)
Subtract time offset.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static double getToT(const T tot, const JCalibration &cal)
Get calibrated time-over-threshold of hit.
double getTime(const T &t1, const JCalibration &cal)
Get calibrated time.
const JCalibration & getCalibration() const
Get calibration.
Interface for binary output.
static double getTime(const JHit_t &hit, const JCalibration &cal)
Get calibrated time of hit.
static double getTime(const T t1, const JCalibration &cal)
Get calibrated time.
double putToT(const T &tot, const JCalibration &cal)
Get de-calibrated time-over-threshold of hit.
void setT0(const double t0)
Set time offset.
static double putTime(const JHit_t &hit, const JCalibration &cal)
Get de-calibrated time of hit.
void setCalibration(const JCalibration &cal)
Set calibration.
static double putToT(const T tot, const JCalibration &cal)
Get de-calibrated time-over-threshold of hit.
Auxiliary class to apply (de-)calibration to template hit.
friend JWriter & operator<<(JWriter &out, const JCalibration &cal)
Write JCalibration to output.
void addT0(const double t0)
Add time offset.
double putToT(const JHit_t &hit, const JCalibration &cal)
Get de-calibrated time-over-threshold of hit.
static double putTime(const T t1, const JCalibration &cal)
Get de-calibrated time.
friend std::istream & operator>>(std::istream &in, JCalibration &cal)
Read JCalibration from input.
JCalibration()
Default constructor.
Auxiliary classes and methods for detector calibration.