13 PixelROC::PixelROC(uint32_t du,
int idDU,
int idLk)
14 : theDetUnit(du), theIdDU(idDU), theIdLk(idLk) {
90 const unsigned int moduleStartBit_= 2;
94 const unsigned int moduleMask_= 0x3F;
101 unsigned int module = (rawId>>moduleStartBit_)& moduleMask_;
103 if(module<5) side=-1;
112 const unsigned int moduleStartBit_= 2;
116 const unsigned int moduleMask_= 0x3FF;
123 unsigned int module = (rawId>>moduleStartBit_)& moduleMask_;
125 if(module<5) side=-1;
130 const unsigned int layerStartBit_= 20;
134 const unsigned int layerMask_= 0xF;
139 unsigned int layer = (rawId>>layerStartBit_) & layerMask_;
156 const unsigned int panelStartBit_= 8;
163 const unsigned int panelMask_= 0x3;
173 unsigned int panel = ((rawId>>panelStartBit_) & panelMask_);
177 if(panel==1) side=-1;
187 const unsigned int panelStartBit_= 10;
194 const unsigned int panelMask_= 0x3;
206 unsigned int panel = ((rawId>>panelStartBit_) & panelMask_);
211 if(panel==1) side=-1;
222 out <<
"======== PixelROC ";
226 if (barrel) out <<
" barrel ";
227 else out <<
" endcap ";
int fpixSidePhase1(uint32_t rawId) const
void initFrameConversion()
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