ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConditions
MuonCondGeneral
MuonCondDump
src
MdtToyTwinCablingDumpAlg.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_MDTTOYTWINCABLINGDUMPALG_H
10
#define MUONCONDDUMP_MDTTOYTWINCABLINGDUMPALG_H
11
12
13
#include "
AthenaBaseComps/AthAlgorithm.h
"
14
#include "
MuonIdHelpers/IMuonIdHelperSvc.h
"
15
#include "
MuonReadoutGeometryR4/MuonDetectorManager.h
"
16
20
21
22
class
MdtToyTwinCablingDumpAlg
:
public
AthAlgorithm
{
23
public
:
24
MdtToyTwinCablingDumpAlg
(
const
std::string& name, ISvcLocator* pSvcLocator);
25
virtual
~MdtToyTwinCablingDumpAlg
() =
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
bool
equipREwithTwins
(
const
Identifier
& detElId)
const
;
32
33
ServiceHandle<Muon::IMuonIdHelperSvc>
m_idHelperSvc
{
this
,
"MuonIdHelperSvc"
,
"Muon::MuonIdHelperSvc/MuonIdHelperSvc"
};
34
35
const
MuonGMR4::MuonDetectorManager
*
m_detMgr
{
nullptr
};
36
37
Gaudi::Property<std::string>
m_cablingJSON
{
this
,
"outCablingJSON"
,
"MdtTwinMapping.json"
,
"Cabling JSON"
};
38
Gaudi::Property<std::vector<std::string>>
m_stationsToTwin
{
this
,
"stationsToTwin"
, {},
"List of station names that should have twinned tubes"
};
39
40
Gaudi::Property<std::vector<std::string>>
m_detElIdToTwin
{
this
,
"detElIdToTwin"
, {
"BOL4A13M1"
,
"BOL4C13M1"
}};
41
Gaudi::Property<int>
m_spacing
{
this
,
"IndentSpace"
, -1,
"How many spaces shall be used for indentation"
};
42
43
44
};
45
46
#endif
AthAlgorithm.h
IMuonIdHelperSvc.h
MuonDetectorManager.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
MdtToyTwinCablingDumpAlg::m_cablingJSON
Gaudi::Property< std::string > m_cablingJSON
Definition
MdtToyTwinCablingDumpAlg.h:37
MdtToyTwinCablingDumpAlg::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
MdtToyTwinCablingDumpAlg.cxx:44
MdtToyTwinCablingDumpAlg::~MdtToyTwinCablingDumpAlg
virtual ~MdtToyTwinCablingDumpAlg()=default
MdtToyTwinCablingDumpAlg::MdtToyTwinCablingDumpAlg
MdtToyTwinCablingDumpAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
MdtToyTwinCablingDumpAlg.cxx:13
MdtToyTwinCablingDumpAlg::m_spacing
Gaudi::Property< int > m_spacing
Definition
MdtToyTwinCablingDumpAlg.h:41
MdtToyTwinCablingDumpAlg::cardinality
virtual unsigned int cardinality() const override final
Definition
MdtToyTwinCablingDumpAlg.h:28
MdtToyTwinCablingDumpAlg::m_detMgr
const MuonGMR4::MuonDetectorManager * m_detMgr
Definition
MdtToyTwinCablingDumpAlg.h:35
MdtToyTwinCablingDumpAlg::initialize
virtual StatusCode initialize() override
Definition
MdtToyTwinCablingDumpAlg.cxx:16
MdtToyTwinCablingDumpAlg::m_stationsToTwin
Gaudi::Property< std::vector< std::string > > m_stationsToTwin
Definition
MdtToyTwinCablingDumpAlg.h:38
MdtToyTwinCablingDumpAlg::m_detElIdToTwin
Gaudi::Property< std::vector< std::string > > m_detElIdToTwin
Definition
MdtToyTwinCablingDumpAlg.h:40
MdtToyTwinCablingDumpAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition
MdtToyTwinCablingDumpAlg.h:33
MdtToyTwinCablingDumpAlg::equipREwithTwins
bool equipREwithTwins(const Identifier &detElId) const
Definition
MdtToyTwinCablingDumpAlg.cxx:25
MuonGMR4::MuonDetectorManager
Definition
MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:62
ServiceHandle
Definition
ClusterMakerTool.h:36
const
Identifier
Definition
IdentifierFieldParser.cxx:14
Generated on
for ATLAS Offline Software by
1.17.0