Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
public
:
13
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"
)
20
<<
"the value "
<< value <<
" is not defined."
;
21
22
return
iValue->second;
23
}
24
};
25
26
namespace
HcalTopologyMode {
27
enum
Mode
{
LHC
=0,
H2
=1,
SLHC
=2,
H2HE
=3 };
28
29
enum
TriggerMode
{
30
tm_LHC_RCT
=0,
// HF is summed in 3x2 regions
31
tm_LHC_RCT_and_1x1
=1,
// HF is summed in both 3x2 and 1x1 regions
32
tm_LHC_1x1
=2
// HF is summed in 1x1 regions
33
};
34
}
35
36
#endif // CALO_TOPOLOGY_HCAL_TOPOLOGY_MODE_H
HcalTopologyMode::LHC
Definition:
HcalTopologyMode.h:30
relativeConstraints.value
tuple value
Definition:
relativeConstraints.py:54
StringToEnumParser::enumMap
std::map< std::string, T > enumMap
Definition:
HcalTopologyMode.h:12
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
StringToEnumParser
Definition:
HcalTopologyMode.h:10
HcalTopologyMode::SLHC
Definition:
HcalTopologyMode.h:30
HcalTopologyMode::TriggerMode
TriggerMode
Definition:
HcalTopologyMode.h:32
HcalTopologyMode::tm_LHC_RCT_and_1x1
Definition:
HcalTopologyMode.h:31
HcalTopologyMode::tm_LHC_RCT
Definition:
HcalTopologyMode.h:30
HcalTopologyMode::Mode
Mode
Definition:
HcalTopologyMode.h:29
HcalTopologyMode::tm_LHC_1x1
Definition:
HcalTopologyMode.h:32
Exception.h
HcalTopologyMode::H2HE
Definition:
HcalTopologyMode.h:30
cms::Exception
Definition:
Exception.h:68
StringToEnumParser::StringToEnumParser
StringToEnumParser(void)
T
long double T
Definition:
Basic3DVectorLD.h:57
HcalTopologyMode::H2
Definition:
HcalTopologyMode.h:30
StringToEnumParser::parseString
T parseString(const std::string &value)
Definition:
HcalTopologyMode.h:16
Generated for CMSSW Reference Manual by
1.8.5