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 17 of file MTDTopology.h.

Member Enumeration Documentation

Enumerator
BTLModule 
BTLTray 
BTLLayer 
BTLSide 
ETLModule 
ETLRing 
ETLLayer 
ETLSide 
DETID_FIELDS_MAX 

Definition at line 43 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),
24 }
25 {}
unsigned int ringMask_
Definition: MTDTopology.h:39
const BitmaskAndSubdet bits_per_field[DETID_FIELDS_MAX]
Definition: MTDTopology.h:187
unsigned int sideStartBit_
Definition: MTDTopology.h:22
unsigned int sideStartBit_
Definition: MTDTopology.h:33
unsigned int moduleMask_
Definition: MTDTopology.h:29
const ETLValues etlVals_
Definition: MTDTopology.h:180
unsigned int moduleStartBit_
Definition: MTDTopology.h:25
unsigned int layerStartBit_
Definition: MTDTopology.h:34
unsigned int trayMask_
Definition: MTDTopology.h:28
unsigned int moduleStartBit_
Definition: MTDTopology.h:36
unsigned int sideMask_
Definition: MTDTopology.h:26
unsigned int trayStartBit_
Definition: MTDTopology.h:24
unsigned int ringStartBit_
Definition: MTDTopology.h:35
unsigned int moduleMask_
Definition: MTDTopology.h:40
unsigned int layerStartBit_
Definition: MTDTopology.h:23
unsigned int sideMask_
Definition: MTDTopology.h:37
unsigned int layerMask_
Definition: MTDTopology.h:27
unsigned int layerMask_
Definition: MTDTopology.h:38
const BTLValues btlVals_
Definition: MTDTopology.h:179
const int mtdTopologyMode_
Definition: MTDTopology.h:177

Member Function Documentation

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

Definition at line 123 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().

126  {
127  //uply
129  uint32_t rawid=id.rawId();
135  return DetId(rawid);
136  }
unsigned int sideStartBit_
Definition: MTDTopology.h:22
unsigned int layer(const DetId &id) const
Definition: MTDTopology.cc:42
unsigned int moduleMask_
Definition: MTDTopology.h:29
unsigned int moduleStartBit_
Definition: MTDTopology.h:25
static const uint32_t kMTDsubdOffset
Definition: MTDDetId.h:31
unsigned int trayMask_
Definition: MTDTopology.h:28
unsigned int side(const DetId &id) const
Definition: MTDTopology.cc:29
unsigned int sideMask_
Definition: MTDTopology.h:26
unsigned int tray(const DetId &id) const
Definition: MTDTopology.cc:68
Definition: DetId.h:18
unsigned int trayStartBit_
Definition: MTDTopology.h:24
unsigned int layerStartBit_
Definition: MTDTopology.h:23
unsigned int layerMask_
Definition: MTDTopology.h:27
const BTLValues btlVals_
Definition: MTDTopology.h:179
Definition: vlib.h:208
std::pair<DetId, SameLayerComparator> MTDTopology::btlDetIdLayerComparator ( uint32_t  side,
uint32_t  layer 
) const
inline

Definition at line 152 of file MTDTopology.h.

References btlDetId().

152  {
153  return std::make_pair(btlDetId(side, layer, 1,1), SameLayerComparator(this));
154  }
unsigned int layer(const DetId &id) const
Definition: MTDTopology.cc:42
DetId btlDetId(uint32_t side, uint32_t layer, uint32_t tray, uint32_t module) const
Definition: MTDTopology.h:123
unsigned int side(const DetId &id) const
Definition: MTDTopology.cc:29
unsigned int MTDTopology::btlLayer ( const DetId id) const
inline

Definition at line 101 of file MTDTopology.h.

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

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

101  {
102  return int((id.rawId()>>btlVals_.layerStartBit_) & btlVals_.layerMask_);
103  }
unsigned int layerStartBit_
Definition: MTDTopology.h:23
unsigned int layerMask_
Definition: MTDTopology.h:27
const BTLValues btlVals_
Definition: MTDTopology.h:179
unsigned int MTDTopology::btlModule ( const DetId id) const
inline

Definition at line 83 of file MTDTopology.h.

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

Referenced by module(), and print().

83  {
84  return ((id.rawId()>>btlVals_.moduleStartBit_)& btlVals_.moduleMask_);
85  }
unsigned int moduleMask_
Definition: MTDTopology.h:29
unsigned int moduleStartBit_
Definition: MTDTopology.h:25
const BTLValues btlVals_
Definition: MTDTopology.h:179
unsigned int MTDTopology::btlSide ( const DetId id) const
inline

Definition at line 109 of file MTDTopology.h.

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

Referenced by print(), and side().

109  {
110  return ((id.rawId()>>btlVals_.sideStartBit_)&btlVals_.sideMask_);
111  }
unsigned int sideStartBit_
Definition: MTDTopology.h:22
unsigned int sideMask_
Definition: MTDTopology.h:26
const BTLValues btlVals_
Definition: MTDTopology.h:179
unsigned int MTDTopology::btlTray ( const DetId id) const
inline

Definition at line 91 of file MTDTopology.h.

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

Referenced by print(), and tray().

91  {
92  return ((id.rawId()>>btlVals_.trayStartBit_) & btlVals_.trayMask_) ;
93  }
unsigned int trayMask_
Definition: MTDTopology.h:28
unsigned int trayStartBit_
Definition: MTDTopology.h:24
const BTLValues btlVals_
Definition: MTDTopology.h:179
DetId MTDTopology::etlDetId ( uint32_t  side,
uint32_t  layer,
uint32_t  ring,
uint32_t  module 
) const
inline

Definition at line 138 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().

141  {
143  uint32_t rawid=id.rawId();
149  return DetId(rawid);
150  }
unsigned int ringMask_
Definition: MTDTopology.h:39
unsigned int layer(const DetId &id) const
Definition: MTDTopology.cc:42
unsigned int sideStartBit_
Definition: MTDTopology.h:33
const ETLValues etlVals_
Definition: MTDTopology.h:180
unsigned int layerStartBit_
Definition: MTDTopology.h:34
static const uint32_t kMTDsubdOffset
Definition: MTDDetId.h:31
unsigned int moduleStartBit_
Definition: MTDTopology.h:36
unsigned int side(const DetId &id) const
Definition: MTDTopology.cc:29
Definition: DetId.h:18
unsigned int ringStartBit_
Definition: MTDTopology.h:35
unsigned int moduleMask_
Definition: MTDTopology.h:40
unsigned int ring(const DetId &id) const
Definition: MTDTopology.cc:81
unsigned int sideMask_
Definition: MTDTopology.h:37
unsigned int layerMask_
Definition: MTDTopology.h:38
Definition: vlib.h:208
std::pair<DetId, SameLayerComparator> MTDTopology::etlDetIdDiskComparator ( uint32_t  side,
uint32_t  layer 
) const
inline

Definition at line 156 of file MTDTopology.h.

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

156  {
157  return std::make_pair(etlDetId(side, layer, 1,1), SameLayerComparator(this));
158  }
unsigned int layer(const DetId &id) const
Definition: MTDTopology.cc:42
unsigned int side(const DetId &id) const
Definition: MTDTopology.cc:29
DetId etlDetId(uint32_t side, uint32_t layer, uint32_t ring, uint32_t module) const
Definition: MTDTopology.h:138
unsigned int MTDTopology::etlDisc ( const DetId id) const
inline

Definition at line 118 of file MTDTopology.h.

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

118  {
119  return int((id.rawId()>>etlVals_.ringStartBit_) & etlVals_.ringMask_)%2;
120  }
unsigned int ringMask_
Definition: MTDTopology.h:39
const ETLValues etlVals_
Definition: MTDTopology.h:180
unsigned int ringStartBit_
Definition: MTDTopology.h:35
unsigned int MTDTopology::etlLayer ( const DetId id) const
inline

Definition at line 104 of file MTDTopology.h.

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

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

104  {
105  return int((id.rawId()>>etlVals_.layerStartBit_) & etlVals_.layerMask_);
106  }
const ETLValues etlVals_
Definition: MTDTopology.h:180
unsigned int layerStartBit_
Definition: MTDTopology.h:34
unsigned int layerMask_
Definition: MTDTopology.h:38
unsigned int MTDTopology::etlModule ( const DetId id) const
inline

Definition at line 86 of file MTDTopology.h.

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

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

86  {
87  return int((id.rawId()>>btlVals_.moduleStartBit_) & btlVals_.moduleMask_);
88  }
unsigned int moduleMask_
Definition: MTDTopology.h:29
unsigned int moduleStartBit_
Definition: MTDTopology.h:25
const BTLValues btlVals_
Definition: MTDTopology.h:179
unsigned int MTDTopology::etlRing ( const DetId id) const
inline

Definition at line 96 of file MTDTopology.h.

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

Referenced by print().

96  {
97  return ((id.rawId()>>etlVals_.ringStartBit_) & etlVals_.ringMask_) ;
98  }
unsigned int ringMask_
Definition: MTDTopology.h:39
const ETLValues etlVals_
Definition: MTDTopology.h:180
unsigned int ringStartBit_
Definition: MTDTopology.h:35
unsigned int MTDTopology::etlSide ( const DetId id) const
inline

Definition at line 113 of file MTDTopology.h.

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

Referenced by print(), and side().

113  {
114  return ((id.rawId()>>etlVals_.sideStartBit_)&etlVals_.sideMask_);
115  }
unsigned int sideStartBit_
Definition: MTDTopology.h:33
const ETLValues etlVals_
Definition: MTDTopology.h:180
unsigned int sideMask_
Definition: MTDTopology.h:37
unsigned int MTDTopology::getField ( const DetId id,
DetIdFields  idx 
) const
inline

Definition at line 166 of file MTDTopology.h.

References bits_per_field, and RecoTauDiscriminantConfiguration::mask.

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

Definition at line 135 of file MTDTopology.cc.

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

Referenced by etlDetIdDiskComparator().

135  {
136  int layer = -1;
137  uint32_t subdet=MTDDetId(id).mtdSubDetector();
138 
139  if (id.det() == DetId::Forward) {
140  if (subdet == MTDDetId::BTL) {
141  layer = btlLayer(id);
142  } else if (id.subdetId() == MTDDetId::ETL) {
143  layer = etlLayer(id);
144  } else {
145  edm::LogInfo("MTDTopology") << ">>> Invalid subdetId() " ;
146  }
147  }
148  return layer;
149 }
unsigned int layer(const DetId &id) const
Definition: MTDTopology.cc:42
Detector identifier base class for the MIP Timing Layer.
Definition: MTDDetId.h:21
unsigned int btlLayer(const DetId &id) const
Definition: MTDTopology.h:101
int mtdSubDetector() const
Definition: MTDDetId.h:58
unsigned int etlLayer(const DetId &id) const
Definition: MTDTopology.h:104
int MTDTopology::getMTDTopologyMode ( ) const
inline
bool MTDTopology::hasField ( const DetId id,
DetIdFields  idx 
) const
inline

Definition at line 171 of file MTDTopology.h.

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

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

Definition at line 42 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().

42  {
43  uint32_t subdet=MTDDetId(id).mtdSubDetector();
44  switch( subdet ) {
45  case MTDDetId::BTL:
46  return btlLayer(id);
47  case MTDDetId::ETL:
48  return etlLayer(id);
49  default:
50  throw cms::Exception("Invalid DetId") << "Unsupported DetId in MTDTopology::layer";
51  }
53 }
Detector identifier base class for the MIP Timing Layer.
Definition: MTDDetId.h:21
unsigned int btlLayer(const DetId &id) const
Definition: MTDTopology.h:101
int mtdSubDetector() const
Definition: MTDDetId.h:58
unsigned int etlLayer(const DetId &id) const
Definition: MTDTopology.h:104
unsigned int MTDTopology::module ( const DetId id) const

Definition at line 55 of file MTDTopology.cc.

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

Referenced by getMTDTopologyMode().

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

Definition at line 96 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().

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

Definition at line 81 of file MTDTopology.cc.

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

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

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

Definition at line 29 of file MTDTopology.cc.

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

Referenced by getMTDTopologyMode(), and print().

29  {
30  uint32_t subdet=MTDDetId(id).mtdSubDetector();
31  switch( subdet ) {
32  case MTDDetId::BTL:
33  return btlSide(id);
34  case MTDDetId::ETL:
35  return etlSide(id);
36  default:
37  throw cms::Exception("Invalid DetId") << "Unsupported DetId in MTDTopology::side";
38  }
40 }
unsigned int btlSide(const DetId &id) const
Definition: MTDTopology.h:109
Detector identifier base class for the MIP Timing Layer.
Definition: MTDDetId.h:21
unsigned int etlSide(const DetId &id) const
Definition: MTDTopology.h:113
int mtdSubDetector() const
Definition: MTDDetId.h:58
unsigned int MTDTopology::tray ( const DetId id) const

Definition at line 68 of file MTDTopology.cc.

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

Referenced by getMTDTopologyMode().

68  {
69  uint32_t subdet=MTDDetId(id).mtdSubDetector();
70  switch( subdet ) {
71  case MTDDetId::BTL:
72  return btlTray(id);
73  case MTDDetId::ETL:
75  default:
76  throw cms::Exception("Invalid DetId") << "Unsupported DetId in MTDTopology::tray";
77  }
79 }
unsigned int btlTray(const DetId &id) const
Definition: MTDTopology.h:91
Detector identifier base class for the MIP Timing Layer.
Definition: MTDDetId.h:21
int mtdSubDetector() const
Definition: MTDDetId.h:58

Member Data Documentation

const BitmaskAndSubdet MTDTopology::bits_per_field[DETID_FIELDS_MAX]
private

Definition at line 187 of file MTDTopology.h.

Referenced by getField(), and hasField().

const BTLValues MTDTopology::btlVals_
private

Definition at line 179 of file MTDTopology.h.

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

const ETLValues MTDTopology::etlVals_
private

Definition at line 180 of file MTDTopology.h.

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

const int MTDTopology::mtdTopologyMode_
private

Definition at line 177 of file MTDTopology.h.

Referenced by getMTDTopologyMode().