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::stack";
141 uint32_t subdet =
id.subdetId();
155 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::doubleSens";
159 uint32_t subdet =
id.subdetId();
173 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::doubleSensor";
177 uint32_t subdet =
id.subdetId();
191 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::lower";
195 uint32_t subdet =
id.subdetId();
209 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::upper";
213 uint32_t subdet =
id.subdetId();
227 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::isStereo";
232 uint32_t subdet =
id.subdetId();
246 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::isRPhi";
251 uint32_t subdet =
id.subdetId();
265 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::isDoubleSens";
270 uint32_t subdet =
id.subdetId();
284 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::isLower";
289 uint32_t subdet =
id.subdetId();
303 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::isUpper";
308 uint32_t subdet =
id.subdetId();
322 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::isFirst";
327 uint32_t subdet =
id.subdetId();
341 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::isSecond";
360 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::partnerDetId";
365 uint32_t subdet =
id.subdetId();
366 std::stringstream strstr;
369 unsigned int theLayer =
pxbLayer(
id);
373 typeUpgrade = (
isFirst(
id)) ?
"first" : typeUpgrade;
374 typeUpgrade = (
isSecond(
id)) ?
"second" : typeUpgrade;
375 typeUpgrade = (
isFirst(
id) ||
isSecond(
id)) ? typeUpgrade +
" double" :
"module";
376 strstr <<
"PixelBarrel" 377 <<
" Layer " << theLayer <<
" Ladder " << theLadder;
378 strstr <<
" Module for phase0 " << theModule;
379 strstr <<
" Module for phase2 " << theModule <<
" " << typeUpgrade;
380 strstr <<
" (" <<
id.rawId() <<
")";
385 unsigned int theSide =
pxfSide(
id);
386 unsigned int theDisk =
pxfDisk(
id);
387 unsigned int theBlade =
pxfBlade(
id);
388 unsigned int thePanel =
pxfPanel(
id);
391 strstr <<
"PixelEndcap" 392 <<
" Side " << theSide <<
side <<
" Disk " << theDisk <<
" Blade " << theBlade <<
" Panel " << thePanel
393 <<
" Module " << theModule;
394 strstr <<
" (" <<
id.rawId() <<
")";
399 unsigned int theLayer =
tibLayer(
id);
404 side = (theString[0] == 1) ?
"-" :
"+";
405 part = (theString[1] == 1) ?
"int" :
"ext";
411 typeUpgrade = (
isLower(
id)) ?
"lower" : typeUpgrade;
412 typeUpgrade = (
isUpper(
id)) ?
"upper" : typeUpgrade;
413 typeUpgrade = (
isUpper(
id) ||
isLower(
id)) ? typeUpgrade +
" stack" :
"module";
414 strstr <<
"TIB" <<
side <<
" Layer " << theLayer <<
" " <<
part <<
" String " << theString[2];
415 strstr <<
" Module for phase0 " << theModule <<
" " <<
type;
416 strstr <<
" Module for phase2 " << theModule <<
" " << typeUpgrade;
417 strstr <<
" (" <<
id.rawId() <<
")";
422 unsigned int theSide =
tidSide(
id);
423 unsigned int theWheel =
tidWheel(
id);
424 unsigned int theRing =
tidRing(
id);
429 part = (theModule[0] == 1) ?
"back" :
"front";
435 typeUpgrade = (
isLower(
id)) ?
"lower" : typeUpgrade;
436 typeUpgrade = (
isUpper(
id)) ?
"upper" : typeUpgrade;
437 typeUpgrade = (
isUpper(
id) ||
isLower(
id)) ? typeUpgrade +
" stack" :
"module";
439 <<
" Side " << theSide <<
side <<
" Wheel " << theWheel <<
" Ring " << theRing <<
" " <<
part;
440 strstr <<
" Module for phase0 " << theModule[1] <<
" " <<
type;
441 strstr <<
" Module for phase2 " << theModule[1] <<
" " << typeUpgrade;
442 strstr <<
" (" <<
id.rawId() <<
")";
447 unsigned int theLayer =
tobLayer(
id);
448 std::vector<unsigned int> theRod =
tobRodInfo(
id);
452 side = (((theRod[0] == 1) ?
"-" : ((theRod[0] == 2) ?
"+" : (theRod[0] == 3) ?
"0" :
"")));
460 typeUpgrade = (
isLower(
id)) ?
"lower" : typeUpgrade;
461 typeUpgrade = (
isUpper(
id)) ?
"upper" : typeUpgrade;
462 typeUpgrade = (
isUpper(
id) ||
isLower(
id)) ? typeUpgrade +
" stack" :
"module";
463 strstr <<
"TOB" <<
side <<
" Layer " << theLayer <<
" Rod " << theRod[1];
464 strstr <<
" Module for phase0 " << theModule <<
" " <<
type;
465 strstr <<
" Module for phase2 " << theModule <<
" " << typeUpgrade;
466 strstr <<
" (" <<
id.rawId() <<
")";
471 unsigned int theSide =
tecSide(
id);
472 unsigned int theWheel =
tecWheel(
id);
475 unsigned int theRing =
tecRing(
id);
479 petal = (thePetal[0] == 1) ?
"back" :
"front";
485 typeUpgrade = (
isLower(
id)) ?
"lower" : typeUpgrade;
486 typeUpgrade = (
isUpper(
id)) ?
"upper" : typeUpgrade;
487 typeUpgrade = (
isUpper(
id) ||
isLower(
id)) ? typeUpgrade +
" stack" :
"module";
489 <<
" Side " << theSide <<
side <<
" Wheel " << theWheel <<
" Petal " << thePetal[1] <<
" " << petal
490 <<
" Ring " << theRing;
491 strstr <<
" Module for phase0 " << theModule <<
" " <<
type;
492 strstr <<
" Module for phase2 " << theModule <<
" " << typeUpgrade;
493 strstr <<
" (" <<
id.rawId() <<
")";
498 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::module";
503 switch (
id.subdetId()) {
548 edm::LogInfo(
"TrackerTopology") <<
">>> Invalid subdetId() ";
563 edm::LogInfo(
"TrackerTopology") <<
">>> Invalid subdetId() ";
bool isUpper(const DetId &id) const
uint32_t second(const DetId &id) const
unsigned int layerStartBit_
uint32_t tidLower(const DetId &id) const
unsigned int tobLayer(const DetId &id) const
DetId tibPartnerDetId(const DetId &id) const
unsigned int pxbLayer(const DetId &id) const
uint32_t pixFirst(const DetId &id) const
std::vector< unsigned int > tidModuleInfo(const DetId &id) const
uint32_t tibRPhi(const DetId &id) const
unsigned int pxfBlade(const DetId &id) const
const PixelEndcapValues pfVals_
uint32_t tidStereo(const DetId &id) const
unsigned int tibModule(const DetId &id) const
unsigned int tidSide(const DetId &id) const
std::string print(DetId detid) const
unsigned int pxfModule(const DetId &id) const
std::vector< unsigned int > tecPetalInfo(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
uint32_t tibGlued(const DetId &id) const
DetId tidPartnerDetId(const DetId &id) const
DetId pixPartnerDetId(const DetId &id) const
bool isStereo(const DetId &id) const
bool isRPhi(const DetId &id) const
unsigned int pxbLadder(const DetId &id) const
unsigned int side(const DetId &id) const
unsigned int tecRing(const DetId &id) const
ring id
unsigned int ladderStartBit_
uint32_t pixDouble(const DetId &id) const
unsigned int layer(const DetId &id) const
const PixelBarrelValues pbVals_
uint32_t doubleSensor(const DetId &id) const
unsigned int module(const DetId &id) const
int getITPixelLayerNumber(const DetId &id) const
unsigned int tidModule(const DetId &id) const
unsigned int tecModule(const DetId &id) const
uint32_t tobGlued(const DetId &id) const
uint32_t tobStereo(const DetId &id) const
uint32_t tidUpper(const DetId &id) const
int getOTLayerNumber(const DetId &id) const
unsigned int tecSide(const DetId &id) const
unsigned int moduleStartBit_
uint32_t tidGlued(const DetId &id) const
uint32_t tidStack(const DetId &id) const
uint32_t tobUpper(const DetId &id) const
uint32_t tecPartnerDetId(const DetId &id) const
unsigned int pxfDisk(const DetId &id) const
uint32_t stack(const DetId &id) const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
DetId partnerDetId(const DetId &id) const
bool isDoubleSens(const DetId &id) const
uint32_t tecRPhi(const DetId &id) const
uint32_t tecLower(const DetId &id) const
uint32_t glued(const DetId &id) const
unsigned int pxfPanel(const DetId &id) const
unsigned int sideStartBit_
Log< level::Info, false > LogInfo
SiStripModuleGeometry moduleGeometry(const DetId &id) const
DetId tobPartnerDetId(const DetId &id) const
bool isLower(const DetId &id) const
unsigned int pxfSide(const DetId &id) const
std::vector< unsigned int > tibStringInfo(const DetId &id) const
bool isSecond(const DetId &id) const
unsigned int bladeStartBit_
uint32_t lower(const DetId &id) const
uint32_t tecUpper(const DetId &id) const
std::vector< unsigned int > tobRodInfo(const DetId &id) const
unsigned int diskStartBit_
unsigned int panelStartBit_
uint32_t first(const DetId &id) const
uint32_t tobLower(const DetId &id) const
unsigned int tidRing(const DetId &id) const
uint32_t tibStack(const DetId &id) const
uint32_t tecStereo(const DetId &id) const
uint32_t tidRPhi(const DetId &id) const
uint32_t tibLower(const DetId &id) const
uint32_t tibUpper(const DetId &id) const
uint32_t pixSecond(const DetId &id) const
unsigned int tibLayer(const DetId &id) const
unsigned int tobModule(const DetId &id) const
unsigned int pxbModule(const DetId &id) const
uint32_t tobStack(const DetId &id) const
unsigned int moduleStartBit_
uint32_t tecStack(const DetId &id) const
bool isFirst(const DetId &id) const
uint32_t tecGlued(const DetId &id) const
uint32_t tobRPhi(const DetId &id) const
TrackerTopology(const PixelBarrelValues &pxb, const PixelEndcapValues &pxf, const TECValues &tecv, const TIBValues &tibv, const TIDValues &tidv, const TOBValues &tobv)
uint32_t tibStereo(const DetId &id) const
uint32_t upper(const DetId &id) const