ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondDump
src
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
13
#include "
AthenaBaseComps/AthAlgorithm.h
"
14
#include "
MuonCablingData/MuonMDT_CablingMap.h
"
15
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
16
#include "
StoreGate/ReadCondHandleKey.h
"
17
#include "
MuonReadoutGeometry/MuonDetectorManager.h
"
18
#include "
MuonRecToolInterfacesR4/IRootVisualizationService.h
"
19
20
21
22
class
MdtCablingJsonDumpAlg
:
public
AthAlgorithm
{
23
public
:
24
using
AthAlgorithm::AthAlgorithm
;
25
virtual
~MdtCablingJsonDumpAlg
() =
default
;
26
virtual
StatusCode
initialize
()
override
;
27
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
28
virtual
unsigned
int
cardinality
()
const
override final{
return
1;}
29
30
using
CablingData
=
MuonMDT_CablingMap::CablingData
;
31
32
private
:
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.h
IMuonIdHelperSvc.h
IRootVisualizationService.h
MuonDetectorManager.h
MuonMDT_CablingMap.h
ReadCondHandleKey.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
MdtCablingJsonDumpAlg
Definition
MdtCablingJsonDumpAlg.h:22
MdtCablingJsonDumpAlg::m_summaryTxt
Gaudi::Property< std::string > m_summaryTxt
Definition
MdtCablingJsonDumpAlg.h:40
MdtCablingJsonDumpAlg::cardinality
virtual unsigned int cardinality() const override final
Definition
MdtCablingJsonDumpAlg.h:28
MdtCablingJsonDumpAlg::m_mezzJSON
Gaudi::Property< std::string > m_mezzJSON
Definition
MdtCablingJsonDumpAlg.h:41
MdtCablingJsonDumpAlg::CablingData
MuonMDT_CablingMap::CablingData CablingData
Definition
MdtCablingJsonDumpAlg.h:30
MdtCablingJsonDumpAlg::m_DetectorManagerKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
Definition
MdtCablingJsonDumpAlg.h:35
MdtCablingJsonDumpAlg::m_cablingKey
SG::ReadCondHandleKey< MuonMDT_CablingMap > m_cablingKey
Definition
MdtCablingJsonDumpAlg.h:38
MdtCablingJsonDumpAlg::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
MdtCablingJsonDumpAlg.cxx:45
MdtCablingJsonDumpAlg::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
MdtCablingJsonDumpAlg::m_cablingJSON
Gaudi::Property< std::string > m_cablingJSON
Definition
MdtCablingJsonDumpAlg.h:42
MdtCablingJsonDumpAlg::initialize
virtual StatusCode initialize() override
Definition
MdtCablingJsonDumpAlg.cxx:37
MdtCablingJsonDumpAlg::m_insertBISCabling
Gaudi::Property< bool > m_insertBISCabling
Definition
MdtCablingJsonDumpAlg.h:43
MdtCablingJsonDumpAlg::~MdtCablingJsonDumpAlg
virtual ~MdtCablingJsonDumpAlg()=default
MdtCablingJsonDumpAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
MdtCablingJsonDumpAlg.h:33
MuonMDT_CablingMap::CablingData
MdtCablingData CablingData
Definition
MuonMDT_CablingMap.h:79
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
ServiceHandle
Definition
ClusterMakerTool.h:36
const
Generated on
for ATLAS Offline Software by
1.17.0