ATLAS Offline Software
sTgcMeasViewAlg.h
Go to the documentation of this file.
1 
2 /*
3  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4 */
5 #ifndef XAODMUONMEASVIEWALGS_STGCMEASVIEWALG_H
6 #define XAODMUONMEASVIEWALGS_STGCMEASVIEWALG_H
7 
9 
14 
17 
18 
25 namespace MuonR4 {
27  public:
28  sTgcMeasViewAlg(const std::string& name, ISvcLocator* pSvcLocator);
29 
30  ~sTgcMeasViewAlg() = default;
31 
32  StatusCode execute(const EventContext& ctx) const override;
33  StatusCode initialize() override;
34  private:
37  template <class ContainerType> StatusCode retrieveContainer(const EventContext& ctx,
39  const ContainerType* & contToPush) const;
40 
41 
42  SG::ReadHandleKey<xAOD::sTgcStripContainer> m_readKeyStrip{this, "StripKey", "xAODsTgcStrips",
43  "Name of the xAOD::sTgcStripContainer"};
44 
45  SG::ReadHandleKey<xAOD::sTgcWireContainer> m_readKeyWire{this, "WireKey", "xAODsTgcWires",
46  "Name of the xAOD::sTgcWireContainer"};
47 
49  "Name of the xAOD::sTgcPadContainer"};
50 
51  SG::WriteHandleKey<xAOD::sTgcMeasContainer> m_writeKey{this, "WriteKey", "xAODsTgcMeasurements"};
52  };
53 }
54 
55 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
MuonR4::sTgcMeasViewAlg::retrieveContainer
StatusCode retrieveContainer(const EventContext &ctx, const SG::ReadHandleKey< ContainerType > &key, const ContainerType *&contToPush) const
Helper method to fetch data from StoreGate.
Definition: sTgcMeasViewAlg.cxx:24
MuonR4::sTgcMeasViewAlg
Definition: sTgcMeasViewAlg.h:26
MuonR4::sTgcMeasViewAlg::m_readKeyStrip
SG::ReadHandleKey< xAOD::sTgcStripContainer > m_readKeyStrip
Definition: sTgcMeasViewAlg.h:42
MuonR4::sTgcMeasViewAlg::m_writeKey
SG::WriteHandleKey< xAOD::sTgcMeasContainer > m_writeKey
Definition: sTgcMeasViewAlg.h:51
MuonR4::sTgcMeasViewAlg::m_readKeyWire
SG::ReadHandleKey< xAOD::sTgcWireContainer > m_readKeyWire
Definition: sTgcMeasViewAlg.h:45
SG::ReadHandleKey< ContainerType >
MuonR4::sTgcMeasViewAlg::m_readKeyPad
SG::ReadHandleKey< xAOD::sTgcPadContainer > m_readKeyPad
Definition: sTgcMeasViewAlg.h:48
sTgcMeasContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
sTgcWireContainer.h
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
MuonR4::sTgcMeasViewAlg::initialize
StatusCode initialize() override
Definition: sTgcMeasViewAlg.cxx:16
sTgcPadContainer.h
MuonR4
This header ties the generic definitions in this package.
Definition: HoughEventData.h:16
MuonR4::sTgcMeasViewAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition: sTgcMeasViewAlg.cxx:39
sTgcStripContainer.h
MuonR4::sTgcMeasViewAlg::sTgcMeasViewAlg
sTgcMeasViewAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: sTgcMeasViewAlg.cxx:13
MuonR4::sTgcMeasViewAlg::~sTgcMeasViewAlg
~sTgcMeasViewAlg()=default
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37