CMS 3D CMS Logo

Enumerations | Functions
MTDTopologyMode Namespace Reference

Enumerations

enum  Mode {
  Mode::undefined = 0, Mode::tile = 1, Mode::bar = 2, Mode::barzflat = 3,
  Mode::barphiflat = 4, Mode::btlv1etlv4 = 5
}
 

Functions

BTLDetId::CrysLayout crysLayoutFromTopoMode (const int &topoMode)
 
Mode MTDStringToEnumParser (const std::string &)
 

Enumeration Type Documentation

◆ Mode

enum MTDTopologyMode::Mode
strong
Enumerator
undefined 
tile 
bar 
barzflat 
barphiflat 
btlv1etlv4 

Definition at line 13 of file MTDTopologyMode.h.

13 { undefined = 0, tile = 1, bar = 2, barzflat = 3, barphiflat = 4, btlv1etlv4 = 5 };

Function Documentation

◆ crysLayoutFromTopoMode()

BTLDetId::CrysLayout MTDTopologyMode::crysLayoutFromTopoMode ( const int &  topoMode)
inline

Returns BTLDetId::CrysLayout as a function of topology mode (to accomodate TDR/post TDR ETL scenarios).

Definition at line 19 of file MTDTopologyMode.h.

19  {
20  return (topoMode <= static_cast<int>(BTLDetId::CrysLayout::barphiflat) ? static_cast<BTLDetId::CrysLayout>(topoMode)
22  }

References BTLDetId::barphiflat.

Referenced by BtlDigiHitsValidation::analyze(), BtlSimHitsValidation::analyze(), BtlLocalRecoValidation::analyze(), MTDThresholdClusterizer::clusterize(), BTLDeviceSim::getHitsResponse(), and MTDTimeCalib::getTimeCalib().

◆ MTDStringToEnumParser()

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

Definition at line 7 of file MTDTopologyMode.cc.

7  {
8  std::string prefix("MTDTopologyMode::");
9  Mode output = Mode::undefined;
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 {
21  throw cms::Exception("MTDTopologyModeError") << "the value " << value << " is not defined.";
22  }
23  return output;
24  }

References bar, barphiflat, barzflat, btlv1etlv4, Exception, convertSQLitetoXML_cfg::output, ZMuMuAnalysisNtupler_cff::prefix, AlCaHLTBitMon_QueryRunRegistry::string, tile, and undefined.

Referenced by MTDParametersFromDD::build().

HcalTopologyMode::Mode
Mode
Definition: HcalTopologyMode.h:26
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:32
MTDTopologyMode::Mode::barphiflat
DDAxes::undefined
BTLDetId::CrysLayout::barphiflat
MTDTopologyMode::Mode::barzflat
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
value
Definition: value.py:1
MTDTopologyMode::Mode::tile
Exception
Definition: hltDiff.cc:246
MTDTopologyMode::Mode::bar
MTDTopologyMode::Mode::btlv1etlv4
ZMuMuAnalysisNtupler_cff.prefix
prefix
Definition: ZMuMuAnalysisNtupler_cff.py:14