src
Geometry
MTDCommonData
src
MTDTopologyMode.cc
Go to the documentation of this file.
1
#include "
Geometry/MTDCommonData/interface/MTDTopologyMode.h
"
2
3
#include <string>
4
5
namespace
MTDTopologyMode
{
6
7
Mode
MTDStringToEnumParser
(
const
std::string
&
value
) {
8
std::string
prefix
(
"MTDTopologyMode::"
);
9
Mode
output
=
Mode::undefined
;
10
if
(
value
==
prefix
+
"tile"
) {
11
output
=
Mode::tile
;
12
}
else
if
(
value
==
prefix
+
"bar"
) {
13
output
=
Mode::bar
;
14
}
else
if
(
value
==
prefix
+
"barzflat"
) {
15
output
=
Mode::barzflat
;
16
}
else
if
(
value
==
prefix
+
"barphiflat"
) {
17
output
=
Mode::barphiflat
;
18
}
else
if
(
value
==
prefix
+
"btlv1etlv4"
) {
19
output
=
Mode::btlv1etlv4
;
20
}
else
if
(
value
==
prefix
+
"btlv1etlv5"
) {
21
output
=
Mode::btlv1etlv5
;
22
}
else
if
(
value
==
prefix
+
"btlv2etlv5"
) {
23
output
=
Mode::btlv2etlv5
;
24
}
else
if
(
value
==
prefix
+
"btlv3etlv8"
) {
25
output
=
Mode::btlv3etlv8
;
26
}
else
{
27
throw
cms::Exception
(
"MTDTopologyModeError"
) <<
"the value "
<<
value
<<
" is not defined."
;
28
}
29
return
output
;
30
}
31
32
}
// namespace MTDTopologyMode
hcallasereventfilter2012_cfi.prefix
prefix
Definition:
hcallasereventfilter2012_cfi.py:10
Exception
Definition:
hltDiff.cc:245
MTDTopologyMode::Mode::tile
convertSQLitetoXML_cfg.output
output
Definition:
convertSQLitetoXML_cfg.py:72
MTDTopologyMode.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MTDTopologyMode::Mode::bar
MTDTopologyMode::Mode::undefined
MTDTopologyMode::Mode::btlv2etlv5
MTDTopologyMode::Mode::btlv3etlv8
MTDTopologyMode::MTDStringToEnumParser
Mode MTDStringToEnumParser(const std::string &)
Definition:
MTDTopologyMode.cc:7
MTDTopologyMode::Mode::btlv1etlv4
value
Definition:
value.py:1
MTDTopologyMode::Mode
Mode
Definition:
MTDTopologyMode.h:14
MTDTopologyMode
Definition:
MTDTopologyMode.h:12
MTDTopologyMode::Mode::barphiflat
MTDTopologyMode::Mode::btlv1etlv5
output
Definition:
output.py:1
MTDTopologyMode::Mode::barzflat
Generated for CMSSW Reference Manual by
1.8.14