CMS 3D CMS Logo

HcalTopologyMode.h
Go to the documentation of this file.
1 #ifndef Geometry_HcalCommonData_HcalTopologyMode_H
2 #define Geometry_HcalCommonData_HcalTopologyMode_H
3 
5 #include <map>
6 #include <string>
7 #include <algorithm>
8 
9 template <typename T>
11  std::map<std::string, T> enumMap;
12 
13 public:
14  StringToEnumParser(void);
15 
17  typename std::map<std::string, T>::const_iterator iValue = enumMap.find(value);
18  if (iValue == enumMap.end())
19  throw cms::Exception("Configuration") << "the value " << value << " is not defined.";
20 
21  return iValue->second;
22  }
23 };
24 
25 namespace HcalTopologyMode {
26  enum Mode { LHC = 0, H2 = 1, SLHC = 2, H2HE = 3, Run3 = 4, Run4 = 5 };
27 
28  enum TriggerMode {
29  TriggerMode_2009 = 0, // HF is summed in 3x2 regions
30  TriggerMode_2016 = 1, // HF is summed in both 3x2 and 1x1 regions
31  TriggerMode_2018legacy = 2, // For the database, before 2017 and 2017plan1 was introduced
32  TriggerMode_2017 = 3, // HF upgraded to QIE10
33  TriggerMode_2017plan1 = 4, // HF upgraded to QIE10, 1 RBX of HE to QIE11
34  TriggerMode_2018 = 5, // HF upgraded to QIE10, HE to QIE11
35  TriggerMode_2021 = 6 // HF upgraded to QIE10, HBHE to QIE11
36  };
37 } // namespace HcalTopologyMode
38 
39 #endif // Geometry_HcalCommonData_HcalTopologyMode_H
Definition: value.py:1
std::map< std::string, T > enumMap
long double T
T parseString(const std::string &value)