CMS 3D CMS Logo

MTDTopologyMode.cc
Go to the documentation of this file.
2 
3 #include <string>
4 
5 namespace MTDTopologyMode {
6 
8 
9  std::string prefix("MTDTopologyMode::");
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 }
Mode MTDStringToEnumParser(const std::string &)
Definition: value.py:1