ATLAS Offline Software
Loading...
Searching...
No Matches
MdtCablingJsonDumpAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 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
19
20
21
23public:
25 virtual ~MdtCablingJsonDumpAlg() = default;
26 virtual StatusCode initialize() override;
27 virtual StatusCode execute() override;
28 virtual unsigned int cardinality() const override final{return 1;}
29
31
32private:
33 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
34 // MuonDetectorManager from the conditions store
35 SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> m_DetectorManagerKey{this, "DetectorManagerKey", "MuonDetectorManager",
36 "Key of input MuonDetectorManager condition data"};
37
38 SG::ReadCondHandleKey<MuonMDT_CablingMap> m_cablingKey{this, "ReadKey", "MuonMDT_CablingMap", "Key of input MDT cabling map"};
39
40 Gaudi::Property<std::string> m_summaryTxt{this, "SummaryFile", "SummaryFile.txt", "Summary of the extracted mapping"};
41 Gaudi::Property<std::string> m_mezzJSON{this, "OutMezzanineJSON", "MezzMapping.json", "Mezzanine JSON"};
42 Gaudi::Property<std::string> m_cablingJSON{this, "OutCablingJSON", "MdtCabling.json", "Cabling JSON"};
43 Gaudi::Property<bool> m_insertBISCabling{this, "insertBISCabling", false, "override the BIS cabling in the JSON file"};
44
45};
46
47#endif
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
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
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Property< std::string > m_cablingJSON
virtual StatusCode initialize() override
virtual StatusCode execute() override
Gaudi::Property< bool > m_insertBISCabling
virtual ~MdtCablingJsonDumpAlg()=default
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
MdtCablingData CablingData