Auxiliary class to map detector variant to detector version.
More...
#include <JDetectorVersion.hh>
Auxiliary class to map detector variant to detector version.
Definition at line 70 of file JDetectorVersion.hh.
JDETECTOR::JGetDetectorVersion::JGetDetectorVersion |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 76 of file JDetectorVersion.hh.
80 #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.
Get detector version.
- Parameters
-
- Returns
- version
Definition at line 97 of file JDetectorVersion.hh.
101 const_iterator i = this->find(
to_upper(variant));
103 if (i != this->end()) {
106 THROW(JTypeInformationException,
"Invalid variant <" << variant <<
">");
#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 detector version.
- Parameters
-
- Returns
- version
Definition at line 117 of file JDetectorVersion.hh.
const std::string & getVariant() const
Get variant.
int JDETECTOR::JGetDetectorVersion::operator[] |
( |
const std::string & |
variant | ) |
const |
|
inline |
Get index of detector version.
- Parameters
-
- Returns
- index
Definition at line 129 of file JDetectorVersion.hh.
134 const_iterator i = this->find(
to_upper(variant));
136 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 149 of file JDetectorVersion.hh.
const std::string & getVariant() const
Get variant.
Get index of detector version.
- Parameters
-
- Returns
- index
Definition at line 161 of file JDetectorVersion.hh.
165 for (const_iterator i = this->begin(); i != this->end(); ++i) {
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: