CMS 3D CMS Logo

Enumerations | Functions
MTDTopologyMode Namespace Reference

Enumerations

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

Functions

Mode MTDStringToEnumParser (const std::string &)
 

Enumeration Type Documentation

enum MTDTopologyMode::Mode
strong
Enumerator
undefined 
tile 
bar 
barzflat 

Definition at line 12 of file MTDTopologyMode.h.

Function Documentation

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

Definition at line 7 of file MTDTopologyMode.cc.

References bar, 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 { throw cms::Exception( "MTDTopologyModeError" )
15  << "the value " << value << " is not defined."; }
16  return output;
17 
18  }
Definition: value.py:1