CMS 3D CMS Logo

MTDTopologyMode.cc
Go to the documentation of this file.
2 
3 #include <string>
4 
5 namespace MTDTopologyMode {
6 
8  std::string prefix("MTDTopologyMode::");
10  if (value == prefix + "tile") {
12  } else if (value == prefix + "bar") {
13  output = Mode::bar;
14  } else if (value == prefix + "barzflat") {
16  } else if (value == prefix + "barphiflat") {
18  } else if (value == prefix + "btlv1etlv4") {
20  } else {
21  throw cms::Exception("MTDTopologyModeError") << "the value " << value << " is not defined.";
22  }
23  return output;
24  }
25 
26 } // namespace MTDTopologyMode
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:32
MTDTopologyMode::MTDStringToEnumParser
Mode MTDStringToEnumParser(const std::string &)
Definition: MTDTopologyMode.cc:7
MTDTopologyMode::Mode::barphiflat
MTDTopologyMode.h
MTDTopologyMode::Mode::barzflat
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MTDTopologyMode
Definition: MTDTopologyMode.h:11
value
Definition: value.py:1
MTDTopologyMode::Mode
Mode
Definition: MTDTopologyMode.h:13
MTDTopologyMode::Mode::tile
Exception
Definition: hltDiff.cc:246
MTDTopologyMode::Mode::bar
MTDTopologyMode::Mode::undefined
MTDTopologyMode::Mode::btlv1etlv4
ZMuMuAnalysisNtupler_cff.prefix
prefix
Definition: ZMuMuAnalysisNtupler_cff.py:14