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
{
12
std::map< std::string, T >
enumMap
;
13
public
:
14
15
StringToEnumParser
(
void
);
16
17
T
parseString
(
const
std::string
&
value
) {
18
typename
std::map<std::string, T>::const_iterator iValue =
enumMap
.find( value );
19
if
( iValue ==
enumMap
.end())
20
throw
cms::Exception
(
"Configuration"
)
21
<<
"the value "
<< value <<
" is not defined."
;
22
23
return
iValue->second;
24
}
25
};
26
27
namespace
HcalTopologyMode {
28
enum
Mode
{
LHC
=0,
H2
=1,
SLHC
=2,
H2HE
=3 };
29
30
enum
TriggerMode
{
31
tm_LHC_PreLS1
=0
// HF is summed in 3x2 regions
32
};
33
}
34
35
#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::Mode
Mode
Definition:
HcalTopologyMode.h:29
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::tm_LHC_PreLS1
Definition:
HcalTopologyMode.h:33
HcalTopologyMode::H2
Definition:
HcalTopologyMode.h:30
StringToEnumParser::parseString
T parseString(const std::string &value)
Definition:
HcalTopologyMode.h:17
Generated for CMSSW Reference Manual by
1.8.5