|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef RPCCABLINGCONDDATA_H
6 #define RPCCABLINGCONDDATA_H
14 #include "GaudiKernel/ServiceHandle.h"
25 typedef std::map<int, RDOindex, std::less<int> >
RDOmap;
27 typedef std::map<Identifier, const RDOindex*, std::less<Identifier> >
OfflineOnlineMap;
28 typedef std::vector<RPC_CondCabling::SectorLogicSetup>
STvec;
29 typedef std::map<IdentifierHash, std::set<IdentifierHash> >
PRD_RDO_Map;
30 typedef std::map<IdentifierHash, std::set<uint32_t> >
PRD_ROB_Map;
31 typedef std::map<uint32_t, std::set<IdentifierHash> >
ROB_RDO_Map;
39 bool give_ROBid(
const unsigned int hashID,
unsigned short int&
id)
const;
42 bool give_RODid(
const unsigned int hashID,
unsigned short int&
id)
const;
45 bool give_side(
const unsigned int hashID,
unsigned short int&
id)
const;
48 bool give_SLid(
const unsigned int hashID,
unsigned short int&
id)
const;
51 bool give_RXid(
const unsigned int hashID,
unsigned short int&
id)
const;
54 bool give_PADid(
const unsigned int hashID,
unsigned short int&
id)
const;
62 std::list<Identifier>
give_strip_id(
unsigned short int SubsystemId,
unsigned short int SectorId,
unsigned short int PADId,
63 unsigned short int CMAId,
unsigned short ijk,
unsigned short int Channel,
67 static unsigned long int strip_code_fromOffline(
int etaPhiView,
int logicSector,
int cablingStation,
int gasGap,
int zIndexInCablingStation,
71 static bool largeSector(
const std::string& stName) ;
80 virtual bool give_Pad_Parameters(
unsigned short int logic_sector,
unsigned short int PADId,
bool& feet,
bool& eta_and_phi,
81 unsigned short int& cma_mask,
unsigned short int& feet_th0,
unsigned short int& feet_th1,
82 unsigned short int& feet_th2)
const;
84 bool give_PAD_address(
unsigned short int SubsystemId,
unsigned short int SectorId,
unsigned short int RoIId,
85 unsigned int& padIdHash)
const;
87 bool give_RoI_borders_id(
unsigned short int SubsystemId,
unsigned short int SectorId,
unsigned short int RoIId,
91 bool give_RoI_borders(
unsigned short int SubsystemId,
unsigned short int SectorId,
unsigned short int RoIId,
unsigned int& EtaLowBorder,
92 unsigned int& EtaHighBorder,
unsigned int& PhiLowBorder,
unsigned int& PhiHighBorder)
const;
97 bool give_LowPt_borders(
unsigned short int SubsystemId,
unsigned short int SectorId,
unsigned short int RoIId,
98 unsigned int& EtaLowBorder,
unsigned int& EtaHighBorder,
unsigned int& PhiLowBorder,
99 unsigned int& PhiHighBorder)
const;
101 bool give_LowPt_borders_id(
unsigned short int SubsystemId,
unsigned short int SectorId,
unsigned short int RoIId,
105 bool give_HighPt_borders(
unsigned short int SubsystemId,
unsigned short int SectorId,
unsigned short int RoIId,
106 unsigned int& EtaLowBorder,
unsigned int& EtaHighBorder,
unsigned int& PhiLowBorder,
107 unsigned int& PhiHighBorder)
const;
109 bool give_HighPt_borders_id(
unsigned short int SubsystemId,
unsigned short int SectorId,
unsigned short int RoIId,
115 bool giveOfflineId(
const unsigned short int side,
const unsigned short int sector,
const unsigned short int padId,
128 void setIds(
const std::vector<Identifier>& int2id);
bool give_LowPt_borders(unsigned short int SubsystemId, unsigned short int SectorId, unsigned short int RoIId, unsigned int &EtaLowBorder, unsigned int &EtaHighBorder, unsigned int &PhiLowBorder, unsigned int &PhiHighBorder) const
bool give_PADid(const Identifier &compactID, unsigned short int &id) const
std::vector< RPC_CondCabling::SectorLogicSetup > STvec
std::vector< std::string > m_vecphiInfo
constexpr uint8_t stationPhi
station Phi 1 to 8
std::list< Identifier > give_strip_id(unsigned short int SubsystemId, unsigned short int SectorId, unsigned short int PADId, unsigned short int CMAId, unsigned short ijk, unsigned short int Channel, const RpcIdHelper *rpcId) const
bool give_RoI_borders_id(unsigned short int SubsystemId, unsigned short int SectorId, unsigned short int RoIId, Identifier &EtaLowBorder_id, Identifier &EtaHighBorder_id, Identifier &PhiLowBorder_id, Identifier &PhiHighBorder_id, const RpcIdHelper *rpcId) const
Hold mappings of ranges to condition objects.
void setIds(const std::vector< Identifier > &int2id)
std::map< IdentifierHash, std::set< IdentifierHash > > PRD_RDO_Map
Identifier32::value_type Channel
void setLookup(const std::vector< Identifier > &ids)
RpcCablingCondData()=default
bool give_RODid(const Identifier &compactID, unsigned short int &id) const
RPCPadParameters m_RPCPadParameters_array[MAX_LOGICSECTOR][MAX_PADID]
std::vector< const RDOindex * > OfflineOnlineHashMap
bool give_HighPt_borders(unsigned short int SubsystemId, unsigned short int SectorId, unsigned short int RoIId, unsigned int &EtaLowBorder, unsigned int &EtaHighBorder, unsigned int &PhiLowBorder, unsigned int &PhiHighBorder) const
OfflineOnlineHashMap m_HashVec
std::vector< uint32_t > m_fullListOfRobIds
std::list< const CMAparameters * > CMAlist
virtual ~RpcCablingCondData()=default
std::vector< IdentifierHash > m_rod2hash[2][16]
static unsigned long int strip_code_fromOffline(int etaPhiView, int logicSector, int cablingStation, int gasGap, int zIndexInCablingStation, int strip)
std::vector< std::string > m_vecphiCM_File
Identifier strip_OffId_fromCode(unsigned long int strip_code, const RpcIdHelper *rpcId) const
bool give_LowPt_borders_id(unsigned short int SubsystemId, unsigned short int SectorId, unsigned short int RoIId, Identifier &EtaLowBorder_id, Identifier &EtaHighBorder_id, Identifier &PhiLowBorder_id, Identifier &PhiHighBorder_id, const RpcIdHelper *rpcId) const
RPCofflineId strip_id_fromCode(unsigned long int strip_code) const
std::vector< std::string > m_vecetaCM_File
bool give_RXid(const Identifier &compactID, unsigned short int &id) const
std::map< Identifier, int > m_lookup
ROB_RDO_Map m_ROB_RDO_map
bool give_side(const Identifier &compactID, unsigned short int &id) const
bool give_PAD_address(unsigned short int SubsystemId, unsigned short int SectorId, unsigned short int RoIId, unsigned int &padIdHash) const
Identifier m_offline_id[2][32][10]
uint32_t hash2source(unsigned int h) const
virtual bool give_Pad_Parameters(unsigned short int logic_sector, unsigned short int PADId, bool &feet, bool &eta_and_phi, unsigned short int &cma_mask, unsigned short int &feet_th0, unsigned short int &feet_th1, unsigned short int &feet_th2) const
::StatusCode StatusCode
StatusCode definition for legacy code.
bool giveOfflineId(const unsigned short int side, const unsigned short int sector, const unsigned short int padId, Identifier &id) const
std::map< int, RDOindex, std::less< int > > RDOmap
std::vector< std::string > m_vecetaTh0
std::map< Identifier, const RDOindex *, std::less< Identifier > > OfflineOnlineMap
static constexpr unsigned MAX_LOGICSECTOR
StatusCode giveRDO_fromPRD(const IdentifierHash prdHashId, std::vector< IdentifierHash > &rdoHashVec) const
Identifier identifier(int i) const
std::vector< std::string > m_vecetaSequence_Th
PRD_ROB_Map m_PRD_ROB_map
bool give_ROBid(const Identifier &compactID, unsigned short int &id) const
std::vector< std::string > m_vecetaInfo
StatusCode giveROB_fromRDO(const IdentifierHash rdoHashId, uint32_t &robId) const
bool give_RoI_borders(unsigned short int SubsystemId, unsigned short int SectorId, unsigned short int RoIId, unsigned int &EtaLowBorder, unsigned int &EtaHighBorder, unsigned int &PhiLowBorder, unsigned int &PhiHighBorder) const
static bool largeSector(const std::string &stName)
unsigned long int strip_code_fromOffId(const std::string &stationName, int stationEta, int stationPhi, int doubletR, int doubletZ, int doubletPhi, int gasGap, int measuresPhi, int strip) const
std::map< std::string, std::string > m_trigroads
unsigned int computeZIndexInCablingStation(const std::string &stationName, int logicSector, int stationEta, int doubletR, int doubletZ, int cabStat) const
OfflineOnlineMap m_RDOmap
Hold mapping of ranges to condition objects.
StatusCode giveROB_fromPRD(const IdentifierHash prdHashId, std::vector< uint32_t > &robIdVec) const
const std::vector< uint32_t > & giveFullListOfRobIds() const
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
std::map< IdentifierHash, std::set< uint32_t > > PRD_ROB_Map
static constexpr unsigned MAX_PADID
bool give_SLid(const Identifier &compactID, unsigned short int &id) const
bool give_HighPt_borders_id(unsigned short int SubsystemId, unsigned short int SectorId, unsigned short int RoIId, Identifier &EtaLowBorder_id, Identifier &EtaHighBorder_id, Identifier &PhiLowBorder_id, Identifier &PhiHighBorder_id, const RpcIdHelper *rpcId) const
StatusCode giveRDO_fromROB(const std::vector< uint32_t > &robIdVec, std::vector< IdentifierHash > &rdoHashVec) const
std::vector< std::string > m_vecphiTh0
constexpr uint8_t stationEta
1 to 3
Identifier protected_strip_OffId_fromCode(unsigned long int strip_code, const RpcIdHelper *rpcId) const
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
std::vector< Identifier > m_int2id
int operator()(const Identifier &id) const
macros to associate a CLID to a type
PRD_RDO_Map m_PRD_RDO_map
const CMAparameters::CMAlist give_CMAs(const int logic_sector, const ViewType side, const int station, const int cabling_code) const
std::map< uint32_t, std::set< IdentifierHash > > ROB_RDO_Map
std::vector< IdentifierHash > rod2hash(uint16_t subsystem, uint16_t rod) const
const RDOmap & give_RDOs(void) const