Auxiliary data structure for module status.  
 More...
#include <JDetectorCalibration.hh>
Auxiliary data structure for module status. 
Definition at line 626 of file JDetectorCalibration.hh.
 
◆ JModuleStatus_t() [1/2]
  
  
      
        
          | JDETECTOR::JModuleStatus_t::JModuleStatus_t  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ JModuleStatus_t() [2/2]
  
  
      
        
          | JDETECTOR::JModuleStatus_t::JModuleStatus_t  | 
          ( | 
          const JObjectID & |           id,  | 
         
        
           | 
           | 
          const JStatus & |           status ) | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
    | id | module identifier  | 
    | status | module status  | 
  
   
Definition at line 643 of file JDetectorCalibration.hh.
  644                                             :
  647    {}
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 module status to JSon. 
- Parameters
 - 
  
    | js | json  | 
    | object | module status  | 
  
   
Definition at line 656 of file JDetectorCalibration.hh.
  657    {
  658      js = 
json{ { 
Id_t,     
object.getID() },
 
  660    }
static const std::string Id_t
 
static const std::string STATUS_t
 
 
 
 
◆ from_json
Convert JSon to module status. 
- Parameters
 - 
  
    | js | json  | 
    | object | module status  | 
  
   
Definition at line 669 of file JDetectorCalibration.hh.
  670    {
  672        object.setID(js.at(
DOMId_t).get<
int>());
 
  673      else if (js.contains(
Id_t))
 
  674        object.setID(js.at(
Id_t)   .get<
int>());
 
  675      else
  676        THROW(JNoValue, 
"Missing module identifier.");
 
  677 
  678      object.setStatus(js.at(
STATUS_t).get<
int>());
 
  679    }
#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   | 
  
 
 
◆ status
  
  
      
        
          | int JEEP::JStatus::status | 
         
       
   | 
  
protectedinherited   | 
  
 
 
The documentation for this struct was generated from the following file: