1 #ifndef __JDETECTOR__JCALIBRATION__ 
    2 #define __JDETECTOR__JCALIBRATION__ 
   18 namespace JDETECTOR {}
 
   19 namespace JPP { 
using namespace JDETECTOR; }
 
  163       const JFormat format(out, getFormat<JCalibration>(
JFormat_t(9, 3, std::ios::fixed | std::ios::showpos)));
 
  165       out << format << cal.
t0;
 
  210   template<class T, bool is_primitive = JLANG::JClass<T>::is_primitive>
 
  285       return t1 + cal.
getT0();
 
  298       return t1 - cal.
getT0();
 
  338   template<
class JHit_t>
 
static double getTime(const T t1, const JCalibration &cal)
Get calibrated time. 
 
JCalibration & getCalibration()
Get calibration. 
 
Interface for binary output. 
 
friend std::ostream & operator<<(std::ostream &out, const JCalibration &cal)
Write calibration 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 calibration 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. 
 
void subT0(const double t0)
Subtract time offset. 
 
Data structure for time 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 calibration 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 calibration 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. 
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
 
JCalibration()
Default constructor. 
 
double getT0() const 
Get time offset.