src
Geometry
HcalCommonData
interface
HcalTopologyMode.h
Go to the documentation of this file.
1
#ifndef Geometry_HcalCommonData_HcalTopologyMode_H
2
#define Geometry_HcalCommonData_HcalTopologyMode_H
3
4
#include "
FWCore/Utilities/interface/Exception.h
"
5
#include <map>
6
#include <string>
7
#include <algorithm>
8
9
template
<
typename
T>
10
class
StringToEnumParser
{
11
std::map<std::string, T>
enumMap
;
12
13
public
:
14
StringToEnumParser
(
void
);
15
16
T
parseString
(
const
std::string
&
value
) {
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
{
27
LHC
= 0,
// Legacy HCAL
28
H2
= 1,
// H2 TB
29
SLHC
= 2,
// Attemptf HE to be used for HGCal
30
H2HE
= 3,
// H2 TB with includng HE
31
Run3
= 4,
// Run3 with inclusionof ZDC
32
Run4
= 5,
// Post LS3
33
Run2A
= 6,
// With extended channels for HF
34
Run2B
= 7,
// With extended channels for HE
35
Run2C
= 8
// With extended channels for HB
36
};
37
38
enum
TriggerMode
{
39
TriggerMode_2009
= 0,
// HF is summed in 3x2 regions
40
TriggerMode_2016
= 1,
// HF is summed in both 3x2 and 1x1 regions
41
TriggerMode_2018legacy
= 2,
// For the database, before 2017 and 2017plan1 was introduced
42
TriggerMode_2017
= 3,
// HF upgraded to QIE10
43
TriggerMode_2017plan1
= 4,
// HF upgraded to QIE10, 1 RBX of HE to QIE11
44
TriggerMode_2018
= 5,
// HF upgraded to QIE10, HE to QIE11
45
TriggerMode_2021
= 6
// HF upgraded to QIE10, HBHE to QIE11
46
};
47
}
// namespace HcalTopologyMode
48
49
#endif // Geometry_HcalCommonData_HcalTopologyMode_H
HcalTopologyMode
Definition:
HcalTopologyMode.h:25
HcalTopologyMode::TriggerMode_2016
Definition:
HcalTopologyMode.h:40
HcalTopologyMode::TriggerMode_2018legacy
Definition:
HcalTopologyMode.h:41
HcalTopologyMode::TriggerMode_2017
Definition:
HcalTopologyMode.h:42
HcalTopologyMode::TriggerMode_2017plan1
Definition:
HcalTopologyMode.h:43
HcalTopologyMode::H2
Definition:
HcalTopologyMode.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
HcalTopologyMode::TriggerMode_2021
Definition:
HcalTopologyMode.h:45
HcalTopologyMode::LHC
Definition:
HcalTopologyMode.h:27
StringToEnumParser
Definition:
HcalTopologyMode.h:10
HcalTopologyMode::TriggerMode
TriggerMode
Definition:
HcalTopologyMode.h:38
HcalTopologyMode::Mode
Mode
Definition:
HcalTopologyMode.h:26
value
Definition:
value.py:1
StringToEnumParser::enumMap
std::map< std::string, T > enumMap
Definition:
HcalTopologyMode.h:11
Exception.h
HcalTopologyMode::SLHC
Definition:
HcalTopologyMode.h:29
HcalTopologyMode::H2HE
Definition:
HcalTopologyMode.h:30
cms::Exception
Definition:
Exception.h:59
HcalTopologyMode::Run3
Definition:
HcalTopologyMode.h:31
StringToEnumParser::StringToEnumParser
StringToEnumParser(void)
HcalTopologyMode::Run2C
Definition:
HcalTopologyMode.h:35
HcalTopologyMode::TriggerMode_2018
Definition:
HcalTopologyMode.h:44
HcalTopologyMode::Run2A
Definition:
HcalTopologyMode.h:33
HcalTopologyMode::Run4
Definition:
HcalTopologyMode.h:32
T
long double T
Definition:
Basic3DVectorLD.h:48
HcalTopologyMode::Run2B
Definition:
HcalTopologyMode.h:34
HcalTopologyMode::TriggerMode_2009
Definition:
HcalTopologyMode.h:39
StringToEnumParser::parseString
T parseString(const std::string &value)
Definition:
HcalTopologyMode.h:16
Generated for CMSSW Reference Manual by
1.8.14