Auxiliary data structure for module time calibration.
More...
#include <JDetectorCalibration.hh>
Auxiliary data structure for module time calibration.
Definition at line 685 of file JDetectorCalibration.hh.
◆ JModuleCalibration_t() [1/2]
| JDETECTOR::JModuleCalibration_t::JModuleCalibration_t |
( |
| ) |
|
|
inline |
◆ JModuleCalibration_t() [2/2]
| JDETECTOR::JModuleCalibration_t::JModuleCalibration_t |
( |
const int | id, |
|
|
const JCalibration & | calibration ) |
|
inline |
Constructor.
- Parameters
-
| id | module identifier |
| calibration | module time calibration |
Definition at line 702 of file JDetectorCalibration.hh.
703 :
704 JObjectID<JModuleCalibration_t>(id),
706 {}
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 module time calibration to JSon.
- Parameters
-
| js | json |
| object | module time calibration |
Definition at line 715 of file JDetectorCalibration.hh.
716 {
717 js =
json{ {
Id_t,
object.getID() },
718 {
T0_t,
object.getT0() } };
719 }
static const std::string T0_t
static const std::string Id_t
◆ from_json
Convert JSon to module time calibration.
- Parameters
-
| js | json |
| object | module time calibration |
Definition at line 728 of file JDetectorCalibration.hh.
729 {
731 object.setID(js.at(
DOMId_t).get<
int>());
732 else if (js.contains(
Id_t))
733 object.setID(js.at(
Id_t) .get<
int>());
734 else
735 THROW(JNoValue,
"Missing module identifier.");
736
737 object.setT0(js.at(
T0_t).get<
double>());
738 }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
static const std::string DOMId_t
◆ _id_
◆ t0
| double JDETECTOR::JCalibration::t0 |
|
protectedinherited |
The documentation for this struct was generated from the following file: