Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
JDETECTOR::JPMTCalibration_t Struct Reference

Auxiliary data structure for PMT time calibration. More...

#include <JDetectorCalibration.hh>

Inheritance diagram for JDETECTOR::JPMTCalibration_t:
JLANG::JObjectID JDETECTOR::JCalibration JLANG::JComparable< JObjectID > JLANG::JComparable< JObjectID, int >

Public Member Functions

 JPMTCalibration_t ()
 Default constructor. More...
 
 JPMTCalibration_t (const JObjectID &id, const JCalibration &calibration)
 Constructor. More...
 
int getID () const
 Get identifier. More...
 
void setID (const int id)
 Set identifier. More...
 
bool less (const JObjectID &object) const
 Less than method. More...
 
bool less (const int id) const
 Less than method. More...
 
bool more (const int id) const
 More than method. More...
 
const JCalibrationgetCalibration () const
 Get calibration. More...
 
void setCalibration (const JCalibration &cal)
 Set calibration. More...
 
double getT0 () const
 Get time offset. More...
 
void setT0 (const double t0)
 Set time offset. More...
 
void addT0 (const double t0)
 Add time offset. More...
 
void subT0 (const double t0)
 Subtract time offset. More...
 

Protected Attributes

int __id
 
double t0
 

Detailed Description

Auxiliary data structure for PMT time calibration.

Definition at line 157 of file JDetectorCalibration.hh.

Constructor & Destructor Documentation

JDETECTOR::JPMTCalibration_t::JPMTCalibration_t ( )
inline

Default constructor.

Definition at line 164 of file JDetectorCalibration.hh.

165  {}
JDETECTOR::JPMTCalibration_t::JPMTCalibration_t ( const JObjectID id,
const JCalibration calibration 
)
inline

Constructor.

Parameters
idPMT identifier
calibrationPMT time calibration

Definition at line 174 of file JDetectorCalibration.hh.

175  :
176  JObjectID (id),
177  JCalibration(calibration)
178  {}
JObjectID()
Default constructor.
Definition: JObjectID.hh:35
JCalibration()
Default constructor.

Member Function Documentation

int JLANG::JObjectID::getID ( ) const
inlineinherited

Get identifier.

Returns
identifier

Definition at line 55 of file JObjectID.hh.

56  {
57  return __id;
58  }
void JLANG::JObjectID::setID ( const int  id)
inlineinherited

Set identifier.

Parameters
ididentifier

Definition at line 66 of file JObjectID.hh.

67  {
68  this->__id = id;
69  }
bool JLANG::JObjectID::less ( const JObjectID object) const
inlineinherited

Less than method.

Parameters
objectobject identifier
Returns
true if this identifier less than given identifier; else false

Definition at line 78 of file JObjectID.hh.

79  {
80  return this->getID() < object.getID();
81  }
int getID() const
Get identifier.
Definition: JObjectID.hh:55
bool JLANG::JObjectID::less ( const int  id) const
inlineinherited

Less than method.

Parameters
ididentifier
Returns
true if this identifier less than given identifier; else false

Definition at line 90 of file JObjectID.hh.

91  {
92  return this->getID() < id;
93  }
int getID() const
Get identifier.
Definition: JObjectID.hh:55
bool JLANG::JObjectID::more ( const int  id) const
inlineinherited

More than method.

Parameters
ididentifier
Returns
true if this identifier greater than given identifier; else false

Definition at line 102 of file JObjectID.hh.

103  {
104  return this->getID() > id;
105  }
int getID() const
Get identifier.
Definition: JObjectID.hh:55
const JCalibration& JDETECTOR::JCalibration::getCalibration ( ) const
inlineinherited

Get calibration.

Returns
calibration

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

67  {
68  return *this;
69  }
void JDETECTOR::JCalibration::setCalibration ( const JCalibration cal)
inlineinherited

Set calibration.

Parameters
calcalibration

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

78  {
79  *this = cal;
80  }
double JDETECTOR::JCalibration::getT0 ( ) const
inlineinherited

Get time offset.

Returns
time offset [ns]

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

89  {
90  return t0;
91  }
void JDETECTOR::JCalibration::setT0 ( const double  t0)
inlineinherited

Set time offset.

Parameters
t0time offset [ns]

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

100  {
101  this->t0 = t0;
102  }
void JDETECTOR::JCalibration::addT0 ( const double  t0)
inlineinherited

Add time offset.

Parameters
t0time offset [ns]

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

111  {
112  this->t0 += t0;
113  }
void JDETECTOR::JCalibration::subT0 ( const double  t0)
inlineinherited

Subtract time offset.

Parameters
t0time offset [ns]

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

122  {
123  this->t0 -= t0;
124  }

Member Data Documentation

int JLANG::JObjectID::__id
protectedinherited

Definition at line 160 of file JObjectID.hh.

double JDETECTOR::JCalibration::t0
protectedinherited

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


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