Public Member Functions | |
moduleVars (uint32_t) | |
Public Attributes | |
int | layerwheel |
uint32_t | module |
int | petal |
int | side |
int | stereo |
int | stringringrod |
int | subdetid |
Definition at line 23 of file ShallowClustersProducer.h.
ShallowClustersProducer::moduleVars::moduleVars | ( | uint32_t | detid | ) |
Definition at line 215 of file ShallowClustersProducer.cc.
References TIDDetId::isStereo(), TIBDetId::isStereo(), TOBDetId::isStereo(), TECDetId::isStereo(), TECDetId::isZMinusSide(), TOBDetId::isZMinusSide(), TIBDetId::isZMinusSide(), TIDDetId::isZMinusSide(), TIBDetId::layer(), TOBDetId::layer(), TOBDetId::module(), TECDetId::module(), TIBDetId::module(), TIDDetId::moduleNumber(), TECDetId::petalNumber(), TIDDetId::ringNumber(), TECDetId::ringNumber(), TOBDetId::rodNumber(), TIBDetId::stringNumber(), SiStripDetId::subDetector(), SiStripDetId::TEC, SiStripDetId::TIB, SiStripDetId::TID, SiStripDetId::TOB, TIDDetId::wheel(), and TECDetId::wheel().
{ SiStripDetId subdet(detid); subdetid = subdet.subDetector(); if( SiStripDetId::TIB == subdetid ) { TIBDetId tib(detid); module = tib.module(); side = (tib.isZMinusSide())?-1:1; layerwheel = tib.layer(); stringringrod = tib.stringNumber(); stereo = tib.isStereo() ? 1 : 0; } else if( SiStripDetId::TID == subdetid ) { TIDDetId tid(detid); module = tid.moduleNumber(); side = (tid.isZMinusSide())?-1:1; layerwheel = tid.wheel(); stringringrod = tid.ringNumber(); stereo = tid.isStereo() ? 1 : 0; } else if( SiStripDetId::TOB == subdetid ) { TOBDetId tob(detid); module = tob.module(); side = (tob.isZMinusSide())?-1:1; layerwheel = tob.layer(); stringringrod = tob.rodNumber(); stereo = tob.isStereo() ? 1 : 0; } else if( SiStripDetId::TEC == subdetid ) { TECDetId tec(detid); module = tec.module(); side = (tec.isZMinusSide())?-1:1; layerwheel = tec.wheel(); stringringrod = tec.ringNumber(); petal = tec.petalNumber(); stereo = tec.isStereo() ? 1 : 0; } else { module = 0; side = 0; layerwheel=-1; stringringrod = -1; petal=-1; } }
Definition at line 25 of file ShallowClustersProducer.h.
Definition at line 26 of file ShallowClustersProducer.h.
Definition at line 25 of file ShallowClustersProducer.h.
Definition at line 25 of file ShallowClustersProducer.h.
Definition at line 25 of file ShallowClustersProducer.h.
Definition at line 25 of file ShallowClustersProducer.h.
Definition at line 25 of file ShallowClustersProducer.h.