CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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") {
11  output = Mode::tile;
12  } else if (value == prefix + "bar") {
13  output = Mode::bar;
14  } else if (value == prefix + "barzflat") {
15  output = Mode::barzflat;
16  } else if (value == prefix + "barphiflat") {
17  output = Mode::barphiflat;
18  } else if (value == prefix + "btlv1etlv4") {
19  output = Mode::btlv1etlv4;
20  } else if (value == prefix + "btlv1etlv5") {
21  output = Mode::btlv1etlv5;
22  } else {
23  throw cms::Exception("MTDTopologyModeError") << "the value " << value << " is not defined.";
24  }
25  return output;
26  }
27 
28 } // namespace MTDTopologyMode
Mode MTDStringToEnumParser(const std::string &)