|
ATLAS Offline Software
|
Go to the documentation of this file.
51 bool orChannel)
const {
62 bool orChannel)
const {
63 if(ppout->
isValid()==
false)
return nullptr;
79 int id=-1, block=-1,
channel=-1;
82 for(
int idatabaseP=0; idatabaseP<ndatabaseP; idatabaseP++) {
98 id = databaseP[idatabaseP]->
getEntry(
i,3);
99 block = databaseP[idatabaseP]->
getEntry(
i,4);
101 if(
id==-1 && block==-1 &&
channel==-1)
continue;
106 if(databaseP[idatabaseP]->getEntrySize(
i)==9) {
107 id = databaseP[idatabaseP]->
getEntry(
i,6);
108 block = databaseP[idatabaseP]->
getEntry(
i,7);
115 if(!
found)
return nullptr;
130 bool orChannel)
const {
131 if(ppin->
isValid()==
false)
return nullptr;
134 const int ppinBlock = ppin->
getBlock();
135 const int ppinId = ppin->
getId();
142 for(
int i=0;
i<MaxEntry;
i++){
143 bool cond1 = (databaseP->
getEntry(
i,5)==ppinChannel)&&
148 (databaseP->
getEntry(
i,8)==ppinChannel)&&
158 int channelInSLB = -1;
161 if(block==0||block==2){
171 if(channelInSLB<adjacentOfD||channelInSLB>=lengthOfD-adjacentOfD)
177 channelInSLB =
channel-lengthOfD;
178 if(channelInSLB<adjacentOfC||channelInSLB>=lengthOfC-adjacentOfC)
182 if(block==1||block==3){
192 if(channelInSLB<adjacentOfB||channelInSLB>=lengthOfB-adjacentOfB)
198 channelInSLB =
channel-lengthOfB;
199 if(channelInSLB<adjacentOfA||channelInSLB>=lengthOfA-adjacentOfA)
virtual bool isValid() const
SideType getSideType(void) const
RegionType getRegionType(void) const
TGCDatabase * m_database[TGCId::MaxRegionType][TGCId::MaxModuleType]
bool adjacent(unsigned int strip1, unsigned int strip2)
virtual TGCChannelId * getChannelIn(const TGCChannelId *ppout, bool orChannel=false) const
ModuleType getModuleType(void) const
virtual ~TGCCableInPP(void)
virtual TGCChannelId * getChannelOut(const TGCChannelId *ppin, bool orChannel=false) const
virtual int getIndexDBIn(int *indexIn) const
virtual int getEntry(int entry, int column) const
virtual TGCChannelId * getChannel(const TGCChannelId *channelId, bool orChannel=false) const
virtual int getMaxEntry(void) const
virtual int getEntrySize(int entry) const
static int getAdjacentOfSLB(TGCId::ModuleType moduleType, CellType cellType)
virtual int getSector() const
static int getLengthOfSLB(TGCId::ModuleType moduleType, CellType cellType)