1 #ifndef __JDETECTOR__JCALIBRATION__ 
    2 #define __JDETECTOR__JCALIBRATION__ 
   17 namespace JDETECTOR {}
 
   18 namespace JPP { 
using namespace JDETECTOR; }
 
  196   template<class T, bool is_primitive = JLANG::JClass<T>::is_primitive>
 
  271       return t1 + cal.
getT0();
 
  284       return t1 - cal.
getT0();
 
  324   template<
class JHit_t>
 
static double getTime(const T t1, const JCalibration &cal)
Get calibrated time. 
 
Interface for binary output. 
 
friend std::ostream & operator<<(std::ostream &out, const JCalibration &cal)
Write JCalibration to output. 
 
double getTime(const T &t1, const JCalibration &cal)
Get calibrated time. 
 
static double putToT(const T tot, const JCalibration &cal)
Get de-calibrated time-over-threshold of hit. 
 
const JCalibration & getCalibration() const 
Get calibration. 
 
friend JReader & operator>>(JReader &in, JCalibration &cal)
Read JCalibration from input. 
 
static double getToT(const JHit_t &hit, const JCalibration &cal)
Get calibrated time-over-threshold of hit. 
 
const double TIME_OVER_THRESHOLD_NS
Specification for time-over-threshold corresponding to a one photo-electron pulse. 
 
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
 
void subT0(const double t0)
Subtract time offset. 
 
Data structure for PMT calibration. 
 
double getTime(const Hit &hit)
Get true time of hit. 
 
JCalibration(const double __t0)
Constructor. 
 
static double putTime(const T t1, const JCalibration &cal)
Get de-calibrated time. 
 
double getToT(const T &tot, const JCalibration &cal)
Get calibrated time-over-threshold of hit. 
 
Auxiliary class to apply (de-)calibration to template hit. 
 
double putTime(const T &t1, const JCalibration &cal)
Get de-calibrated time. 
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
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. 
 
Interface for binary input. 
 
double putToT(const T &tot, const JCalibration &cal)
Get de-calibrated time-over-threshold of hit. 
 
const double NOMINAL_GAIN
Specification for normalized gain corresponding to a one photo-electron pulse. 
 
void setT0(const double t0)
Set time offset. 
 
void setCalibration(const JCalibration &cal)
Set calibration. 
 
friend std::istream & operator>>(std::istream &in, JCalibration &cal)
Read JCalibration from input. 
 
double putToT(const JHit_t &hit, const JCalibration &cal)
Get de-calibrated time-over-threshold of hit. 
 
friend JWriter & operator<<(JWriter &out, const JCalibration &cal)
Write JCalibration to output. 
 
void addT0(const double t0)
Add time offset. 
 
static double getToT(const T tot, const JCalibration &cal)
Get calibrated time-over-threshold of hit. 
 
JCalibration()
Default constructor. 
 
double getT0() const 
Get time offset.