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, Mode::btlv1etlv5 = 6, Mode::btlv2etlv5 = 7,
  Mode::btlv3etlv8 = 8
}
 

Functions

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

Enumeration Type Documentation

◆ Mode

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

Definition at line 14 of file MTDTopologyMode.h.

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 30 of file MTDTopologyMode.h.

References BTLDetId::barphiflat, btlv2etlv5, btlv3etlv8, Exception, BTLDetId::v2, and BTLDetId::v3.

Referenced by BtlDigiHitsValidation::analyze(), BtlSimHitsValidation::analyze(), BtlLocalRecoValidation::analyze(), BTLDetLayerGeometryBuilder::buildLayers(), MtdTracksValidation::checkAcceptance(), MTDThresholdClusterizer::clusterize(), MTDThresholdClusterizer::copy_to_buffer(), BTLDeviceSim::getHitsResponse(), MTDTimeCalib::getTimeCalib(), mtd::MTDGeomUtil::globalPosition(), mtd::MTDGeomUtil::pixelInModule(), and mtd::MTDGeomUtil::position().

30  {
31  if (topoMode < 0 || topoMode > static_cast<int>(Mode::btlv3etlv8)) {
32  throw cms::Exception("UnknownMTDtopoMode") << "Unknown MTD topology mode :( " << topoMode;
33  } else if (topoMode <= static_cast<int>(BTLDetId::CrysLayout::barphiflat)) {
34  return static_cast<BTLDetId::CrysLayout>(topoMode);
35  } else if (topoMode < static_cast<int>(Mode::btlv2etlv5)) {
37  } else if (topoMode == static_cast<int>(Mode::btlv2etlv5)) {
39  } else {
41  }
42  }
CrysLayout
Definition: BTLDetId.h:46

◆ etlLayoutFromTopoMode()

ETLDetId::EtlLayout MTDTopologyMode::etlLayoutFromTopoMode ( const int &  topoMode)
inline

Returns ETLDetId::EtlLayout as a function of topology mode

Definition at line 46 of file MTDTopologyMode.h.

References BTLDetId::barphiflat, btlv1etlv4, btlv1etlv5, btlv2etlv5, btlv3etlv8, Exception, or, ETLDetId::tp, ETLDetId::v4, ETLDetId::v5, and ETLDetId::v8.

Referenced by MTDParametersFromDD::build(), and ETLDetLayerGeometryBuilder::buildLayers().

46  {
47  if (topoMode < 0 || topoMode > static_cast<int>(Mode::btlv3etlv8)) {
48  throw cms::Exception("UnknownMTDtopoMode") << "Unknown MTD topology mode :( " << topoMode;
49  } else if (topoMode <= static_cast<int>(BTLDetId::CrysLayout::barphiflat)) {
51  } else if (topoMode == static_cast<int>(Mode::btlv1etlv4)) {
53  } else if (topoMode == static_cast<int>(Mode::btlv1etlv5) or topoMode == static_cast<int>(Mode::btlv2etlv5)) {
55  } else {
57  }
58  }
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12

◆ MTDStringToEnumParser()

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

Definition at line 7 of file MTDTopologyMode.cc.

References bar, barphiflat, barzflat, btlv1etlv4, btlv1etlv5, btlv2etlv5, btlv3etlv8, Exception, convertSQLitetoXML_cfg::output, hcallasereventfilter2012_cfi::prefix, AlCaHLTBitMon_QueryRunRegistry::string, tile, and undefined.

Referenced by MTDParametersFromDD::build().

7  {
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 if (value == prefix + "btlv2etlv5") {
23  output = Mode::btlv2etlv5;
24  } else if (value == prefix + "btlv3etlv8") {
25  output = Mode::btlv3etlv8;
26  } else {
27  throw cms::Exception("MTDTopologyModeError") << "the value " << value << " is not defined.";
28  }
29  return output;
30  }
Definition: value.py:1
Definition: output.py:1