32 uint32_t subdet=
id.subdetId();
46 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::side";
51 uint32_t subdet=
id.subdetId();
65 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::layer";
70 uint32_t subdet=
id.subdetId();
84 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::module";
90 uint32_t subdet=
id.subdetId();
104 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::glued";
110 uint32_t subdet=
id.subdetId();
124 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::stack";
129 uint32_t subdet=
id.subdetId();
143 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::lower";
148 uint32_t subdet=
id.subdetId();
162 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::upper";
168 uint32_t subdet=
id.subdetId();
182 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::isStereo";
188 uint32_t subdet=
id.subdetId();
202 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::isRPhi";
207 uint32_t subdet=
id.subdetId();
221 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::isLower";
228 uint32_t subdet=
id.subdetId();
242 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::isUpper";
262 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::partnerDetId";
267 uint32_t subdet=
id.subdetId();
268 std::stringstream strstr;
271 unsigned int theLayer =
pxbLayer(
id);
274 strstr <<
"PixelBarrel"
275 <<
" Layer " << theLayer
276 <<
" Ladder " << theLadder
277 <<
" Module " << theModule ;
278 strstr <<
" (" <<
id.rawId() <<
")";
283 unsigned int theSide =
pxfSide(
id);
284 unsigned int theDisk =
pxfDisk(
id);
285 unsigned int theBlade =
pxfBlade(
id);
286 unsigned int thePanel =
pxfPanel(
id);
289 strstr <<
"PixelEndcap"
290 <<
" Side " << theSide << side
291 <<
" Disk " << theDisk
292 <<
" Blade " << theBlade
293 <<
" Panel " << thePanel
294 <<
" Module " << theModule ;
295 strstr <<
" (" <<
id.rawId() <<
")";
300 unsigned int theLayer =
tibLayer(
id);
305 side = (theString[0] == 1 ) ?
"-" :
"+";
306 part = (theString[1] == 1 ) ?
"int" :
"ext";
308 type = (
isStereo(
id)) ?
"stereo" : type;
309 type = (
isRPhi(
id)) ?
"r-phi" : type;
312 typeUpgrade = (
isLower(
id)) ?
"lower" : typeUpgrade;
313 typeUpgrade = (
isUpper(
id)) ?
"upper" : typeUpgrade;
314 typeUpgrade = (
isUpper(
id) ||
isLower(
id)) ? typeUpgrade+
" stack":
"module";
315 strstr <<
"TIB" << side
316 <<
" Layer " << theLayer <<
" " << part
317 <<
" String " << theString[2];
318 strstr <<
" Module for phase0 " << theModule <<
" " <<
type;
319 strstr <<
" Module for phase2 " << theModule <<
" " << typeUpgrade;
320 strstr <<
" (" <<
id.rawId() <<
")";
325 unsigned int theSide =
tidSide(
id);
326 unsigned int theWheel =
tidWheel(
id);
327 unsigned int theRing =
tidRing(
id);
331 side = (
tidSide(
id) == 1 ) ?
"-" :
"+";
332 part = (theModule[0] == 1 ) ?
"back" :
"front";
334 type = (
isStereo(
id)) ?
"stereo" : type;
335 type = (
isRPhi(
id)) ?
"r-phi" : type;
338 typeUpgrade = (
isLower(
id)) ?
"lower" : typeUpgrade;
339 typeUpgrade = (
isUpper(
id)) ?
"upper" : typeUpgrade;
340 typeUpgrade = (
isUpper(
id) ||
isLower(
id)) ? typeUpgrade+
" stack":
"module";
342 <<
" Side " << theSide << side
343 <<
" Wheel " << theWheel
344 <<
" Ring " << theRing <<
" " <<
part;
345 strstr <<
" Module for phase0 " << theModule[1] <<
" " <<
type;
346 strstr <<
" Module for phase2 " << theModule[1] <<
" " << typeUpgrade;
347 strstr <<
" (" <<
id.rawId() <<
")";
352 unsigned int theLayer =
tobLayer(
id);
353 std::vector<unsigned int> theRod =
tobRodInfo(
id);
357 side = (((theRod[0] == 1 ) ?
"-" : ((theRod[0] == 2 ) ?
"+" : (theRod[0] == 3 ) ?
"0" :
"")));
361 type = (
isStereo(
id)) ?
"stereo" : type;
362 type = (
isRPhi(
id)) ?
"r-phi" : type;
365 typeUpgrade = (
isLower(
id)) ?
"lower" : typeUpgrade;
366 typeUpgrade = (
isUpper(
id)) ?
"upper" : typeUpgrade;
367 typeUpgrade = (
isUpper(
id) ||
isLower(
id)) ? typeUpgrade+
" stack":
"module";
368 strstr <<
"TOB" << side
369 <<
" Layer " << theLayer
370 <<
" Rod " << theRod[1];
371 strstr <<
" Module for phase0 " << theModule <<
" " <<
type;
372 strstr <<
" Module for phase2 " << theModule <<
" " << typeUpgrade;
373 strstr <<
" (" <<
id.rawId() <<
")";
378 unsigned int theSide =
tecSide(
id);
379 unsigned int theWheel =
tecWheel(
id);
382 unsigned int theRing =
tecRing(
id);
385 side = (
tecSide(
id) == 1 ) ?
"-" :
"+";
386 petal = (thePetal[0] == 1 ) ?
"back" :
"front";
388 type = (
isStereo(
id)) ?
"stereo" : type;
389 type = (
isRPhi(
id)) ?
"r-phi" : type;
392 typeUpgrade = (
isLower(
id)) ?
"lower" : typeUpgrade;
393 typeUpgrade = (
isUpper(
id)) ?
"upper" : typeUpgrade;
394 typeUpgrade = (
isUpper(
id) ||
isLower(
id)) ? typeUpgrade+
" stack":
"module";
396 <<
" Side " << theSide << side
397 <<
" Wheel " << theWheel
398 <<
" Petal " << thePetal[1] <<
" " << petal
399 <<
" Ring " << theRing;
400 strstr <<
" Module for phase0 " << theModule <<
" " <<
type;
401 strstr <<
" Module for phase2 " << theModule <<
" " << typeUpgrade;
402 strstr <<
" (" <<
id.rawId() <<
")";
408 throw cms::Exception(
"Invalid DetId") <<
"Unsupported DetId in TrackerTopology::module";
414 switch(
id.subdetId()) {
444 edm::LogInfo(
"TrackerTopology") <<
">>> Invalid subdetId() " ;
459 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
SiStripDetId::ModuleGeometry moduleGeometry(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
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
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_
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