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 { throw cms::Exception( "MTDTopologyModeError" )
15  << "the value " << value << " is not defined."; }
16  return output;
17 
18  }
19 
20 }
Mode MTDStringToEnumParser(const std::string &)
Definition: value.py:1