Auxiliary class to map detector version to numerical value.  
 More...
#include <JDetectorVersion.hh>
Auxiliary class to map detector version to numerical value. 
Definition at line 131 of file JDetectorVersion.hh.
 
  
  
      
        
          | JDETECTOR::JGetDetectorVersion::JGetDetectorVersion  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 137 of file JDetectorVersion.hh.
  141 #define MAKE_ENTRY(A) std::make_pair(to_upper(getClassname(#A)), A) 
Version with UTC time and UTM position data. 
 
Version with PMT status field and comments. 
 
Version with quaternion and time offset per module. 
 
Version with module status field. 
 
 
 
 
Get numerical value. 
- Parameters
 - 
  
  
 
- Returns
 - numerical value 
 
Definition at line 159 of file JDetectorVersion.hh.
  165       if (i != this->end()) {
 
  168         THROW(JTypeInformationException, 
"Invalid version <" << 
version << 
">");
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
std::string to_upper(const std::string &value)
Convert all character to upper case. 
 
 
 
 
Get numerical value. 
- Parameters
 - 
  
  
 
- Returns
 - numerical value 
 
Definition at line 179 of file JDetectorVersion.hh.
const std::string & getVersion() const 
Get version. 
 
 
 
 
  
  
      
        
          | int JDETECTOR::JGetDetectorVersion::operator[]  | 
          ( | 
          const std::string &  | 
          version | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get index of detector version. 
- Parameters
 - 
  
  
 
- Returns
 - index 
 
Definition at line 191 of file JDetectorVersion.hh.
  198       if (i != this->end()) 
 
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance. 
 
std::string to_upper(const std::string &value)
Convert all character to upper case. 
 
 
 
 
  
  
      
        
          | int JDETECTOR::JGetDetectorVersion::operator[]  | 
          ( | 
          const JDetectorVersion &  | 
          version | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get index of detector version. 
- Parameters
 - 
  
  
 
- Returns
 - index 
 
Definition at line 211 of file JDetectorVersion.hh.
const std::string & getVersion() const 
Get version. 
 
 
 
 
Get index of detector version. 
- Parameters
 - 
  
  
 
- Returns
 - index 
 
Definition at line 223 of file JDetectorVersion.hh.
  227       for (const_iterator i = this->begin(); i != this->end(); ++i) {
 
  228         if (i->second == value) {
 
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance. 
 
 
 
 
The documentation for this struct was generated from the following file: