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 };
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
BTLDetId.h
MTDTopologyMode::MTDStringToEnumParser
Mode MTDStringToEnumParser(const std::string &)
Definition: MTDTopologyMode.cc:7
MTDTopologyMode::Mode::barphiflat
BTLDetId::CrysLayout
CrysLayout
Definition: BTLDetId.h:70
BTLDetId::CrysLayout::barphiflat
MTDTopologyMode::Mode::barzflat
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MTDTopologyMode
Definition: MTDTopologyMode.h:11
MTDTopologyMode::crysLayoutFromTopoMode
BTLDetId::CrysLayout crysLayoutFromTopoMode(const int &topoMode)
Definition: MTDTopologyMode.h:19
MTDTopologyMode::Mode
Mode
Definition: MTDTopologyMode.h:13
MTDTopologyMode::Mode::tile
MTDTopologyMode::Mode::bar
Exception.h
MTDTopologyMode::Mode::undefined
MTDTopologyMode::Mode::btlv1etlv4