10#ifndef MUONTGC_CABLING_MUONTGC_CABLINGSVC_H
11#define MUONTGC_CABLING_MUONTGC_CABLINGSVC_H
14#include "GaudiKernel/ServiceHandle.h"
15#include "GaudiKernel/ToolHandle.h"
19#include "GaudiKernel/Service.h"
49 int& maxChannelId)
const;
54 double & endPhi)
const;
57 int & startEndcapSector,
58 int & coverageOfEndcapSector,
59 int & startForwardSector,
60 int & coverageOfForwardSector)
const;
65 double & endPhi)
const;
68 int & startEndcapSector,
69 int & coverageOfEndcapSector,
70 int & startForwardSector,
71 int & coverageOfForwardSector)
const;
78 const int channelID)
const;
87 const int octantNumber,
88 const int moduleNumber,
89 const int layerNumber,
91 const int wireOrStrip,
92 const int channelNumber)
const;
97 const int subDetectorID,
102 bool orChannel=
false)
const;
112 bool adChannel=
false)
const;
116 int & subsystemNumber,
122 int & channelNumber)
const;
126 const int subsystemNumber,
127 const int octantNumber,
128 const int moduleNumber,
129 const int layerNumber,
131 const int wireOrStrip,
132 const int channelNumber)
const;
140 int & subsystemNumber,
147 bool orChannel=
false)
const;
155 const int subsystemNumber,
156 const int octantNumber,
157 const int moduleNumber,
158 const int layerNumber,
160 const int wireOrStrip,
161 const int channelNumber,
162 bool adChannel=
false)
const;
171 const int subDetectorID,
176 bool orChannel=
false)
const;
195 const int subsectorID,
198 const int sbLoc)
const;
202 const int subsectorID,
205 const int sbLoc)
const;
209 const int subsectorID,
212 const int sbLoc)
const;
220 const int subsectorID,
223 const int rxId)
const;
229 const int moduleType,
240 const int subsectorID,
243 const int sbLoc)
const;
248 const int subsectorID,
251 const bool forward)
const;
288 const int subDetectorID,
290 const int sectorInReadout,
292 const bool isForward,
296 const int pos )
const;
302 int & sectorInReadout,
319 int sub_strip)
const;
332 const int subDetectorID,
338 bool middle=
false)
const;
348 bool middle=
false)
const;
356 bool orChannel=
false)
const;
368 ToolHandle<ITGCCablingDbTool>
m_condDataTool{
this,
"TGCCablingDbTool",
"TGCCablingDbTool"};
Scalar phi() const
phi method
defines and typedefs for IOVSvc
bool getRDOHighPtIDfromSimHighPtID(const bool isForward, const bool isStrip, int &index, int &chip, int &hitId) const
bool getROINumberfromHighPtID(int &roi, bool isForward, int hpb_wire, int chip_wire, int hitId_wire, int sub_wire, int chip_strip, int hitId_strip, int sub_strip) const
bool getSLBIDfromRxID(int &phi, bool &isAside, bool &isEndcap, int &moduleType, int &id, const int subsectorID, const int rodID, const int sswID, const int rxId) const
MuonTGC_CablingSvc(const std::string &name, ISvcLocator *svc)
StringProperty m_databaseSLBToROD
IntegerArrayProperty m_rodId
bool getReadoutIDfromSLID(const int phi, const bool isAside, const bool isEndcap, int &subsectorID, int &rodID, int &sswID, int &sbLoc) const
bool isOredChannel(const int subDetectorID, const int rodID, const int sswID, const int sbLoc, const int channelID) const
MuonTGC_Cabling::TGCChannelId * getChannel(const MuonTGC_Cabling::TGCChannelId *channelId, MuonTGC_Cabling::TGCChannelId::ChannelIdType type, bool orChannel=false) const
StringProperty m_databaseASDToPP
bool getOfflineIDfromHighPtID(Identifier &offlineID, const int subDetectorID, const int rodID, const int sectorInReadout, const bool isStrip, const bool isForward, const int hpb, const int chip, const int hitID, const int pos) const
MuonTGC_Cabling::TGCModuleMap * getModule(const MuonTGC_Cabling::TGCModuleId *moduleId, MuonTGC_Cabling::TGCModuleId::ModuleIdType type) const
bool getReadoutIDfromOfflineID(const Identifier &offlineID, int &subDetectorID, int &rodID, int &sswID, int &sbLoc, int &channelID, bool adChannel=false) const
bool getSLBAddressfromReadoutID(int &slbAddr, const int subsectorID, const int rodID, const int sswID, const int sbLoc) const
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
StringProperty m_databaseInPP
bool getOnlineIDfromOfflineID(const Identifier &offlineID, int &subsystemNumber, int &octantNumber, int &moduleNumber, int &layerNumber, int &rNumber, int &wireOrStrip, int &channelNumber) const
IntegerProperty m_CsideId
bool getCoveragefromSRodID(const int srodID, double &startPhi, double &endPhi) const
bool getHighPtIDfromOfflineID(const Identifier &offlineID, int &subDetectorID, int &rodID, int §orInReadout, bool &isStrip, bool &isForward, int &hpb, int &chip, int &hitID, int &pos) const
bool getSReadoutIDfromSLID(const int phi, const bool isAside, const bool isEndcap, int &subsectorID, int &srodID, int &sswID, int &sbLoc) const
bool getHighPtIDfromROINumber(int roi, bool isForward, bool isStrip, int &hpb, int &chip, int &hitID, int &sub) const
bool getOfflineIDfromReadoutID(Identifier &offlineID, const int subDetectorID, const int rodID, const int sswID, const int sbLoc, const int channelID, bool orChannel=false) const
bool getOfflineIDfromOnlineID(Identifier &offlineID, const int subsystemNumber, const int octantNumber, const int moduleNumber, const int layerNumber, const int rNumber, const int wireOrStrip, const int channelNumber) const
bool getLowPtCoincidenceIDfromOfflineID(const Identifier &offlineID, int &subDetectorID, int &rodID, int &sswID, int &sbLoc, int &block, int &pos, bool middle=false) const
bool getSLIDfromReadoutID(int &phi, bool &isAside, bool &isEndcap, const int subsectorID, const int rodID, const int sswID, const int sbLoc) const
bool getReadoutIDfromSLBID(const int phi, const bool isAside, const bool isEndcap, const int moduleType, const int id, int &subsectorID, int &rodID, int &sswID, int &sbLoc) const
bool getSLBIDfromReadoutID(int &phi, bool &isAside, bool &isEndcap, int &moduleType, int &id, const int subsectorID, const int rodID, const int sswID, const int sbLoc) const
bool getOnlineIDfromReadoutID(const int subDetectorID, const int rodID, const int sswID, const int sbLoc, const int channelID, int &subsystemNumber, int &octantNumber, int &moduleNumber, int &layerNumber, int &rNumber, int &wireOrStrip, int &channelNumber, bool orChannel=false) const
StringProperty m_databasePPToSL
bool getRxIDfromReadoutID(int &rxId, const int subsectorID, const int rodID, const int sswID, const int sbLoc) const
bool getReadoutIDfromElementID(const Identifier &elementID, int &subdetectorID, int &rodID) const
bool getOfflineIDfromLowPtCoincidenceID(Identifier &offlineID, const int subDetectorID, const int rodID, const int sswID, const int sbLoc, const int block, const int pos, bool middle=false) const
ToolHandle< ITGCCablingDbTool > m_condDataTool
bool getSLIDfromSReadoutID(int &phi, bool &isAside, const int subsectorID, const int srodID, const int sector, const bool forward) const
StringProperty m_databaseASDToPPdiff
virtual StatusCode initialize(void) override
bool getReadoutIDfromHPTID(const int phi, const bool isAside, const bool isEndcap, const bool isStrip, const int id, int &subsectorID, int &rodID, int &sswID, int &sbLoc) const
bool getReadoutIDfromOnlineID(int &subDetectorID, int &rodID, int &sswID, int &sbLoc, int &channelID, const int subsystemNumber, const int octantNumber, const int moduleNumber, const int layerNumber, const int rNumber, const int wireOrStrip, const int channelNumber, bool adChannel=false) const
const MuonTGC_Cabling::TGCCabling * getTGCCabling() const
bool getCoveragefromRodID(const int rodID, double &startPhi, double &endPhi) const
IntegerProperty m_AsideId
std::unique_ptr< MuonTGC_Cabling::TGCCabling > m_cabling
bool getSimHighPtIDfromRDOHighPtID(const bool isForward, const bool isStrip, int &index, int &chip, int &hitId) const
void getReadoutIDRanges(int &maxRodId, int &maxSRodId, int &maxSswId, int &maxSbloc, int &minChannelId, int &maxChannelId) const
bool hasAdjacentChannel(const Identifier &offlineID) const
bool getElementIDfromReadoutID(Identifier &elementID, const int subDetectorID, const int rodID, const int sswID, const int sbLoc, const int channelID, bool orChannel=false) const
virtual ~MuonTGC_CablingSvc()=default