34 bool orChannel)
const {
55 bool orChannel)
const {
56 if(orChannel)
return nullptr;
57 if(slbin->
isValid()==
false)
return nullptr;
71 if(!slb)
return nullptr;
76 if(!mapId)
return nullptr;
82 if(!pp)
return nullptr;
127 bool orChannel)
const {
128 if(orChannel)
return nullptr;
129 if(ppout->
isValid()==
false)
return nullptr;
131 const int ppoutBlock = ppout->
getBlock();
137 if(!pp)
return nullptr;
142 if(!mapId)
return nullptr;
146 const int size = mapId->
size();
147 for(
int i=0;i<size;i++){
154 if(!slb)
return nullptr;
158 int channelInSLB = -1;
167 channelInSLB = ppout->
getChannel()-lengthOfSLB;
177 channelInSLB = ppout->
getChannel()-lengthOfSLB;
182 cellType,channelInSLB);
195 if(slb->
isValid()==
false)
return nullptr;
197 const int slbId = slb->
getId();
202 for(
int i=0; i<MaxEntry; i++){
203 if(databaseP->
getEntry(i,1)==slbId){
215 if(databaseP->
getEntry(i,2)==slbId) {
233 if(pp->
isValid()==
false)
return nullptr;
235 const int ppId = pp->
getId();
240 for(
int i=0; i<MaxEntry; i++){
241 if(databaseP->
getEntry(i,0)==ppId) {
virtual TGCChannelId * getChannelIn(const TGCChannelId *slbin, bool orChannel=false) const
virtual TGCModuleMap * getModuleOut(const TGCModuleId *pp) const
virtual TGCChannelId * getChannelOut(const TGCChannelId *ppout, bool orChannel=false) const
virtual TGCModuleMap * getModuleIn(const TGCModuleId *slb) const
std::array< std::array< std::unique_ptr< TGCDatabase >, TGCId::MaxModuleType >, TGCId::MaxRegionType > m_database
virtual TGCChannelId * getChannel(const TGCChannelId *channelId, bool orChannel=false) const
virtual TGCModuleMap * getModule(const TGCModuleId *moduleId) const
TGCCable(CableType type=NoCableType)
ChannelIdType getChannelIdType() const
virtual bool isValid() const
virtual TGCModuleId * getModule(void) const
virtual int getChannelInSLB(void) const
virtual CellType getCellType(void) const
static int convertChannel(TGCId::ModuleType moduleType, CellType cellType, int channelInSLB)
static int getLengthOfSLB(TGCId::ModuleType moduleType, CellType cellType)
virtual TGCModuleId * getModule(void) const
virtual int getMaxEntry(void) const
virtual int getEntry(int entry, int column) const
ModuleType getModuleType(void) const
RegionType getRegionType(void) const
virtual int getSector() const
SideType getSideType(void) const
virtual bool isValid(void) const
ModuleIdType getModuleIdType(void) const
void insert(int connector, TGCModuleId *moduleId)
TGCModuleId * popModuleId(int entry)