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 177 of file JDetectorVersion.hh.
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 185 of file JDetectorVersion.hh.
  189       for (JGetDetectorVersion::const_iterator i = input.begin(); i != input.end(); ++i) {
 
  190         this->insert(make_pair(i->second, i->first));
 
 
 
 
Put detector version. 
- Parameters
 - 
  
  
 
- Returns
 - version 
 
Definition at line 201 of file JDetectorVersion.hh.
  203       const_iterator i = this->find(
version);
 
  205       if (i != this->end()) {
 
  208         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 219 of file JDetectorVersion.hh.
  223       const_iterator i = this->find(
version);
 
  225       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: