ATLAS Offline Software
RpcToyCablingJsonDumpAlg.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 R4-style Rpc cabling maps into a JSON file
7 */
8 
9 #ifndef MUONCONDDUMP_RPCCABLINGJSONDUMPALG_H
10 #define MUONCONDDUMP_RPCCABLINGJSONDUMPALG_H
11 
12 
16 
24 public:
25  RpcToyCablingJsonDumpAlg(const std::string& name, ISvcLocator* pSvcLocator);
26  virtual ~RpcToyCablingJsonDumpAlg() = default;
27  virtual StatusCode initialize() override;
28  virtual StatusCode execute() override;
29  virtual unsigned int cardinality() const override final{return 1;}
30 
31 private:
32  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
33 
35 
36  Gaudi::Property<std::string> m_cablingJSON{this, "OutCablingJSON", "RpcCabling.json", "Cabling JSON"};
37 
38  int m_BIL_stIdx{9999};
39  int m_BIS_stIdx{9999};
40 
41 };
42 
43 #endif
RpcToyCablingJsonDumpAlg::RpcToyCablingJsonDumpAlg
RpcToyCablingJsonDumpAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: RpcToyCablingJsonDumpAlg.cxx:14
RpcToyCablingJsonDumpAlg::m_detMgr
const MuonGMR4::MuonDetectorManager * m_detMgr
Definition: RpcToyCablingJsonDumpAlg.h:34
RpcToyCablingJsonDumpAlg::m_BIS_stIdx
int m_BIS_stIdx
Definition: RpcToyCablingJsonDumpAlg.h:39
MuonGMR4::MuonDetectorManager
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:62
RpcToyCablingJsonDumpAlg::~RpcToyCablingJsonDumpAlg
virtual ~RpcToyCablingJsonDumpAlg()=default
RpcToyCablingJsonDumpAlg::m_cablingJSON
Gaudi::Property< std::string > m_cablingJSON
Definition: RpcToyCablingJsonDumpAlg.h:36
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
AthAlgorithm.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
RpcToyCablingJsonDumpAlg::cardinality
virtual unsigned int cardinality() const override final
Definition: RpcToyCablingJsonDumpAlg.h:29
RpcToyCablingJsonDumpAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: RpcToyCablingJsonDumpAlg.h:32
MuonDetectorManager.h
RpcToyCablingJsonDumpAlg::execute
virtual StatusCode execute() override
Definition: RpcToyCablingJsonDumpAlg.cxx:29
AthAlgorithm
Definition: AthAlgorithm.h:47
RpcToyCablingJsonDumpAlg
: Simple algorithm to generate toy cabling maps for the RPC detector exploiting the NRpcCabling maps.
Definition: RpcToyCablingJsonDumpAlg.h:23
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
RpcToyCablingJsonDumpAlg::initialize
virtual StatusCode initialize() override
Definition: RpcToyCablingJsonDumpAlg.cxx:17
IMuonIdHelperSvc.h
RpcToyCablingJsonDumpAlg::m_BIL_stIdx
int m_BIL_stIdx
Definition: RpcToyCablingJsonDumpAlg.h:38
ServiceHandle< Muon::IMuonIdHelperSvc >