Auxiliary data structure for PMT time calibration.
More...
#include <JDetectorCalibration.hh>
Auxiliary data structure for PMT time calibration.
Definition at line 139 of file JDetectorCalibration.hh.
◆ JPMTCalibration_t() [1/2]
JDETECTOR::JPMTCalibration_t::JPMTCalibration_t |
( |
| ) |
|
|
inline |
◆ JPMTCalibration_t() [2/2]
JDETECTOR::JPMTCalibration_t::JPMTCalibration_t |
( |
const JObjectID & | id, |
|
|
const JCalibration & | calibration ) |
|
inline |
Constructor.
- Parameters
-
id | PMT identifier |
calibration | PMT time calibration |
Definition at line 156 of file JDetectorCalibration.hh.
157 :
160 {}
JCalibration()
Default constructor.
JObjectID()
Default constructor.
◆ getID() [1/2]
int JLANG::JObjectID::getID |
( |
| ) |
const |
|
inlineinherited |
Get identifier.
- Returns
- identifier
Definition at line 50 of file JObjectID.hh.
◆ getID() [2/2]
int & JLANG::JObjectID::getID |
( |
| ) |
|
|
inlineinherited |
Get identifier.
- Returns
- identifier
Definition at line 61 of file JObjectID.hh.
◆ setID()
void JLANG::JObjectID::setID |
( |
const int | id | ) |
|
|
inlineinherited |
Set identifier.
- Parameters
-
Definition at line 72 of file JObjectID.hh.
◆ less() [1/2]
bool JLANG::JObjectID::less |
( |
const JObjectID & | object | ) |
const |
|
inlineinherited |
Less than method.
- Parameters
-
- Returns
- true if this identifier less than given identifier; else false
Definition at line 84 of file JObjectID.hh.
85 {
86 return this->
getID() <
object.getID();
87 }
int getID() const
Get identifier.
◆ less() [2/2]
bool JLANG::JObjectID::less |
( |
const int | id | ) |
const |
|
inlineinherited |
Less than method.
- Parameters
-
- Returns
- true if this identifier less than given identifier; else false
Definition at line 96 of file JObjectID.hh.
97 {
98 return this->
getID() < id;
99 }
◆ more()
bool JLANG::JObjectID::more |
( |
const int | id | ) |
const |
|
inlineinherited |
More than method.
- Parameters
-
- Returns
- true if this identifier greater than given identifier; else false
Definition at line 108 of file JObjectID.hh.
109 {
110 return this->
getID() > id;
111 }
◆ getCalibration() [1/2]
const JCalibration & JDETECTOR::JCalibration::getCalibration |
( |
| ) |
const |
|
inlineinherited |
◆ getCalibration() [2/2]
◆ setCalibration()
void JDETECTOR::JCalibration::setCalibration |
( |
const JCalibration & | cal | ) |
|
|
inlineinherited |
◆ getT0()
double JDETECTOR::JCalibration::getT0 |
( |
| ) |
const |
|
inlineinherited |
◆ setT0()
void JDETECTOR::JCalibration::setT0 |
( |
const double | t0 | ) |
|
|
inlineinherited |
◆ addT0()
void JDETECTOR::JCalibration::addT0 |
( |
const double | t0 | ) |
|
|
inlineinherited |
◆ subT0()
void JDETECTOR::JCalibration::subT0 |
( |
const double | t0 | ) |
|
|
inlineinherited |
◆ to_json
Convert PMT time calibration to JSon.
- Parameters
-
js | json |
object | PMT time calibration |
Definition at line 169 of file JDetectorCalibration.hh.
170 {
172 {
T0_t,
object.getT0() } };
173 }
static const std::string T0_t
static const std::string Serial_t
◆ from_json
Convert JSon to PMT time calibration.
- Parameters
-
js | json |
object | PMT time calibration |
Definition at line 182 of file JDetectorCalibration.hh.
183 {
184 object.setID(js.at(
Serial_t).get<
int>());
185
186 object.setT0(js.at(
T0_t).get<
double>());
187 }
◆ __id
int JLANG::JObjectID::__id |
|
protectedinherited |
◆ t0
double JDETECTOR::JCalibration::t0 |
|
protectedinherited |
The documentation for this struct was generated from the following file: