ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondDump
src
MdtToyCablingJsonDumpAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/*
6
* Algorithm to dump the R4-style Mdt cabling maps into a JSON file
7
*/
8
9
#ifndef MUONCONDDUMP_MDTCABLINGJSONDUMPALG_H
10
#define MUONCONDDUMP_MDTCABLINGJSONDUMPALG_H
11
12
13
#include "
AthenaBaseComps/AthAlgorithm.h
"
14
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
15
#include "
MuonReadoutGeometryR4/MuonDetectorManager.h
"
16
20
21
22
class
MdtToyCablingJsonDumpAlg
:
public
AthAlgorithm
{
23
public
:
24
MdtToyCablingJsonDumpAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
25
virtual
~MdtToyCablingJsonDumpAlg
() =
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
private
:
31
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
32
33
const
MuonGMR4::MuonDetectorManager
*
m_detMgr
{
nullptr
};
34
35
Gaudi::Property<std::string>
m_cablingJSON
{
this
,
"OutCablingJSON"
,
"MdtCabling.json"
,
"Cabling JSON"
};
36
37
Gaudi::Property<std::string>
m_mezzanineJSON
{
this
,
"OutMezzanineJSON"
,
"MdtMezzanine.json"
,
"Cabling JSON"
};
38
39
40
};
41
42
#endif
AthAlgorithm.h
IMuonIdHelperSvc.h
MuonDetectorManager.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
MdtToyCablingJsonDumpAlg::cardinality
virtual unsigned int cardinality() const override final
Definition
MdtToyCablingJsonDumpAlg.h:28
MdtToyCablingJsonDumpAlg::m_detMgr
const MuonGMR4::MuonDetectorManager * m_detMgr
Definition
MdtToyCablingJsonDumpAlg.h:33
MdtToyCablingJsonDumpAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
MdtToyCablingJsonDumpAlg.h:31
MdtToyCablingJsonDumpAlg::~MdtToyCablingJsonDumpAlg
virtual ~MdtToyCablingJsonDumpAlg()=default
MdtToyCablingJsonDumpAlg::m_mezzanineJSON
Gaudi::Property< std::string > m_mezzanineJSON
Definition
MdtToyCablingJsonDumpAlg.h:37
MdtToyCablingJsonDumpAlg::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
MdtToyCablingJsonDumpAlg.cxx:27
MdtToyCablingJsonDumpAlg::m_cablingJSON
Gaudi::Property< std::string > m_cablingJSON
Definition
MdtToyCablingJsonDumpAlg.h:35
MdtToyCablingJsonDumpAlg::MdtToyCablingJsonDumpAlg
MdtToyCablingJsonDumpAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
MdtToyCablingJsonDumpAlg.cxx:15
MdtToyCablingJsonDumpAlg::initialize
virtual StatusCode initialize() override
Definition
MdtToyCablingJsonDumpAlg.cxx:18
MuonGMR4::MuonDetectorManager
Definition
MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:62
ServiceHandle
Definition
ClusterMakerTool.h:36
const
Generated on
for ATLAS Offline Software by
1.17.0