Auxiliary data structure for PMT status.
More...
#include <JDetectorCalibration.hh>
Auxiliary data structure for PMT status.
Definition at line 194 of file JDetectorCalibration.hh.
◆ JPMTStatus_t() [1/2]
JDETECTOR::JPMTStatus_t::JPMTStatus_t |
( |
| ) |
|
|
inline |
◆ JPMTStatus_t() [2/2]
JDETECTOR::JPMTStatus_t::JPMTStatus_t |
( |
const JObjectID & | id, |
|
|
const JStatus & | status ) |
|
inline |
Constructor.
- Parameters
-
id | PMT identifier |
status | PMT status |
Definition at line 211 of file JDetectorCalibration.hh.
212 :
215 {}
JObjectID()
Default constructor.
JStatus()
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 }
◆ getStatus() [1/3]
int JEEP::JStatus::getStatus |
( |
| ) |
const |
|
inlineinherited |
Get status.
- Returns
- status
Definition at line 63 of file JStatus.hh.
◆ getStatus() [2/3]
JStatus & JEEP::JStatus::getStatus |
( |
| ) |
|
|
inlineinherited |
Get status.
- Returns
- status
Definition at line 74 of file JStatus.hh.
75 {
76 return *this;
77 }
◆ getStatus() [3/3]
int JEEP::JStatus::getStatus |
( |
const int | mask | ) |
const |
|
inlineinherited |
Get status.
- Parameters
-
- Returns
- status
Definition at line 86 of file JStatus.hh.
87 {
88 return (this->
status & mask);
89 }
◆ setStatus()
void JEEP::JStatus::setStatus |
( |
const JStatus & | status | ) |
|
|
inlineinherited |
Set status.
- Parameters
-
Definition at line 97 of file JStatus.hh.
◆ equals()
bool JEEP::JStatus::equals |
( |
const JStatus & | status | ) |
const |
|
inlineinherited |
Equal method.
- Parameters
-
- Returns
- true if this status equal to given status; else false
Definition at line 109 of file JStatus.hh.
◆ has()
bool JEEP::JStatus::has |
( |
const int | bit | ) |
const |
|
inlineinherited |
Test PMT status.
- Parameters
-
Definition at line 120 of file JStatus.hh.
121 {
122 return (this->
status & (1<<bit)) != 0;
123 }
◆ set()
void JEEP::JStatus::set |
( |
const int | bit | ) |
|
|
inlineinherited |
Set PMT status.
- Parameters
-
Definition at line 131 of file JStatus.hh.
◆ reset()
void JEEP::JStatus::reset |
( |
const int | bit | ) |
|
|
inlineinherited |
Reset PMT status.
- Parameters
-
Definition at line 142 of file JStatus.hh.
143 {
144 this->
status &= ~(1<<bit);
145 }
◆ to_json
Convert PMT status to JSon.
- Parameters
-
Definition at line 224 of file JDetectorCalibration.hh.
225 {
228 }
static const std::string STATUS_t
static const std::string Serial_t
◆ from_json
◆ __id
int JLANG::JObjectID::__id |
|
protectedinherited |
◆ status
int JEEP::JStatus::status |
|
protectedinherited |
The documentation for this struct was generated from the following file: