|
ATLAS Offline Software
|
Go to the documentation of this file.
50 bool orChannel)
const {
71 bool orChannel)
const {
72 if(orChannel)
return nullptr;
73 if(hpbin->
isValid()==
false)
return nullptr;
78 if(!hpb)
return nullptr;
83 if(!mapId)
return nullptr;
99 int port = blockInHPB*slbInBlock+nSlb;
109 if(!slb)
return nullptr;
112 int nInSlb = hpbin->
getChannel()/(numOfBlock*2);
113 int blockInSlb = nInSlb/2;
114 int nInBlock = nInSlb%2;
115 int channel = (chInBlock/2)*nInBlock;
131 bool orChannel)
const
133 if(orChannel)
return nullptr;
134 if(hpbin->
isValid()==
false)
return nullptr;
142 if(!hpb)
return nullptr;
147 if(!mapId)
return nullptr;
178 port = blockInHPB*slbInBlock+nSlb;
186 blockInSlb = (hpbin->
getChannel() - nSlb*(numOfBlock*2))/2;
187 posInHpb = (hpbin->
getChannel() - (numOfBlock*2)*nSlb)%2;
188 channel = (chInBlock/2)*posInHpb;
195 port = blockInHPB*slbInBlock+nSlb;
203 blockInSlb = (hpbin->
getChannel() - nSlb*(numOfBlock*2))/2;
204 posInHpb = (hpbin->
getChannel() - (numOfBlock*2)*nSlb)%2;
205 channel = (chInBlock/2)*posInHpb;
210 if(blockInHPB==0 && hpbin->
getChannel()<numOfBlock) port=1;
219 blockInSlb = (hpbin->
getChannel())%numOfBlock;
220 if(blockInHPB == 1 && hpbin->
getChannel() >= numOfBlock) blockInSlb = blockInSlb + numOfBlock/2;
229 delete mapId; mapId =
nullptr;
230 if(!slb)
return nullptr;
235 int SLBID = slb->
getId();
236 if((chInBlock*blockInSlb+
channel)>chInBlock*numOfBlock){
240 }
else if(
channel > chInBlock){
259 bool orChannel)
const {
260 if(orChannel)
return nullptr;
261 if(slbout->
isValid()==
false)
return nullptr;
267 if(!slb)
return nullptr;
272 if(!mapId)
return nullptr;
278 if(!hpb)
return nullptr;
289 int block = port/slbInBlock;
290 int hitId = (port%slbInBlock)*2+slbout->
getBlock();
307 if(hpb->
isValid()==
false)
return nullptr;
308 const int hpbId = hpb->
getId();
329 const int doubletMaxEntry = doubletP->
getMaxEntry();
330 for(
int i=0;
i<doubletMaxEntry;
i++){
344 const int tripletMaxEntry = tripletP->
getMaxEntry();
345 for(
int i=0;
i<tripletMaxEntry;
i++){
365 if(hpb->
isValid()==
false)
return nullptr;
367 const int hpbId = hpb->
getId();
373 for(
int i=0;
i<MaxEntry;
i++){
406 if(slb->
isValid()==
false)
return nullptr;
408 const int slbId = slb->
getId();
414 for(
int i=0;
i<MaxEntry;
i++){
ModuleIdType getModuleIdType(void) const
virtual bool isValid() const
MultipletType getMultipletType(void) const
TGCDatabase * m_database[TGCId::MaxRegionType][TGCId::MaxModuleType]
SideType getSideType(void) const
SignalType getSignalType(void) const
RegionType getRegionType(void) const
virtual TGCModuleMap * getModuleInforHPB(const TGCModuleId *hpb, TGCId::ModuleType moduleType) const
ModuleType getModuleType(void) const
static int getNumberOfBlock(TGCId::ModuleType moduleType)
virtual TGCModuleId * getModule(void) const
virtual int getEntry(int entry, int column) const
TGCChannelId * getChannelInforHPB(const TGCChannelId *hpbin, TGCId::ModuleType moduleType, bool orChannel=false) const
virtual TGCModuleMap * getModule(const TGCModuleId *moduleId) const
virtual int getMaxEntry(void) const
virtual TGCChannelId * getChannelIn(const TGCChannelId *hpbin, bool orChannel=false) const
virtual TGCChannelId * getChannel(const TGCChannelId *channelId, bool orChannel=false) const
void insert(int connector, TGCModuleId *moduleId)
static int getSlbInBlock(void)
TGCModuleId * popModuleId(int entry)
virtual TGCChannelId * getChannelOut(const TGCChannelId *slbout, bool orChannel=false) const
virtual int getSector() const
virtual ~TGCCableSLBToHPB(void)
virtual TGCModuleMap * getModuleOut(const TGCModuleId *slb) const
virtual TGCModuleMap * getModuleIn(const TGCModuleId *hpb) const
static int getChannelInBlock(TGCId::ModuleType moduleType)
virtual bool isValid(void) const