Auxiliary class to map detector version to detector variant.
More...
#include <JDetectorVersion.hh>
Auxiliary class to map detector version to detector variant.
Definition at line 179 of file JDetectorVersion.hh.
Constructor.
- Parameters
-
Definition at line 187 of file JDetectorVersion.hh.
191 for (JGetDetectorVersion::const_iterator i = input.begin(); i != input.end(); ++i) {
192 this->insert(make_pair(i->second, i->first));
Put detector version.
- Parameters
-
- Returns
- version
Definition at line 203 of file JDetectorVersion.hh.
205 const_iterator i = this->find(
version);
207 if (i != this->end()) {
210 THROW(JTypeInformationException,
"Invalid version <" <<
version <<
">");
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Get index of detector version.
- Parameters
-
- Returns
- index
Definition at line 221 of file JDetectorVersion.hh.
225 const_iterator i = this->find(
version);
227 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.
The documentation for this struct was generated from the following file: