ATLAS Offline Software
MuonTrkIDMSScatterDecorAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONCOMBINEDALGS_MUONTRKIDMSSCATTERDECPRALG_H
6 #define MUONCOMBINEDALGS_MUONTRKIDMSSCATTERDECPRALG_H
7 
8 
10 #include "GaudiKernel/ToolHandle.h"
15 /*
16  Algorithm to decorate the scattering positions of the track in the calorimter to the TrackParticle
17 */
18 
20  public:
21  MuonTrkIDMSScatterDecorAlg(const std::string& name, ISvcLocator* pSvcLocator);
23 
24  virtual StatusCode initialize() override;
25  virtual StatusCode execute(const EventContext& ctx) const override;
26  private:
27  SG::ReadHandleKey<xAOD::TrackParticleContainer> m_TrkContainer{this, "TrackContainer", "", "track particle container"};
28 
29  SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> m_deltaPhi1Key{this, "deltaPhi1", "", "deltaphi_1 decoration key"};
30  SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> m_deltaTheta1Key{this, "deltaTheta1", "", "deltatheta_1 decoration key"};
31 
32  SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> m_sigmaDeltaPhi1Key{this, "sigmaDeltaPhi1", "", "sigmadeltaphi_1 decoration key"};
33  SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> m_sigmaDeltaTheta1Key{this, "sigmaDeltaTheta1", "", "sigmadeltatheta_1 decoration key"};
34 
35  SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> m_deltaPhi0Key{this, "deltaPhi0", "", "deltaphi_0 decoration key"};
36  SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> m_deltaTheta0Key{this, "deltaTheta0", "", "deltatheta_0 decoration key"};
37 
38  SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> m_sigmaDeltaPhi0Key{this, "sigmaDeltaPhi0", "", "sigmadeltaphi_0 decoration key"};
39  SG::WriteDecorHandleKey<xAOD::TrackParticleContainer> m_sigmaDeltaTheta0Key{this, "sigmaDeltaTheta0", "", "sigmadeltatheta_0 decoration key"};
40 
41 };
42 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
MuonTrkIDMSScatterDecorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: MuonTrkIDMSScatterDecorAlg.cxx:46
SG::ReadHandleKey< xAOD::TrackParticleContainer >
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
MuonTrkIDMSScatterDecorAlg::m_deltaTheta1Key
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_deltaTheta1Key
Definition: MuonTrkIDMSScatterDecorAlg.h:30
MuonTrkIDMSScatterDecorAlg::m_sigmaDeltaTheta1Key
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_sigmaDeltaTheta1Key
Definition: MuonTrkIDMSScatterDecorAlg.h:33
MuonTrkIDMSScatterDecorAlg::m_deltaPhi0Key
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_deltaPhi0Key
Definition: MuonTrkIDMSScatterDecorAlg.h:35
MuonTrkIDMSScatterDecorAlg::m_deltaTheta0Key
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_deltaTheta0Key
Definition: MuonTrkIDMSScatterDecorAlg.h:36
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
MuonTrkIDMSScatterDecorAlg::initialize
virtual StatusCode initialize() override
Definition: MuonTrkIDMSScatterDecorAlg.cxx:18
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonTrkIDMSScatterDecorAlg::~MuonTrkIDMSScatterDecorAlg
~MuonTrkIDMSScatterDecorAlg()=default
MuonTrkIDMSScatterDecorAlg::m_TrkContainer
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrkContainer
Definition: MuonTrkIDMSScatterDecorAlg.h:27
MuonTrkIDMSScatterDecorAlg::m_deltaPhi1Key
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_deltaPhi1Key
Definition: MuonTrkIDMSScatterDecorAlg.h:29
MuonTrkIDMSScatterDecorAlg::m_sigmaDeltaPhi1Key
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_sigmaDeltaPhi1Key
Definition: MuonTrkIDMSScatterDecorAlg.h:32
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
MuonTrkIDMSScatterDecorAlg::m_sigmaDeltaPhi0Key
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_sigmaDeltaPhi0Key
Definition: MuonTrkIDMSScatterDecorAlg.h:38
MuonTrkIDMSScatterDecorAlg::m_sigmaDeltaTheta0Key
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_sigmaDeltaTheta0Key
Definition: MuonTrkIDMSScatterDecorAlg.h:39
MuonTrkIDMSScatterDecorAlg
Definition: MuonTrkIDMSScatterDecorAlg.h:19
MuonTrkIDMSScatterDecorAlg::MuonTrkIDMSScatterDecorAlg
MuonTrkIDMSScatterDecorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: MuonTrkIDMSScatterDecorAlg.cxx:15
TrackParticleContainer.h
IMuonIdHelperSvc.h