ATLAS Offline Software
Loading...
Searching...
No Matches
MdtCablingJsonDumpAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5/*
6 * Algorithm to dump the Mdt cabling maps into a JSON file
7*/
8
9#ifndef MUONMDT_CABLING_MDTCABLINGMEZZALG_H
10#define MUONMDT_CABLING_MDTCABLINGMEZZALG_H
11
12
18
19
20
22public:
23 MdtCablingJsonDumpAlg(const std::string& name, ISvcLocator* pSvcLocator);
24 virtual ~MdtCablingJsonDumpAlg() = default;
25 virtual StatusCode initialize() override;
26 virtual StatusCode execute() override;
27 virtual unsigned int cardinality() const override final{return 1;}
28
30
31private:
32 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
33 // MuonDetectorManager from the conditions store
34 SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> m_DetectorManagerKey{this, "DetectorManagerKey", "MuonDetectorManager",
35 "Key of input MuonDetectorManager condition data"};
36
37 SG::ReadCondHandleKey<MuonMDT_CablingMap> m_cablingKey{this, "ReadKey", "MuonMDT_CablingMap", "Key of input MDT cabling map"};
38
39 Gaudi::Property<std::string> m_summaryTxt{this, "SummaryFile", "SummaryFile.txt", "Summary of the extracted mapping"};
40 Gaudi::Property<std::string> m_mezzJSON{this, "OutMezzanineJSON", "MezzMapping.json", "Mezzanine JSON"};
41 Gaudi::Property<std::string> m_cablingJSON{this, "OutCablingJSON", "MdtCabling.json", "Cabling JSON"};
42
43};
44
45#endif
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
MdtCablingJsonDumpAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::string > m_summaryTxt
virtual unsigned int cardinality() const override final
Gaudi::Property< std::string > m_mezzJSON
MuonMDT_CablingMap::CablingData CablingData
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
SG::ReadCondHandleKey< MuonMDT_CablingMap > m_cablingKey
Gaudi::Property< std::string > m_cablingJSON
virtual StatusCode initialize() override
virtual StatusCode execute() override
virtual ~MdtCablingJsonDumpAlg()=default
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
MdtCablingData CablingData