Main Page
Namespaces
Classes
Package Documentation
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
{
19
throw
cms::Exception
(
"MTDTopologyModeError"
) <<
"the value "
<< value <<
" is not defined."
;
20
}
21
return
output
;
22
}
23
24
}
// namespace MTDTopologyMode
Exception
Definition:
hltDiff.cc:246
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
MTDTopologyMode::Mode::tile
convertSQLitetoXML_cfg.output
output
Definition:
convertSQLitetoXML_cfg.py:32
MTDTopologyMode.h
MTDTopologyMode::Mode::bar
MTDTopologyMode::Mode::undefined
MTDTopologyMode::MTDStringToEnumParser
Mode MTDStringToEnumParser(const std::string &)
Definition:
MTDTopologyMode.cc:7
value
Definition:
value.py:1
MTDTopologyMode::Mode
Mode
Definition:
MTDTopologyMode.h:11
MTDTopologyMode
Definition:
MTDTopologyMode.h:9
MTDTopologyMode::Mode::barphiflat
ZMuMuAnalysisNtupler_cff.prefix
prefix
Definition:
ZMuMuAnalysisNtupler_cff.py:14
MTDTopologyMode::Mode::barzflat
Generated for CMSSW Reference Manual by
1.8.11