13 PixelROC::PixelROC(uint32_t du,
int idDU,
int idLk)
14 : theDetUnit(du), theIdDU(idDU), theIdLk(idLk) {
107 const unsigned int moduleStartBit_= 2;
111 const unsigned int moduleMask_= 0x3F;
118 unsigned int module = (rawId>>moduleStartBit_)& moduleMask_;
120 if(module<5) side=-1;
129 const unsigned int moduleStartBit_= 2;
133 const unsigned int moduleMask_= 0x3FF;
140 unsigned int module = (rawId>>moduleStartBit_)& moduleMask_;
142 if(module<5) side=-1;
147 const unsigned int layerStartBit_= 20;
151 const unsigned int layerMask_= 0xF;
156 unsigned int layer = (rawId>>layerStartBit_) & layerMask_;
173 const unsigned int panelStartBit_= 8;
180 const unsigned int panelMask_= 0x3;
190 unsigned int panel = ((rawId>>panelStartBit_) & panelMask_);
194 if(panel==1) side=-1;
204 const unsigned int panelStartBit_= 10;
211 const unsigned int panelMask_= 0x3;
223 unsigned int panel = ((rawId>>panelStartBit_) & panelMask_);
228 if(panel==1) side=-1;
239 out <<
"======== PixelROC ";
243 if (barrel) out <<
" barrel ";
244 else out <<
" endcap ";
int fpixSidePhase1(uint32_t rawId) const
void initFrameConversion()
bool isBarrel(GeomDetEnumerators::SubDetector m)
void initFrameConversionPhase1_CMSSW_9_0_X()
std::string print(int depth=0) const
printout for debug
uint32_t rawId() const
return the DetUnit to which this ROC belongs to.
FrameConversion theFrameConverter
virtual bool isBarrel() const
true for barrel modules
int fpixSidePhase0(uint32_t rawId) const
static int bpixLayerPhase1(uint32_t rawId)
int bpixSidePhase0(uint32_t rawId) const
void initFrameConversionPhase1()
int bpixSidePhase1(uint32_t rawId) const