ATLAS Offline Software
RpcCablingCondAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 #ifndef MUONCONDALG_RPCCABLINGCONDALG_H
6 #define MUONCONDALG_RPCCABLINGCONDALG_H
7 
8 #include <array>
9 #include <map>
10 #include <string>
11 
14 #include "GaudiKernel/ServiceHandle.h"
19 
21 public:
22  RpcCablingCondAlg(const std::string& name, ISvcLocator* pSvcLocator);
23 
24  virtual ~RpcCablingCondAlg() = default;
25  virtual StatusCode initialize() override;
26  virtual StatusCode execute() override;
27 
28 private:
29  typedef std::array<int, 64> sectorMap_t;
30  typedef std::map<int, RPC_CondCabling::SectorLogicSetup*, std::less<int>> SLmap_t;
31 
32  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
33 
34  SG::ReadCondHandleKey<CondAttrListCollection> m_readKey_map_schema{this, "ReadKeySchema", "/RPC/CABLING/MAP_SCHEMA",
35  "Key of input muon rpc map schema condition data"};
36  SG::ReadCondHandleKey<CondAttrListCollection> m_readKey_map_schema_corr{this, "ReadKeySchemaCorr", "/RPC/CABLING/MAP_SCHEMA_CORR",
37  "Key of input muon rpc map correction schema condition data"};
38  SG::ReadCondHandleKey<CondAttrListCollection> m_readKey_cm_thr_eta{this, "ReadKeyThrEta", "/RPC/TRIGGER/CM_THR_ETA",
39  "Key of input muon rpc trigger eta condition data"};
40  SG::ReadCondHandleKey<CondAttrListCollection> m_readKey_cm_thr_phi{this, "ReadKeyThrPhi", "/RPC/TRIGGER/CM_THR_PHI",
41  "Key of input muon rpc trigger phi condition data"};
42 
43  SG::WriteCondHandleKey<RpcCablingCondData> m_writeKey{this, "WriteKey", "RpcCablingCondData",
44  "Key of output RPC cabling condition data"};
45 
46  Gaudi::Property<std::string> m_database_repository{this, "DatabaseRepository", "MuonRPC_Cabling/ATLAS.data"};
47  Gaudi::Property<bool> m_cosmic_configuration{this, "CosmicConfiguration", false};
48  Gaudi::Property<bool> m_ApplyFeetPadThresholds{this, "ApplyFeetPadThresholds", true,
49  "map 3 low pt thresholds from special feet pads on standard 6 (3low+3high)"};
50  Gaudi::Property<bool> m_ForceFeetPadThresholdsFromJO{this, "ForceFeetPadThresholdsFromJO", false, "JO override db setting"};
51 
52  StatusCode setup(const CondAttrListCollection* readCdoMap, const CondAttrListCollection* readCdoCorr,
53  const CondAttrListCollection* readCdoEta, const CondAttrListCollection* readCdoPhi,
54  RpcCablingCondData* writeCdo) const;
55 
56  std::list<Identifier> give_strip_id(const unsigned short int SubsystemId, const unsigned short int SectorId,
57  const unsigned short int PADId, const unsigned short int CMAId, const unsigned short ijk,
58  const unsigned short int Channel, const sectorMap_t& smap,
59  const RpcCablingCondData::STvec& sType) const;
60  bool BoardParamCheck(const unsigned short int SubId, const unsigned short int SecId, const unsigned short int PADId,
61  const unsigned short int CMAId, const unsigned short int inputType, const unsigned int layer,
62  const unsigned int type, const unsigned short int Channel1, const unsigned short int Channel2,
63  const short int Number) const;
64  bool CableParamCheck(const unsigned short int SubId, const unsigned short int SecId, const unsigned short int PADId,
65  const unsigned short int CMAId, const unsigned short int ijk, const unsigned int type,
66  const unsigned short int Channel1, const unsigned short int Channel2, const short int Number) const;
67  static bool correct(const unsigned short int SubsystemId, const unsigned short int SectorId, const unsigned short int PADId,
68  const unsigned short int CMAId, const CMAinput it, const unsigned int layer, const unsigned short int Channel1,
69  const unsigned short int Channel2, const short int number, const L1RPCcabCorrection type, const sectorMap_t& smap,
70  const RpcCablingCondData::STvec& sType) ;
71 };
72 
73 #endif // MUONCONDALG_RPCCABLINGCONDALG_H
RpcCablingCondData::STvec
std::vector< RPC_CondCabling::SectorLogicSetup > STvec
Definition: RpcCablingCondData.h:28
RpcCablingCondAlg::m_database_repository
Gaudi::Property< std::string > m_database_repository
Definition: RpcCablingCondAlg.h:46
RpcCablingCondAlg::m_ForceFeetPadThresholdsFromJO
Gaudi::Property< bool > m_ForceFeetPadThresholdsFromJO
Definition: RpcCablingCondAlg.h:50
L1RPCcabCorrection
L1RPCcabCorrection
Definition: CMAparameters.h:19
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
LArBadChanBlobUtils::Channel
Identifier32::value_type Channel
Definition: LArBadChanBlobUtils.h:24
RpcCablingCondAlg::~RpcCablingCondAlg
virtual ~RpcCablingCondAlg()=default
RpcCablingCondAlg::give_strip_id
std::list< Identifier > give_strip_id(const unsigned short int SubsystemId, const unsigned short int SectorId, const unsigned short int PADId, const unsigned short int CMAId, const unsigned short ijk, const unsigned short int Channel, const sectorMap_t &smap, const RpcCablingCondData::STvec &sType) const
Definition: RpcCablingCondAlg.cxx:688
RpcCablingCondAlg::m_writeKey
SG::WriteCondHandleKey< RpcCablingCondData > m_writeKey
Definition: RpcCablingCondAlg.h:43
skel.it
it
Definition: skel.GENtoEVGEN.py:423
RpcCablingCondAlg::execute
virtual StatusCode execute() override
Definition: RpcCablingCondAlg.cxx:24
WriteCondHandleKey.h
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
RpcCablingCondData
Definition: RpcCablingCondData.h:21
RpcCablingCondAlg::SLmap_t
std::map< int, RPC_CondCabling::SectorLogicSetup *, std::less< int > > SLmap_t
Definition: RpcCablingCondAlg.h:30
RpcCablingCondAlg::sectorMap_t
std::array< int, 64 > sectorMap_t
Definition: RpcCablingCondAlg.h:29
AthAlgorithm.h
jobOptions_CavernBackground.inputType
inputType
Definition: jobOptions_CavernBackground.py:21
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
RpcCablingCondAlg::BoardParamCheck
bool BoardParamCheck(const unsigned short int SubId, const unsigned short int SecId, const unsigned short int PADId, const unsigned short int CMAId, const unsigned short int inputType, const unsigned int layer, const unsigned int type, const unsigned short int Channel1, const unsigned short int Channel2, const short int Number) const
Definition: RpcCablingCondAlg.cxx:784
RpcCablingCondAlg::m_readKey_map_schema_corr
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey_map_schema_corr
Definition: RpcCablingCondAlg.h:36
RpcCablingCondAlg::RpcCablingCondAlg
RpcCablingCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: RpcCablingCondAlg.cxx:11
RpcCablingCondAlg::correct
static bool correct(const unsigned short int SubsystemId, const unsigned short int SectorId, const unsigned short int PADId, const unsigned short int CMAId, const CMAinput it, const unsigned int layer, const unsigned short int Channel1, const unsigned short int Channel2, const short int number, const L1RPCcabCorrection type, const sectorMap_t &smap, const RpcCablingCondData::STvec &sType)
Definition: RpcCablingCondAlg.cxx:759
RpcCablingCondAlg::m_readKey_map_schema
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey_map_schema
Definition: RpcCablingCondAlg.h:34
RpcCablingCondAlg::m_cosmic_configuration
Gaudi::Property< bool > m_cosmic_configuration
Definition: RpcCablingCondAlg.h:47
RpcCablingCondAlg
Definition: RpcCablingCondAlg.h:20
AthAlgorithm
Definition: AthAlgorithm.h:47
CMAinput
CMAinput
Definition: CMAparameters.h:18
ReadCondHandleKey.h
python.selection.number
number
Definition: selection.py:20
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
RpcCablingCondAlg::initialize
virtual StatusCode initialize() override
Definition: RpcCablingCondAlg.cxx:13
SG::ReadCondHandleKey< CondAttrListCollection >
RpcCablingCondAlg::m_readKey_cm_thr_eta
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey_cm_thr_eta
Definition: RpcCablingCondAlg.h:38
RpcCablingCondAlg::m_readKey_cm_thr_phi
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey_cm_thr_phi
Definition: RpcCablingCondAlg.h:40
RpcCablingCondData.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
RpcCablingCondAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: RpcCablingCondAlg.h:32
RpcCablingCondAlg::CableParamCheck
bool CableParamCheck(const unsigned short int SubId, const unsigned short int SecId, const unsigned short int PADId, const unsigned short int CMAId, const unsigned short int ijk, const unsigned int type, const unsigned short int Channel1, const unsigned short int Channel2, const short int Number) const
Definition: RpcCablingCondAlg.cxx:831
SG::WriteCondHandleKey< RpcCablingCondData >
RpcCablingCondAlg::m_ApplyFeetPadThresholds
Gaudi::Property< bool > m_ApplyFeetPadThresholds
Definition: RpcCablingCondAlg.h:48
RpcCablingCondAlg::setup
StatusCode setup(const CondAttrListCollection *readCdoMap, const CondAttrListCollection *readCdoCorr, const CondAttrListCollection *readCdoEta, const CondAttrListCollection *readCdoPhi, RpcCablingCondData *writeCdo) const
Definition: RpcCablingCondAlg.cxx:91
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >