CMS 3D CMS Logo

Enumerations | Functions
MTDTopologyMode Namespace Reference

Enumerations

enum  Mode {
  Mode::undefined =0, Mode::tile =1, Mode::bar =2, Mode::barzflat =3,
  Mode::barphiflat =4
}
 

Functions

Mode MTDStringToEnumParser (const std::string &)
 

Enumeration Type Documentation

enum MTDTopologyMode::Mode
strong

Function Documentation

Mode MTDTopologyMode::MTDStringToEnumParser ( const std::string &  value)

Definition at line 7 of file MTDTopologyMode.cc.

References bar, barphiflat, barzflat, Exception, convertSQLitetoXML_cfg::output, tablePrinter::prefix, AlCaHLTBitMon_QueryRunRegistry::string, tile, and undefined.

7  {
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  }
Definition: value.py:1