36 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in MTDTopology::side";
49 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in MTDTopology::layer";
62 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in MTDTopology::module";
75 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in MTDTopology::tray";
88 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in MTDTopology::ring";
97 std::stringstream strstr;
100 unsigned int theSide =
btlSide(
id);
101 unsigned int theLayer =
btlLayer(
id);
102 unsigned int theTray =
btlTray(
id);
106 <<
" Side " << theSide << side
107 <<
" Layer " << theLayer
108 <<
" Tray " << theTray
109 <<
" Module " << theModule ;
110 strstr <<
" (" <<
id.rawId() <<
")";
115 unsigned int theSide =
etlSide(
id);
116 unsigned int theLayer =
etlLayer(
id);
117 unsigned int theRing =
etlRing(
id);
121 <<
" Side " << theSide << side
122 <<
" Layer " << theLayer
123 <<
" Ring " << theRing
124 <<
" Module " << theModule ;
125 strstr <<
" (" <<
id.rawId() <<
")";
128 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in MTDTopology::print";
144 edm::LogInfo(
"MTDTopology") <<
">>> Invalid subdetId() " ;
unsigned int btlTray(const DetId &id) const
std::string print(DetId detid) const
unsigned int module(const DetId &id) const
unsigned int sideStartBit_
unsigned int layer(const DetId &id) const
unsigned int sideStartBit_
unsigned int btlSide(const DetId &id) const
unsigned int moduleStartBit_
unsigned int btlModule(const DetId &id) const
unsigned int layerStartBit_
Detector identifier base class for the MIP Timing Layer.
unsigned int btlLayer(const DetId &id) const
unsigned int moduleStartBit_
unsigned int side(const DetId &id) const
unsigned int tray(const DetId &id) const
unsigned int etlSide(const DetId &id) const
unsigned int trayStartBit_
unsigned int ringStartBit_
MTDTopology(const BTLValues &btl, const ETLValues &etl)
unsigned int layerStartBit_
unsigned int ring(const DetId &id) const
unsigned int etlModule(const DetId &id) const
int mtdSubDetector() const
int getMTDLayerNumber(const DetId &id) const
unsigned int etlRing(const DetId &id) const
unsigned int etlLayer(const DetId &id) const