ATLAS Offline Software
MuonNSW_CablingAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
10 #ifndef MuonNSW_CABLING_MuonNSW_CABLINGALG_H
11 #define MuonNSW_CABLING_MuonNSW_CABLINGALG_H
12 
17 
20 
21 
23  public:
24  MuonNSW_CablingAlg(const std::string& name, ISvcLocator* pSvcLocator);
25  virtual ~MuonNSW_CablingAlg() = default;
26  virtual StatusCode initialize() override;
27  virtual StatusCode execute(const EventContext& ctx) const override;
28 
29  virtual bool isReEntrant() const override final { return false; }
30 
31  private:
32  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
33  SG::ReadCondHandleKeyArray<CondAttrListCollection> m_readCablingKeys{this, "CablingFolder", { "/MDT/MM/CABLING"},
34  "Keys of the input conditions folder for MM & sTGC cabling map"};
35  SG::WriteCondHandleKey<Nsw_CablingMap> m_writeKey{this, "WriteKey", "NswCabling", "Key of output NSW cabling map"};
36 
37  Gaudi::Property<std::string> m_JSONFile{this, "JSONFile", "", "External path to read the cabling from"};
38 
39  StatusCode loadCablingSchema(const std::string& payload,
40  Nsw_CablingMap& cabling_map) const;
41 };
42 
43 #endif
MuonNSW_CablingAlg::initialize
virtual StatusCode initialize() override
Definition: MuonNSW_CablingAlg.cxx:27
Nsw_CablingMap
Definition: Nsw_CablingMap.h:18
MuonNSW_CablingAlg::MuonNSW_CablingAlg
MuonNSW_CablingAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MuonNSW_CablingAlg.cxx:23
MuonNSW_CablingAlg::isReEntrant
virtual bool isReEntrant() const override final
Definition: MuonNSW_CablingAlg.h:29
MuonNSW_CablingAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: MuonNSW_CablingAlg.cxx:35
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
MuonNSW_CablingAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonNSW_CablingAlg.h:32
Nsw_CablingMap.h
WriteCondHandleKey.h
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
MuonNSW_CablingAlg::loadCablingSchema
StatusCode loadCablingSchema(const std::string &payload, Nsw_CablingMap &cabling_map) const
Definition: MuonNSW_CablingAlg.cxx:95
MuonNSW_CablingAlg::m_JSONFile
Gaudi::Property< std::string > m_JSONFile
Definition: MuonNSW_CablingAlg.h:37
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CondHandleKeyArray.h
MuonNSW_CablingAlg::m_writeKey
SG::WriteCondHandleKey< Nsw_CablingMap > m_writeKey
Definition: MuonNSW_CablingAlg.h:35
AthReentrantAlgorithm.h
MuonNSW_CablingAlg::~MuonNSW_CablingAlg
virtual ~MuonNSW_CablingAlg()=default
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
PixelModuleFeMask_create_db.payload
string payload
Definition: PixelModuleFeMask_create_db.py:69
MuonNSW_CablingAlg
MuonNSW_CablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: MuonNSW_CablingAlg.h:22
SG::WriteCondHandleKey< Nsw_CablingMap >
MuonNSW_CablingAlg::m_readCablingKeys
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_readCablingKeys
Definition: MuonNSW_CablingAlg.h:33
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >