29 uint32_t subdet =
id.subdetId();
43 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::side";
48 uint32_t subdet =
id.subdetId();
62 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::layer";
67 uint32_t subdet =
id.subdetId();
81 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::module";
86 uint32_t subdet =
id.subdetId();
100 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::glued";
105 uint32_t subdet =
id.subdetId();
119 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::stack";
123 uint32_t subdet =
id.subdetId();
137 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::lower";
141 uint32_t subdet =
id.subdetId();
155 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::upper";
159 uint32_t subdet =
id.subdetId();
173 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::isStereo";
178 uint32_t subdet =
id.subdetId();
192 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::isRPhi";
196 uint32_t subdet =
id.subdetId();
210 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::isLower";
215 uint32_t subdet =
id.subdetId();
229 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::isUpper";
248 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::partnerDetId";
253 uint32_t subdet =
id.subdetId();
254 std::stringstream strstr;
257 unsigned int theLayer =
pxbLayer(
id);
260 strstr <<
"PixelBarrel"
261 <<
" Layer " << theLayer <<
" Ladder " << theLadder <<
" Module " << theModule;
262 strstr <<
" (" <<
id.rawId() <<
")";
267 unsigned int theSide =
pxfSide(
id);
268 unsigned int theDisk =
pxfDisk(
id);
269 unsigned int theBlade =
pxfBlade(
id);
270 unsigned int thePanel =
pxfPanel(
id);
273 strstr <<
"PixelEndcap"
274 <<
" Side " << theSide << side <<
" Disk " << theDisk <<
" Blade " << theBlade <<
" Panel " << thePanel
275 <<
" Module " << theModule;
276 strstr <<
" (" <<
id.rawId() <<
")";
281 unsigned int theLayer =
tibLayer(
id);
286 side = (theString[0] == 1) ?
"-" :
"+";
287 part = (theString[1] == 1) ?
"int" :
"ext";
289 type = (
isStereo(
id)) ?
"stereo" : type;
290 type = (
isRPhi(
id)) ?
"r-phi" : type;
293 typeUpgrade = (
isLower(
id)) ?
"lower" : typeUpgrade;
294 typeUpgrade = (
isUpper(
id)) ?
"upper" : typeUpgrade;
295 typeUpgrade = (
isUpper(
id) ||
isLower(
id)) ? typeUpgrade +
" stack" :
"module";
296 strstr <<
"TIB" << side <<
" Layer " << theLayer <<
" " << part <<
" String " << theString[2];
297 strstr <<
" Module for phase0 " << theModule <<
" " <<
type;
298 strstr <<
" Module for phase2 " << theModule <<
" " << typeUpgrade;
299 strstr <<
" (" <<
id.rawId() <<
")";
304 unsigned int theSide =
tidSide(
id);
305 unsigned int theWheel =
tidWheel(
id);
306 unsigned int theRing =
tidRing(
id);
310 side = (
tidSide(
id) == 1) ?
"-" :
"+";
311 part = (theModule[0] == 1) ?
"back" :
"front";
313 type = (
isStereo(
id)) ?
"stereo" : type;
314 type = (
isRPhi(
id)) ?
"r-phi" : type;
317 typeUpgrade = (
isLower(
id)) ?
"lower" : typeUpgrade;
318 typeUpgrade = (
isUpper(
id)) ?
"upper" : typeUpgrade;
319 typeUpgrade = (
isUpper(
id) ||
isLower(
id)) ? typeUpgrade +
" stack" :
"module";
321 <<
" Side " << theSide << side <<
" Wheel " << theWheel <<
" Ring " << theRing <<
" " <<
part;
322 strstr <<
" Module for phase0 " << theModule[1] <<
" " <<
type;
323 strstr <<
" Module for phase2 " << theModule[1] <<
" " << typeUpgrade;
324 strstr <<
" (" <<
id.rawId() <<
")";
329 unsigned int theLayer =
tobLayer(
id);
330 std::vector<unsigned int> theRod =
tobRodInfo(
id);
334 side = (((theRod[0] == 1) ?
"-" : ((theRod[0] == 2) ?
"+" : (theRod[0] == 3) ?
"0" :
"")));
338 type = (
isStereo(
id)) ?
"stereo" : type;
339 type = (
isRPhi(
id)) ?
"r-phi" : type;
342 typeUpgrade = (
isLower(
id)) ?
"lower" : typeUpgrade;
343 typeUpgrade = (
isUpper(
id)) ?
"upper" : typeUpgrade;
344 typeUpgrade = (
isUpper(
id) ||
isLower(
id)) ? typeUpgrade +
" stack" :
"module";
345 strstr <<
"TOB" << side <<
" Layer " << theLayer <<
" Rod " << theRod[1];
346 strstr <<
" Module for phase0 " << theModule <<
" " <<
type;
347 strstr <<
" Module for phase2 " << theModule <<
" " << typeUpgrade;
348 strstr <<
" (" <<
id.rawId() <<
")";
353 unsigned int theSide =
tecSide(
id);
354 unsigned int theWheel =
tecWheel(
id);
357 unsigned int theRing =
tecRing(
id);
360 side = (
tecSide(
id) == 1) ?
"-" :
"+";
361 petal = (thePetal[0] == 1) ?
"back" :
"front";
363 type = (
isStereo(
id)) ?
"stereo" : type;
364 type = (
isRPhi(
id)) ?
"r-phi" : type;
367 typeUpgrade = (
isLower(
id)) ?
"lower" : typeUpgrade;
368 typeUpgrade = (
isUpper(
id)) ?
"upper" : typeUpgrade;
369 typeUpgrade = (
isUpper(
id) ||
isLower(
id)) ? typeUpgrade +
" stack" :
"module";
371 <<
" Side " << theSide << side <<
" Wheel " << theWheel <<
" Petal " << thePetal[1] <<
" " << petal
372 <<
" Ring " << theRing;
373 strstr <<
" Module for phase0 " << theModule <<
" " <<
type;
374 strstr <<
" Module for phase2 " << theModule <<
" " << typeUpgrade;
375 strstr <<
" (" <<
id.rawId() <<
")";
380 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::module";
385 switch (
id.subdetId()) {
430 edm::LogInfo(
"TrackerTopology") <<
">>> Invalid subdetId() ";
445 edm::LogInfo(
"TrackerTopology") <<
">>> Invalid subdetId() ";
DetId tidPartnerDetId(const DetId &id) const
uint32_t tibStack(const DetId &id) const
unsigned int layerStartBit_
uint32_t tobGlued(const DetId &id) const
uint32_t upper(const DetId &id) const
unsigned int tibLayer(const DetId &id) const
unsigned int tidRing(const DetId &id) const
uint32_t tobLower(const DetId &id) const
const PixelEndcapValues pfVals_
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
uint32_t tidRPhi(const DetId &id) const
uint32_t tobStack(const DetId &id) const
unsigned int side(const DetId &id) const
uint32_t tecGlued(const DetId &id) const
bool isStereo(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
unsigned int pxbModule(const DetId &id) const
uint32_t tecRPhi(const DetId &id) const
std::vector< unsigned int > tibStringInfo(const DetId &id) const
std::string print(DetId detid) const
unsigned int ladderStartBit_
uint32_t tecPartnerDetId(const DetId &id) const
DetId partnerDetId(const DetId &id) const
DetId tibPartnerDetId(const DetId &id) const
DetId tobPartnerDetId(const DetId &id) const
const PixelBarrelValues pbVals_
bool isLower(const DetId &id) const
SiStripModuleGeometry moduleGeometry(const DetId &id) const
unsigned int module(const DetId &id) const
uint32_t tibRPhi(const DetId &id) const
std::vector< unsigned int > tecPetalInfo(const DetId &id) const
uint32_t tecUpper(const DetId &id) const
unsigned int tidSide(const DetId &id) const
uint32_t tidStereo(const DetId &id) const
std::vector< unsigned int > tobRodInfo(const DetId &id) const
unsigned int moduleStartBit_
unsigned int tidModule(const DetId &id) const
uint32_t tidStack(const DetId &id) const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
int getITPixelLayerNumber(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
bool isUpper(const DetId &id) const
unsigned int tecModule(const DetId &id) const
unsigned int sideStartBit_
Log< level::Info, false > LogInfo
uint32_t tibGlued(const DetId &id) const
unsigned int bladeStartBit_
uint32_t stack(const DetId &id) const
uint32_t tidLower(const DetId &id) const
uint32_t tecLower(const DetId &id) const
unsigned int tobModule(const DetId &id) const
unsigned int layer(const DetId &id) const
uint32_t lower(const DetId &id) const
uint32_t tecStereo(const DetId &id) const
unsigned int diskStartBit_
uint32_t tibUpper(const DetId &id) const
unsigned int panelStartBit_
uint32_t tecStack(const DetId &id) const
unsigned int pxfSide(const DetId &id) const
uint32_t tibLower(const DetId &id) const
uint32_t tobUpper(const DetId &id) const
bool isRPhi(const DetId &id) const
unsigned int moduleStartBit_
uint32_t tibStereo(const DetId &id) const
uint32_t glued(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
uint32_t tidUpper(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
int getOTLayerNumber(const DetId &id) const
unsigned int tobLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const
uint32_t tobRPhi(const DetId &id) const
uint32_t tidGlued(const DetId &id) const