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 142 of file JDetectorVersion.hh.
◆ JGetDetectorVersion()
JDETECTOR::JGetDetectorVersion::JGetDetectorVersion |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 148 of file JDetectorVersion.hh.
152 #define MAKE_ENTRY(A) std::make_pair(to_upper(getClassname(#A)), A)
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
@ V2
Version with UTC time and UTM position data.
@ V5
Version with module status field.
@ V4
Version with quaternion and time offset per module.
@ V3
Version with PMT status field and comments.
◆ operator()() [1/2]
Get numerical value.
- Parameters
-
- Returns
- numerical value
Definition at line 170 of file JDetectorVersion.hh.
174 const_iterator i = this->find(
to_upper(version));
176 if (i != this->end()) {
#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.
◆ operator()() [2/2]
Get numerical value.
- Parameters
-
- Returns
- numerical value
Definition at line 190 of file JDetectorVersion.hh.
const std::string & getVersion() const
Get version.
◆ operator[]() [1/3]
int JDETECTOR::JGetDetectorVersion::operator[] |
( |
const std::string & |
version | ) |
const |
|
inline |
Get index of detector version.
- Parameters
-
- Returns
- index
Definition at line 202 of file JDetectorVersion.hh.
207 const_iterator i = this->find(
to_upper(version));
209 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.
◆ operator[]() [2/3]
int JDETECTOR::JGetDetectorVersion::operator[] |
( |
const JDetectorVersion & |
version | ) |
const |
|
inline |
◆ operator[]() [3/3]
Get index of detector version.
- Parameters
-
- Returns
- index
Definition at line 234 of file JDetectorVersion.hh.
238 for (const_iterator i = this->begin(); i != this->end(); ++i) {
239 if (i->second == value) {
The documentation for this struct was generated from the following file: