CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CmsMTDStringToEnum.h
Go to the documentation of this file.
1 #ifndef Geometry_MTDNumberingBuilder_CmsMTDStringToEnum_H
2 #define Geometry_MTDNumberingBuilder_CmsMTDStringToEnum_H
3 
5 #include <string>
6 #include <map>
11 public:
12  static constexpr size_t kModStrLen = 7;
13 
14  using MapEnumType = std::map<std::string, GeometricTimingDet::GeometricTimingEnumType>;
15 
17 
18 private:
19  static MapEnumType const& map() { return m_impl.map_; }
20 
21  // a quick fix
22  struct Impl {
23  Impl();
25  };
26 
27  static const Impl m_impl;
28 };
29 #endif
GeometricTimingDet::GeometricTimingEnumType type(std::string const &) const
static const Impl m_impl
static constexpr size_t kModStrLen
std::map< std::string, GeometricTimingDet::GeometricTimingEnumType > MapEnumType
static MapEnumType const & map()
enum GTDEnumType{unknown=100, MTD=0, BTL=1, BTLLayer=2, BTLTray=3, BTLModule=4, BTLSensor=5, BTLCrystal=6, ETL=7, ETLDisc=8, ETLRing=9, ETLModule=10, ETLSensor=11} GeometricTimingEnumType