31 bool orChannel)
const {
42 bool orChannel)
const {
43 if(orChannel)
return nullptr;
44 if(asdout->
isValid()==
false)
return nullptr;
77 if(i<0)
return nullptr;
78 channel = databaseP->
getEntry(i,7)+1;
86 if(channel==-1)
return nullptr;
100 bool orChannel)
const {
101 if(orChannel)
return nullptr;
102 if(asdin->
isValid()==
false)
return nullptr;
104 const bool asdinisEndcap = asdin->
isEndcap();
105 const bool asdinisTriplet = asdin->
isTriplet();
106 const int asdinLayer = asdin->
getLayer();
145 for(
int i=0; i<MaxEntry; i++){
147 int dbChamber = chamber;
148 if(asdinisEndcap&&asdinisTriplet)
149 dbChamber = dbChamber-1;
151 int dbChannel = asdinChannel-1;
152 if(databaseP->
getEntry(i,7)==dbChannel &&
153 databaseP->
getEntry(i,1)==dbChamber &&
154 databaseP->
getEntry(i,0)==asdinLayer) {
161 bool is_Backward =
false;
164 if(asdin->
isAside()) is_Backward = (sector%2==1);
165 else is_Backward = (sector%2==0);
170 if(asdin->
isAside()) is_Backward =
false;
171 else is_Backward =
true;
172 }
else if(sector == 16) {
173 if(asdin->
isAside()) is_Backward =
true;
174 else is_Backward =
false;
178 if(asdin->
isAside()) is_Backward = (sector%3==2);
179 else is_Backward = (sector%3!=2);
183 if(asdin->
isAside()) is_Backward =
true;
185 if(( is_Backward && asdin->
isAside()) ||
186 (!is_Backward && asdin->
isCside()))
191 if(channel==-1)
return nullptr;
virtual TGCChannelId * getChannelOut(const TGCChannelId *asdin, bool orChannel=false) 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 TGCChannelId * getChannelIn(const TGCChannelId *asdout, bool orChannel=false) const
TGCCable(CableType type=NoCableType)
virtual bool isValid() const
virtual int getIndexDBIn(int *indexIn) const
virtual int getMaxEntry(void) const
virtual int getEntry(int entry, int column) const
static constexpr int NUM_INNER_SECTOR
ModuleType getModuleType(void) const
static constexpr int NUM_ENDCAP_SECTOR
RegionType getRegionType(void) const
SignalType getSignalType(void) const
virtual int getSector() const
SideType getSideType(void) const
static constexpr int NUM_FORWARD_SECTOR