Auxiliary data structure for module address map.
More...
#include <JDetectorCalibration.hh>
|
| | JModuleMap_t () |
| | Default constructor.
|
| |
| | JModuleMap_t (const int id) |
| | Constructor.
|
| |
| int | getID () const |
| | Get identifier.
|
| |
| int & | getID () |
| | Get identifier.
|
| |
| void | setID (const int id) |
| | Set identifier.
|
| |
| bool | less (const JObjectID &object) const |
| | Less than method.
|
| |
| bool | less (const int id) const |
| | Less than method.
|
| |
| bool | more (const int id) const |
| | More than method.
|
| |
Auxiliary data structure for module address map.
Definition at line 84 of file JDetectorCalibration.hh.
◆ map_type
◆ JModuleMap_t() [1/2]
| JDETECTOR::JModuleMap_t::JModuleMap_t |
( |
| ) |
|
|
inline |
◆ JModuleMap_t() [2/2]
| JDETECTOR::JModuleMap_t::JModuleMap_t |
( |
const int | id | ) |
|
|
inline |
◆ 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 }
◆ to_json
Convert module address map to JSon.
- Parameters
-
| js | json |
| object | module address map |
Definition at line 113 of file JDetectorCalibration.hh.
114 {
115 js =
json{ {
Id_t,
object.getID() },
117 }
static const std::string Id_t
static const std::string DOMMap_t
std::map< std::string, int > map_type
◆ from_json
Convert JSon to module address map.
- Parameters
-
| js | json |
| object | module address map |
Definition at line 126 of file JDetectorCalibration.hh.
127 {
128 object.setID(js.at(
Id_t).get<
int>());
129
131 }
◆ _id_
The documentation for this struct was generated from the following file: