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