CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Attributes
MTDTopology Class Reference

#include <MTDTopology.h>

Classes

struct  BitmaskAndSubdet
 
struct  BTLValues
 
struct  ETLValues
 
class  SameLayerComparator
 

Public Types

enum  DetIdFields {
  BTLModule, BTLTray, BTLLayer, BTLSide,
  ETLModule, ETLRing, ETLLayer, ETLSide,
  DETID_FIELDS_MAX
}
 

Public Member Functions

DetId btlDetId (uint32_t side, uint32_t layer, uint32_t tray, uint32_t module) const
 
std::pair< DetId, SameLayerComparatorbtlDetIdLayerComparator (uint32_t side, uint32_t layer) const
 
unsigned int btlLayer (const DetId &id) const
 
unsigned int btlModule (const DetId &id) const
 
unsigned int btlSide (const DetId &id) const
 
unsigned int btlTray (const DetId &id) const
 
DetId etlDetId (uint32_t side, uint32_t layer, uint32_t ring, uint32_t module) const
 
std::pair< DetId, SameLayerComparatoretlDetIdDiskComparator (uint32_t side, uint32_t layer) const
 
unsigned int etlDisc (const DetId &id) const
 
unsigned int etlLayer (const DetId &id) const
 
unsigned int etlModule (const DetId &id) const
 
unsigned int etlRing (const DetId &id) const
 
unsigned int etlSide (const DetId &id) const
 
unsigned int getField (const DetId &id, DetIdFields idx) const
 
int getMTDLayerNumber (const DetId &id) const
 
int getMTDTopologyMode () const
 
bool hasField (const DetId &id, DetIdFields idx) const
 
unsigned int layer (const DetId &id) const
 
unsigned int module (const DetId &id) const
 
 MTDTopology (const int &topologyMode, const BTLValues &btl, const ETLValues &etl)
 
std::string print (DetId detid) const
 
unsigned int ring (const DetId &id) const
 
unsigned int side (const DetId &id) const
 
unsigned int tray (const DetId &id) const
 

Private Attributes

const BitmaskAndSubdet bits_per_field [DETID_FIELDS_MAX]
 
const BTLValues btlVals_
 
const ETLValues etlVals_
 
const int mtdTopologyMode_
 

Detailed Description

Definition at line 16 of file MTDTopology.h.

Member Enumeration Documentation

Enumerator
BTLModule 
BTLTray 
BTLLayer 
BTLSide 
ETLModule 
ETLRing 
ETLLayer 
ETLSide 
DETID_FIELDS_MAX 

Definition at line 40 of file MTDTopology.h.

Constructor & Destructor Documentation

MTDTopology::MTDTopology ( const int &  topologyMode,
const BTLValues btl,
const ETLValues etl 
)

Definition at line 11 of file MTDTopology.cc.

References MTDDetId::BTL, BTLLayer, BTLModule, BTLSide, BTLTray, btlVals_, MTDDetId::ETL, ETLLayer, ETLModule, ETLRing, ETLSide, etlVals_, MTDTopology::BTLValues::layerMask_, MTDTopology::ETLValues::layerMask_, MTDTopology::BTLValues::layerStartBit_, MTDTopology::ETLValues::layerStartBit_, MTDTopology::BTLValues::moduleMask_, MTDTopology::ETLValues::moduleMask_, MTDTopology::BTLValues::moduleStartBit_, MTDTopology::ETLValues::moduleStartBit_, MTDTopology::ETLValues::ringMask_, MTDTopology::ETLValues::ringStartBit_, MTDTopology::BTLValues::sideMask_, MTDTopology::ETLValues::sideMask_, MTDTopology::BTLValues::sideStartBit_, MTDTopology::ETLValues::sideStartBit_, MTDTopology::BTLValues::trayMask_, and MTDTopology::BTLValues::trayStartBit_.

12  : mtdTopologyMode_(topologyMode),
13  btlVals_(btl),
14  etlVals_(etl),
unsigned int ringMask_
Definition: MTDTopology.h:36
const BitmaskAndSubdet bits_per_field[DETID_FIELDS_MAX]
Definition: MTDTopology.h:167
unsigned int sideStartBit_
Definition: MTDTopology.h:19
unsigned int sideStartBit_
Definition: MTDTopology.h:30
unsigned int moduleMask_
Definition: MTDTopology.h:26
const ETLValues etlVals_
Definition: MTDTopology.h:160
unsigned int moduleStartBit_
Definition: MTDTopology.h:22
unsigned int layerStartBit_
Definition: MTDTopology.h:31
unsigned int trayMask_
Definition: MTDTopology.h:25
unsigned int moduleStartBit_
Definition: MTDTopology.h:33
unsigned int sideMask_
Definition: MTDTopology.h:23
unsigned int trayStartBit_
Definition: MTDTopology.h:21
unsigned int ringStartBit_
Definition: MTDTopology.h:32
unsigned int moduleMask_
Definition: MTDTopology.h:37
unsigned int layerStartBit_
Definition: MTDTopology.h:20
unsigned int sideMask_
Definition: MTDTopology.h:34
unsigned int layerMask_
Definition: MTDTopology.h:24
unsigned int layerMask_
Definition: MTDTopology.h:35
const BTLValues btlVals_
Definition: MTDTopology.h:159
const int mtdTopologyMode_
Definition: MTDTopology.h:157

Member Function Documentation

DetId MTDTopology::btlDetId ( uint32_t  side,
uint32_t  layer,
uint32_t  tray,
uint32_t  module 
) const
inline

Definition at line 114 of file MTDTopology.h.

References MTDDetId::BTL, btlVals_, FastTime, DetId::Forward, triggerObjects_cff::id, MTDDetId::kMTDsubdOffset, MTDTopology::BTLValues::layerMask_, MTDTopology::BTLValues::layerStartBit_, MTDTopology::BTLValues::moduleMask_, MTDTopology::BTLValues::moduleStartBit_, MTDTopology::BTLValues::sideMask_, MTDTopology::BTLValues::sideStartBit_, MTDTopology::BTLValues::trayMask_, and MTDTopology::BTLValues::trayStartBit_.

Referenced by btlDetIdLayerComparator().

114  {
115  //uply
117  uint32_t rawid = id.rawId();
122  return DetId(rawid);
123  }
unsigned int sideStartBit_
Definition: MTDTopology.h:19
unsigned int layer(const DetId &id) const
Definition: MTDTopology.cc:37
unsigned int moduleMask_
Definition: MTDTopology.h:26
unsigned int moduleStartBit_
Definition: MTDTopology.h:22
static const uint32_t kMTDsubdOffset
Definition: MTDDetId.h:29
unsigned int trayMask_
Definition: MTDTopology.h:25
unsigned int side(const DetId &id) const
Definition: MTDTopology.cc:24
unsigned int sideMask_
Definition: MTDTopology.h:23
unsigned int tray(const DetId &id) const
Definition: MTDTopology.cc:63
Definition: DetId.h:17
unsigned int trayStartBit_
Definition: MTDTopology.h:21
unsigned int layerStartBit_
Definition: MTDTopology.h:20
unsigned int layerMask_
Definition: MTDTopology.h:24
const BTLValues btlVals_
Definition: MTDTopology.h:159
Definition: vlib.h:198
std::pair<DetId, SameLayerComparator> MTDTopology::btlDetIdLayerComparator ( uint32_t  side,
uint32_t  layer 
) const
inline

Definition at line 135 of file MTDTopology.h.

References btlDetId().

135  {
136  return std::make_pair(btlDetId(side, layer, 1, 1), SameLayerComparator(this));
137  }
unsigned int layer(const DetId &id) const
Definition: MTDTopology.cc:37
DetId btlDetId(uint32_t side, uint32_t layer, uint32_t tray, uint32_t module) const
Definition: MTDTopology.h:114
unsigned int side(const DetId &id) const
Definition: MTDTopology.cc:24
unsigned int MTDTopology::btlLayer ( const DetId id) const
inline

Definition at line 96 of file MTDTopology.h.

References btlVals_, createfilelist::int, MTDTopology::BTLValues::layerMask_, and MTDTopology::BTLValues::layerStartBit_.

Referenced by getMTDLayerNumber(), layer(), and print().

96  {
97  return int((id.rawId() >> btlVals_.layerStartBit_) & btlVals_.layerMask_);
98  }
unsigned int layerStartBit_
Definition: MTDTopology.h:20
unsigned int layerMask_
Definition: MTDTopology.h:24
const BTLValues btlVals_
Definition: MTDTopology.h:159
unsigned int MTDTopology::btlModule ( const DetId id) const
inline

Definition at line 82 of file MTDTopology.h.

References btlVals_, MTDTopology::BTLValues::moduleMask_, and MTDTopology::BTLValues::moduleStartBit_.

Referenced by module(), and print().

82  {
83  return ((id.rawId() >> btlVals_.moduleStartBit_) & btlVals_.moduleMask_);
84  }
unsigned int moduleMask_
Definition: MTDTopology.h:26
unsigned int moduleStartBit_
Definition: MTDTopology.h:22
const BTLValues btlVals_
Definition: MTDTopology.h:159
unsigned int MTDTopology::btlSide ( const DetId id) const
inline

Definition at line 104 of file MTDTopology.h.

References btlVals_, MTDTopology::BTLValues::sideMask_, and MTDTopology::BTLValues::sideStartBit_.

Referenced by print(), and side().

104 { return ((id.rawId() >> btlVals_.sideStartBit_) & btlVals_.sideMask_); }
unsigned int sideStartBit_
Definition: MTDTopology.h:19
unsigned int sideMask_
Definition: MTDTopology.h:23
const BTLValues btlVals_
Definition: MTDTopology.h:159
unsigned int MTDTopology::btlTray ( const DetId id) const
inline

Definition at line 90 of file MTDTopology.h.

References btlVals_, MTDTopology::BTLValues::trayMask_, and MTDTopology::BTLValues::trayStartBit_.

Referenced by print(), and tray().

90 { return ((id.rawId() >> btlVals_.trayStartBit_) & btlVals_.trayMask_); }
unsigned int trayMask_
Definition: MTDTopology.h:25
unsigned int trayStartBit_
Definition: MTDTopology.h:21
const BTLValues btlVals_
Definition: MTDTopology.h:159
DetId MTDTopology::etlDetId ( uint32_t  side,
uint32_t  layer,
uint32_t  ring,
uint32_t  module 
) const
inline

Definition at line 125 of file MTDTopology.h.

References MTDDetId::ETL, etlVals_, FastTime, DetId::Forward, triggerObjects_cff::id, MTDDetId::kMTDsubdOffset, MTDTopology::ETLValues::layerMask_, MTDTopology::ETLValues::layerStartBit_, MTDTopology::ETLValues::moduleMask_, MTDTopology::ETLValues::moduleStartBit_, MTDTopology::ETLValues::ringMask_, MTDTopology::ETLValues::ringStartBit_, MTDTopology::ETLValues::sideMask_, and MTDTopology::ETLValues::sideStartBit_.

Referenced by etlDetIdDiskComparator().

125  {
127  uint32_t rawid = id.rawId();
132  return DetId(rawid);
133  }
unsigned int ringMask_
Definition: MTDTopology.h:36
unsigned int layer(const DetId &id) const
Definition: MTDTopology.cc:37
unsigned int sideStartBit_
Definition: MTDTopology.h:30
const ETLValues etlVals_
Definition: MTDTopology.h:160
unsigned int layerStartBit_
Definition: MTDTopology.h:31
static const uint32_t kMTDsubdOffset
Definition: MTDDetId.h:29
unsigned int moduleStartBit_
Definition: MTDTopology.h:33
unsigned int side(const DetId &id) const
Definition: MTDTopology.cc:24
Definition: DetId.h:17
unsigned int ringStartBit_
Definition: MTDTopology.h:32
unsigned int moduleMask_
Definition: MTDTopology.h:37
unsigned int ring(const DetId &id) const
Definition: MTDTopology.cc:76
unsigned int sideMask_
Definition: MTDTopology.h:34
unsigned int layerMask_
Definition: MTDTopology.h:35
Definition: vlib.h:198
std::pair<DetId, SameLayerComparator> MTDTopology::etlDetIdDiskComparator ( uint32_t  side,
uint32_t  layer 
) const
inline

Definition at line 139 of file MTDTopology.h.

References etlDetId(), getMTDLayerNumber(), print(), and AlCaHLTBitMon_QueryRunRegistry::string.

139  {
140  return std::make_pair(etlDetId(side, layer, 1, 1), SameLayerComparator(this));
141  }
unsigned int layer(const DetId &id) const
Definition: MTDTopology.cc:37
unsigned int side(const DetId &id) const
Definition: MTDTopology.cc:24
DetId etlDetId(uint32_t side, uint32_t layer, uint32_t ring, uint32_t module) const
Definition: MTDTopology.h:125
unsigned int MTDTopology::etlDisc ( const DetId id) const
inline

Definition at line 109 of file MTDTopology.h.

References etlVals_, createfilelist::int, MTDTopology::ETLValues::ringMask_, and MTDTopology::ETLValues::ringStartBit_.

109  {
110  return int((id.rawId() >> etlVals_.ringStartBit_) & etlVals_.ringMask_) % 2;
111  }
unsigned int ringMask_
Definition: MTDTopology.h:36
const ETLValues etlVals_
Definition: MTDTopology.h:160
unsigned int ringStartBit_
Definition: MTDTopology.h:32
unsigned int MTDTopology::etlLayer ( const DetId id) const
inline

Definition at line 99 of file MTDTopology.h.

References etlVals_, createfilelist::int, MTDTopology::ETLValues::layerMask_, and MTDTopology::ETLValues::layerStartBit_.

Referenced by getMTDLayerNumber(), layer(), and print().

99  {
100  return int((id.rawId() >> etlVals_.layerStartBit_) & etlVals_.layerMask_);
101  }
const ETLValues etlVals_
Definition: MTDTopology.h:160
unsigned int layerStartBit_
Definition: MTDTopology.h:31
unsigned int layerMask_
Definition: MTDTopology.h:35
unsigned int MTDTopology::etlModule ( const DetId id) const
inline

Definition at line 85 of file MTDTopology.h.

References btlVals_, createfilelist::int, MTDTopology::BTLValues::moduleMask_, and MTDTopology::BTLValues::moduleStartBit_.

Referenced by module(), print(), and ring().

85  {
86  return int((id.rawId() >> btlVals_.moduleStartBit_) & btlVals_.moduleMask_);
87  }
unsigned int moduleMask_
Definition: MTDTopology.h:26
unsigned int moduleStartBit_
Definition: MTDTopology.h:22
const BTLValues btlVals_
Definition: MTDTopology.h:159
unsigned int MTDTopology::etlRing ( const DetId id) const
inline

Definition at line 93 of file MTDTopology.h.

References etlVals_, MTDTopology::ETLValues::ringMask_, and MTDTopology::ETLValues::ringStartBit_.

Referenced by print().

93 { return ((id.rawId() >> etlVals_.ringStartBit_) & etlVals_.ringMask_); }
unsigned int ringMask_
Definition: MTDTopology.h:36
const ETLValues etlVals_
Definition: MTDTopology.h:160
unsigned int ringStartBit_
Definition: MTDTopology.h:32
unsigned int MTDTopology::etlSide ( const DetId id) const
inline

Definition at line 106 of file MTDTopology.h.

References etlVals_, MTDTopology::ETLValues::sideMask_, and MTDTopology::ETLValues::sideStartBit_.

Referenced by print(), and side().

106 { return ((id.rawId() >> etlVals_.sideStartBit_) & etlVals_.sideMask_); }
unsigned int sideStartBit_
Definition: MTDTopology.h:30
const ETLValues etlVals_
Definition: MTDTopology.h:160
unsigned int sideMask_
Definition: MTDTopology.h:34
unsigned int MTDTopology::getField ( const DetId id,
DetIdFields  idx 
) const
inline

Definition at line 149 of file MTDTopology.h.

References bits_per_field.

149  {
150  return ((id.rawId() >> bits_per_field[idx].startBit) & bits_per_field[idx].mask);
151  }
const BitmaskAndSubdet bits_per_field[DETID_FIELDS_MAX]
Definition: MTDTopology.h:167
int MTDTopology::getMTDLayerNumber ( const DetId id) const

Definition at line 122 of file MTDTopology.cc.

References MTDDetId::BTL, btlLayer(), MTDDetId::ETL, etlLayer(), DetId::Forward, layer(), and MTDDetId::mtdSubDetector().

Referenced by etlDetIdDiskComparator().

122  {
123  int layer = -1;
124  uint32_t subdet = MTDDetId(id).mtdSubDetector();
125 
126  if (id.det() == DetId::Forward) {
127  if (subdet == MTDDetId::BTL) {
128  layer = btlLayer(id);
129  } else if (id.subdetId() == MTDDetId::ETL) {
130  layer = etlLayer(id);
131  } else {
132  edm::LogInfo("MTDTopology") << ">>> Invalid subdetId() ";
133  }
134  }
135  return layer;
136 }
unsigned int layer(const DetId &id) const
Definition: MTDTopology.cc:37
Detector identifier base class for the MIP Timing Layer.
Definition: MTDDetId.h:21
unsigned int btlLayer(const DetId &id) const
Definition: MTDTopology.h:96
int mtdSubDetector() const
Definition: MTDDetId.h:56
unsigned int etlLayer(const DetId &id) const
Definition: MTDTopology.h:99
int MTDTopology::getMTDTopologyMode ( ) const
inline
bool MTDTopology::hasField ( const DetId id,
DetIdFields  idx 
) const
inline

Definition at line 154 of file MTDTopology.h.

References bits_per_field, training_settings::idx, and MTDTopology::BitmaskAndSubdet::subdet.

154 { return id.subdetId() == bits_per_field[idx].subdet; }
const BitmaskAndSubdet bits_per_field[DETID_FIELDS_MAX]
Definition: MTDTopology.h:167
unsigned int MTDTopology::layer ( const DetId id) const

Definition at line 37 of file MTDTopology.cc.

References MTDDetId::BTL, btlLayer(), MTDDetId::ETL, etlLayer(), Exception, SiStripPI::max, and MTDDetId::mtdSubDetector().

Referenced by getMTDLayerNumber(), getMTDTopologyMode(), geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

37  {
38  uint32_t subdet = MTDDetId(id).mtdSubDetector();
39  switch (subdet) {
40  case MTDDetId::BTL:
41  return btlLayer(id);
42  case MTDDetId::ETL:
43  return etlLayer(id);
44  default:
45  throw cms::Exception("Invalid DetId") << "Unsupported DetId in MTDTopology::layer";
46  }
48 }
Detector identifier base class for the MIP Timing Layer.
Definition: MTDDetId.h:21
unsigned int btlLayer(const DetId &id) const
Definition: MTDTopology.h:96
int mtdSubDetector() const
Definition: MTDDetId.h:56
unsigned int etlLayer(const DetId &id) const
Definition: MTDTopology.h:99
unsigned int MTDTopology::module ( const DetId id) const

Definition at line 50 of file MTDTopology.cc.

References MTDDetId::BTL, btlModule(), MTDDetId::ETL, etlModule(), Exception, SiStripPI::max, and MTDDetId::mtdSubDetector().

Referenced by getMTDTopologyMode().

50  {
51  uint32_t subdet = MTDDetId(id).mtdSubDetector();
52  switch (subdet) {
53  case MTDDetId::BTL:
54  return btlModule(id);
55  case MTDDetId::ETL:
56  return etlModule(id);
57  default:
58  throw cms::Exception("Invalid DetId") << "Unsupported DetId in MTDTopology::module";
59  }
61 }
unsigned int btlModule(const DetId &id) const
Definition: MTDTopology.h:82
Detector identifier base class for the MIP Timing Layer.
Definition: MTDDetId.h:21
unsigned int etlModule(const DetId &id) const
Definition: MTDTopology.h:85
int mtdSubDetector() const
Definition: MTDDetId.h:56
std::string MTDTopology::print ( DetId  detid) const

Definition at line 89 of file MTDTopology.cc.

References MTDDetId::BTL, btlLayer(), btlModule(), btlSide(), btlTray(), MTDDetId::ETL, etlLayer(), etlModule(), etlRing(), etlSide(), Exception, MTDDetId::mtdSubDetector(), side(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by etlDetIdDiskComparator().

89  {
90  uint32_t subdet = MTDDetId(id).mtdSubDetector();
91  std::stringstream strstr;
92 
93  if (subdet == MTDDetId::BTL) {
94  unsigned int theSide = btlSide(id);
95  unsigned int theLayer = btlLayer(id);
96  unsigned int theTray = btlTray(id);
97  unsigned int theModule = btlModule(id);
98  std::string side = (btlSide(id) == 1) ? "-" : "+";
99  strstr << "BTL"
100  << " Side " << theSide << side << " Layer " << theLayer << " Tray " << theTray << " Module "
101  << theModule;
102  strstr << " (" << id.rawId() << ")";
103  return strstr.str();
104  }
105 
106  if (subdet == MTDDetId::ETL) {
107  unsigned int theSide = etlSide(id);
108  unsigned int theLayer = etlLayer(id);
109  unsigned int theRing = etlRing(id);
110  unsigned int theModule = etlModule(id);
111  std::string side = (etlSide(id) == 1) ? "-" : "+";
112  strstr << "ETL"
113  << " Side " << theSide << side << " Layer " << theLayer << " Ring " << theRing << " Module "
114  << theModule;
115  strstr << " (" << id.rawId() << ")";
116  return strstr.str();
117  }
118  throw cms::Exception("Invalid DetId") << "Unsupported DetId in MTDTopology::print";
119  return strstr.str();
120 }
unsigned int btlTray(const DetId &id) const
Definition: MTDTopology.h:90
unsigned int btlSide(const DetId &id) const
Definition: MTDTopology.h:104
unsigned int btlModule(const DetId &id) const
Definition: MTDTopology.h:82
Detector identifier base class for the MIP Timing Layer.
Definition: MTDDetId.h:21
unsigned int btlLayer(const DetId &id) const
Definition: MTDTopology.h:96
unsigned int side(const DetId &id) const
Definition: MTDTopology.cc:24
unsigned int etlSide(const DetId &id) const
Definition: MTDTopology.h:106
unsigned int etlModule(const DetId &id) const
Definition: MTDTopology.h:85
int mtdSubDetector() const
Definition: MTDDetId.h:56
unsigned int etlRing(const DetId &id) const
Definition: MTDTopology.h:93
unsigned int etlLayer(const DetId &id) const
Definition: MTDTopology.h:99
unsigned int MTDTopology::ring ( const DetId id) const

Definition at line 76 of file MTDTopology.cc.

References MTDDetId::BTL, MTDDetId::ETL, etlModule(), Exception, SiStripPI::max, and MTDDetId::mtdSubDetector().

Referenced by getMTDTopologyMode(), and geometryXMLparser.CSCAlignable::index().

76  {
77  uint32_t subdet = MTDDetId(id).mtdSubDetector();
78  switch (subdet) {
79  case MTDDetId::BTL:
81  case MTDDetId::ETL:
82  return etlModule(id);
83  default:
84  throw cms::Exception("Invalid DetId") << "Unsupported DetId in MTDTopology::ring";
85  }
87 }
Detector identifier base class for the MIP Timing Layer.
Definition: MTDDetId.h:21
unsigned int etlModule(const DetId &id) const
Definition: MTDTopology.h:85
int mtdSubDetector() const
Definition: MTDDetId.h:56
unsigned int MTDTopology::side ( const DetId id) const

Definition at line 24 of file MTDTopology.cc.

References MTDDetId::BTL, btlSide(), MTDDetId::ETL, etlSide(), Exception, SiStripPI::max, and MTDDetId::mtdSubDetector().

Referenced by getMTDTopologyMode(), and print().

24  {
25  uint32_t subdet = MTDDetId(id).mtdSubDetector();
26  switch (subdet) {
27  case MTDDetId::BTL:
28  return btlSide(id);
29  case MTDDetId::ETL:
30  return etlSide(id);
31  default:
32  throw cms::Exception("Invalid DetId") << "Unsupported DetId in MTDTopology::side";
33  }
35 }
unsigned int btlSide(const DetId &id) const
Definition: MTDTopology.h:104
Detector identifier base class for the MIP Timing Layer.
Definition: MTDDetId.h:21
unsigned int etlSide(const DetId &id) const
Definition: MTDTopology.h:106
int mtdSubDetector() const
Definition: MTDDetId.h:56
unsigned int MTDTopology::tray ( const DetId id) const

Definition at line 63 of file MTDTopology.cc.

References MTDDetId::BTL, btlTray(), MTDDetId::ETL, Exception, SiStripPI::max, and MTDDetId::mtdSubDetector().

Referenced by getMTDTopologyMode().

63  {
64  uint32_t subdet = MTDDetId(id).mtdSubDetector();
65  switch (subdet) {
66  case MTDDetId::BTL:
67  return btlTray(id);
68  case MTDDetId::ETL:
70  default:
71  throw cms::Exception("Invalid DetId") << "Unsupported DetId in MTDTopology::tray";
72  }
74 }
unsigned int btlTray(const DetId &id) const
Definition: MTDTopology.h:90
Detector identifier base class for the MIP Timing Layer.
Definition: MTDDetId.h:21
int mtdSubDetector() const
Definition: MTDDetId.h:56

Member Data Documentation

const BitmaskAndSubdet MTDTopology::bits_per_field[DETID_FIELDS_MAX]
private

Definition at line 167 of file MTDTopology.h.

Referenced by getField(), and hasField().

const BTLValues MTDTopology::btlVals_
private

Definition at line 159 of file MTDTopology.h.

Referenced by btlDetId(), btlLayer(), btlModule(), btlSide(), btlTray(), etlModule(), and MTDTopology().

const ETLValues MTDTopology::etlVals_
private

Definition at line 160 of file MTDTopology.h.

Referenced by etlDetId(), etlDisc(), etlLayer(), etlRing(), etlSide(), and MTDTopology().

const int MTDTopology::mtdTopologyMode_
private

Definition at line 157 of file MTDTopology.h.

Referenced by getMTDTopologyMode().