Auxiliary data structure for PMT time calibration.
More...
#include <JDetectorCalibration.hh>
Auxiliary data structure for PMT time calibration.
Definition at line 138 of file JDetectorCalibration.hh.
◆ JPMTCalibration_t() [1/2]
| JDETECTOR::JPMTCalibration_t::JPMTCalibration_t |
( |
| ) |
|
|
inline |
◆ JPMTCalibration_t() [2/2]
| JDETECTOR::JPMTCalibration_t::JPMTCalibration_t |
( |
const int | id, |
|
|
const JCalibration & | calibration ) |
|
inline |
Constructor.
- Parameters
-
| id | PMT identifier |
| calibration | PMT time calibration |
Definition at line 155 of file JDetectorCalibration.hh.
156 :
157 JObjectID<JPMTCalibration_t>(id),
159 {}
JCalibration()
Default constructor.
◆ getID() [1/2]
Get identifier.
- Returns
- identifier
Definition at line 63 of file JObjectID.hh.
◆ getID() [2/2]
Get identifier.
- Returns
- identifier
Definition at line 74 of file JObjectID.hh.
◆ setID()
Set identifier.
- Parameters
-
Definition at line 85 of file JObjectID.hh.
◆ less() [1/2]
Less than method.
- Parameters
-
- Returns
- true if this identifier less than given identifier; else false
Definition at line 97 of file JObjectID.hh.
98 {
99 return this->
getID() <
object.getID();
100 }
int getID() const
Get identifier.
◆ less() [2/2]
Less than method.
- Parameters
-
- Returns
- true if this identifier less than given identifier; else false
Definition at line 109 of file JObjectID.hh.
110 {
111 return this->
getID() < id;
112 }
◆ more()
More than method.
- Parameters
-
- Returns
- true if this identifier greater than given identifier; else false
Definition at line 121 of file JObjectID.hh.
122 {
123 return this->
getID() > id;
124 }
◆ 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 168 of file JDetectorCalibration.hh.
169 {
171 {
T0_t,
object.getT0() } };
172 }
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 181 of file JDetectorCalibration.hh.
182 {
183 object.setID(js.at(
Serial_t).get<
int>());
184
185 object.setT0(js.at(
T0_t).get<
double>());
186 }
◆ _id_
◆ t0
| double JDETECTOR::JCalibration::t0 |
|
protectedinherited |
The documentation for this struct was generated from the following file: