![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "GaudiKernel/StatusCode.h"
29 const std::string& filenameInPP,
30 const std::string& filenamePPToSL,
31 const std::string& filenameSLBToROD)
57 for (
auto&
p : m_slbModuleIdMap) {
90 std::scoped_lock lock (
m_mutex);
92 int indexFromReadoutWithoutChannel
95 = m_slbModuleIdMap.find(indexFromReadoutWithoutChannel);
96 if(
it!=m_slbModuleIdMap.end()) {
103 int readoutSector = rodId -1 ;
109 m_slbModuleIdMap.insert(std::pair<int, TGCModuleId*>(indexFromReadoutWithoutChannel, 0));
115 const int sswMapsize = sswMap->
size();
116 for(
int i=0;
i<sswMapsize;
i++){
117 if((sswMap->
moduleId(
i))->getId()==sswId){
125 m_slbModuleIdMap.
insert(std::pair<int, TGCModuleId*>(indexFromReadoutWithoutChannel, 0));
134 m_slbModuleIdMap.insert(std::pair<int, TGCModuleId*>(indexFromReadoutWithoutChannel, 0));
140 const int slbMapsize = slbMap->
size();
141 for(
int i=0;
i<slbMapsize;
i++){
152 m_slbModuleIdMap.
insert(std::pair<int, TGCModuleId*>(indexFromReadoutWithoutChannel, 0));
156 m_slbModuleIdMap.insert(std::pair<int, TGCModuleId*>(indexFromReadoutWithoutChannel, slb));
169 int readoutSector = rodId -1 ;
174 if(!sswMap)
return rxId;
178 const int sswMapsize = sswMap->
size();
179 for(
int i=0;
i<sswMapsize;
i++){
180 if((sswMap->
moduleId(
i))->getId()==sswId){
187 if(!
found || !ssw)
return rxId;
193 if(!slbMap)
return rxId;
197 const int slbMapsize = slbMap->
size();
198 for(
int i=0;
i<slbMapsize;
i++){
219 int readoutSector = rodId -1 ;
224 if(!sswMap)
return nullptr;
230 if((sswMap->
moduleId(
i))->getId()==sswId){
237 if(!
found || !ssw)
return nullptr;
243 if(!slbMap)
return nullptr;
246 int ip = slbMap->
find(rxId);
247 if(ip <0 || ip >= slbMap->
size()){
248 delete slbMap; slbMap =
nullptr;
254 if(!slb)
return nullptr;
273 if(!slb)
return false;
280 if(!sswMap)
return false;
285 if(!ssw)
return false;
289 sswId = ssw->
getId();
299 delete ssw; ssw =
nullptr;
336 if(!rodMap)
return false;
341 if(!
rod)
return false;
344 rodId =
rod->getId();
364 bool orChannel)
const
373 int readoutSector = (rodId -1);
374 int sector = sectorInReadout;
397 if(!hpbin.
isValid())
return false;
400 if(!slbout)
return 0;
408 if(!slbin)
return false;
413 if(!slb)
return false;
437 int & sectorInReadout,
445 sectorInReadout = -1;
473 hpbId = hpbin->
getId();
493 bool orChannel =
flag;
511 if(!slbin)
return false;
543 if(!slbin.
isValid())
return false;
546 if(!slbout)
return false;
562 bool orChannel)
const {
567 if(!slb)
return nullptr;
575 if(!slbin.
isValid())
return nullptr;
588 bool orChannel)
const {
600 if(!slbin)
return false;
605 if(!slb)
return false;
620 bool orChannel)
const {
627 if(!asdout)
return nullptr;
634 if(!ppin)
return nullptr;
641 if(!ppout)
return nullptr;
658 if(!ppin)
return nullptr;
665 if(!ppout)
return nullptr;
692 if(!slbout)
return nullptr;
705 if(!ppout)
return nullptr;
712 if(!ppin)
return nullptr;
723 if(!ppout)
return nullptr;
730 if(!ppin)
return nullptr;
737 if(!asdout)
return nullptr;
757 if(!slbout)
return nullptr;
819 const int sbLoc)
const {
JetConstituentVector::iterator iterator
ModuleIdType getModuleIdType(void) const
RegionType getRegionType(void) const
TGCChannelId * getChannel(const TGCChannelId *channelId, TGCIdBase::ChannelIdType type, bool orChannel=false) const
virtual int getChannel(void) const
TGCCableSSWToROD * m_cableSSWToROD
bool getReadoutFromASDOut(const TGCChannelASDOut *asdout, TGCIdBase::SideType &side, int &rodId, int &sswId, int &sbLoc, int &channel, bool orChannel=false) const
TGCCableInASD * m_cableInASD
TGCCableInPP * m_cableInPP
TGCCableSLBToHPB * m_cableSLBToHPB
TGCModuleId * moduleId(int entry)
virtual TGCModuleMap * getModule(const TGCModuleId *moduleId) const
bool getReadoutFromLowPtCoincidence(TGCIdBase::SideType side, int rodId, int sswId, int sbLoc, int &channel, int block, int pos, bool middle=false) const
bool getReadoutFromSLB(const TGCModuleSLB *slb, TGCIdBase::SideType &side, int &rodId, int &sswId, int &sbLoc) const
TGCModuleId * getSLBFromRxId(TGCIdBase::SideType side, int rodId, int sswId, int rxId) const
virtual TGCModuleId * getModule(void) const
TGCCableSLBToSSW * m_cableSLBToSSW
TGCChannelId * getChannelInforHPB(const TGCChannelId *hpbin, TGCIdBase::ModuleType moduleType, bool orChannel=false) const
ModuleType getModuleType(void) const
int getIndexFromReadoutWithoutChannel(const TGCIdBase::SideType side, const int rodId, const int sswId, const int sbLoc) const
virtual TGCModuleMap * getModule(const TGCModuleId *moduleId) const
virtual int getSector(void) const
virtual TGCChannelId * getChannel(const TGCChannelId *channelId, bool orChannel=false) const
virtual bool isValid(void) const
TGCCableHPBToSL * m_cableHPBToSL
virtual TGCChannelId * getChannel(const TGCChannelId *channelId, bool orChannel=false) const
TGCCableASDToPP * m_cableASDToPP
virtual TGCModuleMap * getModule(const TGCModuleId *moduleId) const
int getRxIdFromReadout(TGCIdBase::SideType side, int rodId, int sswId, int sbLoc) const
TGCChannelId * getASDOutFromReadout(TGCIdBase::SideType side, int rodId, int sswId, int sbLoc, int channel, bool orChannel=false) const
int getSectorInReadout(void) const
virtual TGCModuleMap * getModule(const TGCModuleId *moduleId) const
virtual TGCChannelId * getChannel(const TGCChannelId *channelId, bool orChannel=false) const
::StatusCode StatusCode
StatusCode definition for legacy code.
SideType getSideType(void) const
bool getReadoutFromHighPtID(TGCIdBase::SideType side, int rodId, int &sswId, int &sbLoc, int &channel, TGCIdBase::SignalType signal, TGCIdBase::RegionType region, int sectorInReadout, int hpbId, int block, int hitId, int pos, TGCIdBase::ModuleType moduleType, bool orChannel) const
TGCModuleMap * getModule(const TGCModuleId *moduleId, TGCModuleId::ModuleIdType type) const
virtual bool isValid(void) const
bool getLowPtCoincidenceFromReadout(TGCIdBase::SideType side, int rodId, int sswId, int sbLoc, int channel, int &block, int &pos, bool middle=false) const
StatusCode updateDatabase()
bool getHighPtIDFromReadout(TGCIdBase::SideType side, int rodId, int sswId, int sbLoc, int channel, TGCIdBase::SignalType &signal, TGCIdBase::RegionType ®ion, int §orInReadout, int &hpbId, int &block, int &hitId, int &pos) const
SignalType getSignalType(void) const
virtual TGCChannelId * getChannel(const TGCChannelId *channelId, bool orChannel=false) const
TGCCablePPToSLB * m_cablePPToSLB
TGCCableInSLB * m_cableInSLB
void insert(int connector, TGCModuleId *moduleId)
virtual ~TGCCabling(void)
TGCModuleId * popModuleId(int entry)
virtual TGCIdBase * getASDOutChannel(const TGCIdBase *slb_in) const
virtual bool isValid(void) const
const TGCModuleId * getSLBFromReadout(TGCIdBase::SideType side, int rodId, int sswId, int sbLoc) const
virtual TGCChannelId * getChannel(const TGCChannelId *channelId, bool orChannel=false) const
virtual TGCChannelId * getChannel(const TGCChannelId *channelId, bool orChannel=false) const
virtual TGCModuleMap * getModule(const TGCModuleId *moduleId) const
StatusCode updateCableASDToPP()