CMS 3D CMS Logo

MTDTopologyMode.h
Go to the documentation of this file.
1 #ifndef Geometry_MTDCommonData_MTDTopologyMode_H
2 #define Geometry_MTDCommonData_MTDTopologyMode_H
3 
5 #include <map>
6 #include <string>
7 #include <algorithm>
8 
10 
11 namespace MTDTopologyMode {
12 
13  enum class Mode { undefined = 0, tile = 1, bar = 2, barzflat = 3, barphiflat = 4, btlv1etlv4 = 5, btlv1etlv5 = 6 };
14 
16 
19  inline BTLDetId::CrysLayout crysLayoutFromTopoMode(const int& topoMode) {
20  return (topoMode <= static_cast<int>(BTLDetId::CrysLayout::barphiflat) ? static_cast<BTLDetId::CrysLayout>(topoMode)
22  }
23 
24 } // namespace MTDTopologyMode
25 
26 #endif // Geometry_MTDCommonData_MTDTopologyMode_H
CrysLayout
Definition: BTLDetId.h:70
Mode MTDStringToEnumParser(const std::string &)
BTLDetId::CrysLayout crysLayoutFromTopoMode(const int &topoMode)