CMS 3D CMS Logo

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") {
12  } else if (value == prefix + "bar") {
13  output = Mode::bar;
14  } else if (value == prefix + "barzflat") {
16  } else if (value == prefix + "barphiflat") {
18  } else if (value == prefix + "btlv1etlv4") {
20  } else if (value == prefix + "btlv1etlv5") {
22  } else if (value == prefix + "btlv2etlv5") {
24  } else if (value == prefix + "btlv3etlv8") {
26  } else {
27  throw cms::Exception("MTDTopologyModeError") << "the value " << value << " is not defined.";
28  }
29  return output;
30  }
31 
32 } // namespace MTDTopologyMode
Mode MTDStringToEnumParser(const std::string &)
Definition: value.py:1
Definition: output.py:1