20 uint32_t subdet=
id.subdetId();
34 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::side";
40 uint32_t subdet=
id.subdetId();
54 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::layer";
59 uint32_t subdet=
id.subdetId();
73 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::module";
78 uint32_t subdet=
id.subdetId();
79 std::stringstream strstr;
82 strstr <<
"(PixelBarrel "
90 strstr <<
"(PixelEndcap "
99 unsigned int theLayer =
tibLayer(
id);
104 side = (theString[0] == 1 ) ?
"-" :
"+";
105 part = (theString[1] == 1 ) ?
"int" :
"ext";
107 type = (
tibStereo(
id) == 0) ?
"r-phi" :
"stereo";
108 type = (
tibGlued(
id) == 0) ? type : type+
" glued";
110 strstr <<
"TIB" << side
111 <<
" Layer " << theLayer <<
" " << part
112 <<
" String " << theString[2]
113 <<
" Module " << theModule <<
" " << type
114 <<
" (" <<
id.rawId() <<
")";
119 unsigned int theDisk =
tidWheel(
id);
120 unsigned int theRing =
tidRing(
id);
124 side = (
tidSide(
id) == 1 ) ?
"-" :
"+";
125 part = (theModule[0] == 1 ) ?
"back" :
"front";
127 type = (
tidStereo(
id) == 0) ?
"r-phi" :
"stereo";
128 type = (
tidGlued(
id) == 0) ? type : type+
" glued";
130 strstr <<
"TID" << side
131 <<
" Disk " << theDisk
132 <<
" Ring " << theRing <<
" " << part
133 <<
" Module " << theModule[1] <<
" " << type
134 <<
" (" <<
id.rawId() <<
")";
139 unsigned int theLayer =
tobLayer(
id);
140 std::vector<unsigned int> theRod =
tobRodInfo(
id);
144 side = (theRod[0] == 1 ) ?
"-" :
"+";
146 type = (
tobStereo(
id) == 0) ?
"r-phi" :
"stereo";
147 type = (
tobGlued(
id) == 0) ? type : type+
" glued";
149 strstr <<
"TOB" << side
150 <<
" Layer " << theLayer
151 <<
" Rod " << theRod[1]
152 <<
" Module " << theModule <<
" " << type
153 <<
" (" <<
id.rawId() <<
")";
158 unsigned int theWheel =
tecWheel(
id);
161 unsigned int theRing =
tecRing(
id);
164 side = (
tecSide(
id) == 1 ) ?
"-" :
"+";
165 petal = (thePetal[0] == 1 ) ?
"back" :
"front";
167 type = (
tecStereo(
id) == 0) ?
"r-phi" :
"stereo";
168 type = (
tecGlued(
id) == 0) ? type : type+
" glued";
170 strstr <<
"TEC" << side
171 <<
" Wheel " << theWheel
172 <<
" Petal " << thePetal[1] <<
" " << petal
173 <<
" Ring " << theRing
174 <<
" Module " << theModule <<
" " << type
175 <<
" (" <<
id.rawId() <<
")";
181 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::module";
187 switch(
id.subdetId()) {
bool tecIsDoubleSide(const DetId &id) const
bool tobIsDoubleSide(const DetId &id) const
uint32_t tobGlued(const DetId &id) const
bool tibIsDoubleSide(const DetId &id) const
unsigned int tibLayer(const DetId &id) const
unsigned int tidRing(const DetId &id) const
std::vector< unsigned int > tidModuleInfo(const DetId &id) const
unsigned int pxfDisk(const DetId &id) const
unsigned int tecRing(const DetId &id) const
ring id
uint32_t tobStereo(const DetId &id) const
unsigned int pxbLadder(const DetId &id) const
unsigned int side(const DetId &id) const
uint32_t tecGlued(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
unsigned int pxbModule(const DetId &id) const
SiStripDetId::ModuleGeometry moduleGeometry(const DetId &id) const
std::vector< unsigned int > tibStringInfo(const DetId &id) const
std::string print(DetId detid) const
PixelEndcapValues pfVals_
unsigned int module(const DetId &id) const
std::vector< unsigned int > tecPetalInfo(const DetId &id) const
unsigned int tidSide(const DetId &id) const
PixelBarrelValues pbVals_
uint32_t tidStereo(const DetId &id) const
std::vector< unsigned int > tobRodInfo(const DetId &id) const
unsigned int tidModule(const DetId &id) const
unsigned int tibModule(const DetId &id) const
unsigned int pxfModule(const DetId &id) const
unsigned int pxbLayer(const DetId &id) const
unsigned int tecModule(const DetId &id) const
uint32_t tibGlued(const DetId &id) const
bool tidIsDoubleSide(const DetId &id) const
unsigned int tobModule(const DetId &id) const
unsigned int layer(const DetId &id) const
uint32_t tecStereo(const DetId &id) const
unsigned int pxfSide(const DetId &id) const
uint32_t tibStereo(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
TrackerTopology(const PixelBarrelValues &pxb, const PixelEndcapValues &pxf, const TECValues &tecv, const TIBValues &tibv, const TIDValues &tidv, const TOBValues &tobv)
unsigned int pxfPanel(const DetId &id) const
unsigned int pxfBlade(const DetId &id) const
unsigned int tobLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const
uint32_t tidGlued(const DetId &id) const