Main Page
Namespaces
Classes
Package Documentation
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
9
std::string
prefix
(
"MTDTopologyMode::"
);
10
Mode
output
=
Mode::undefined
;
11
if
( value == prefix+
"tile"
) { output =
Mode::tile
; }
12
else
if
( value == prefix+
"bar"
) { output =
Mode::bar
; }
13
else
if
( value == prefix+
"barzflat"
) { output =
Mode::barzflat
; }
14
else
if
( value == prefix+
"barphiflat"
) { output =
Mode::barphiflat
; }
15
else
{
throw
cms::Exception
(
"MTDTopologyModeError"
)
16
<<
"the value "
<< value <<
" is not defined."
; }
17
return
output
;
18
19
}
20
21
}
Exception
Definition:
hltDiff.cc:292
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
tablePrinter.prefix
prefix
Definition:
tablePrinter.py:65
value
Definition:
value.py:1
MTDTopologyMode::Mode
Mode
Definition:
MTDTopologyMode.h:12
MTDTopologyMode
Definition:
MTDTopologyMode.h:10
MTDTopologyMode::Mode::barphiflat
MTDTopologyMode::Mode::barzflat
Generated for CMSSW Reference Manual by
1.8.11