ATLAS Offline Software
IDTrackCaloDepositsDecoratorAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef IDTRACKCALODEPOSITSDECORATORALG_H_
5 #define IDTRACKCALODEPOSITSDECORATORALG_H_
6 
12 #include "xAODMuon/MuonContainer.h"
20 
21 namespace DerivationFramework {
22 
24 public:
25  IDTrackCaloDepositsDecoratorAlg(const std::string& name, ISvcLocator* pSvcLocator);
26 
27  virtual ~IDTrackCaloDepositsDecoratorAlg() = default;
28  StatusCode initialize() override;
29 
30  StatusCode execute(const EventContext& ctx) const override;
31 
32 private:
33 
34  ToolHandle<ITrackDepositInCaloTool> m_trkDepositInCalo{this, "TrackDepositInCaloTool", "TrackDepositInCaloTool/TrackDepositInCaloTool"};
35 
37  SG::ReadHandleKey<xAOD::IParticleContainer> m_partKey{this, "ContainerKey", "RandomParticle"};
38 
39  Gaudi::Property<float> m_ptMin{this, "PtMin", 2.5 * Gaudi::Units::GeV,
40  "Minimal track pt required to decorate the ID track"};
41 
44  Gaudi::Property<std::vector<std::string>> m_trkSelDecors{this, "TrackSelections", {},
45  "List of decorator names of which one needs to be true to run the isolation" };
47  "Will be overwritten in initialize"};
48 
50  "Name of the decorator to store all the energy deposits in the calorimeter"};
52  "Name of the decorator to store the energy loss from EMB1."};
54  "Name of the decorator to store the energy deposit from EMB2."};
55 };
56 
57 }
58 
59 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
DerivationFramework::IDTrackCaloDepositsDecoratorAlg::m_partKey
SG::ReadHandleKey< xAOD::IParticleContainer > m_partKey
Particle container to decorate the Pivot plane coordinates to.
Definition: IDTrackCaloDepositsDecoratorAlg.h:37
DerivationFramework::IDTrackCaloDepositsDecoratorAlg::m_trkSelKeys
SG::ReadDecorHandleKeyArray< xAOD::IParticleContainer > m_trkSelKeys
Definition: IDTrackCaloDepositsDecoratorAlg.h:46
DerivationFramework::IDTrackCaloDepositsDecoratorAlg::m_elossKey
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_elossKey
Definition: IDTrackCaloDepositsDecoratorAlg.h:51
DerivationFramework::IDTrackCaloDepositsDecoratorAlg::m_typeKey
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_typeKey
Definition: IDTrackCaloDepositsDecoratorAlg.h:53
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
DerivationFramework::IDTrackCaloDepositsDecoratorAlg::initialize
StatusCode initialize() override
Definition: IDTrackCaloDepositsDecoratorAlg.cxx:19
DerivationFramework::IDTrackCaloDepositsDecoratorAlg::IDTrackCaloDepositsDecoratorAlg
IDTrackCaloDepositsDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: IDTrackCaloDepositsDecoratorAlg.cxx:15
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
ITrackDepositInCaloTool.h
DerivationFramework::IDTrackCaloDepositsDecoratorAlg::m_ptMin
Gaudi::Property< float > m_ptMin
Definition: IDTrackCaloDepositsDecoratorAlg.h:39
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DerivationFramework::IDTrackCaloDepositsDecoratorAlg
Definition: IDTrackCaloDepositsDecoratorAlg.h:23
DerivationFramework::IDTrackCaloDepositsDecoratorAlg::~IDTrackCaloDepositsDecoratorAlg
virtual ~IDTrackCaloDepositsDecoratorAlg()=default
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
AthReentrantAlgorithm.h
DerivationFramework::IDTrackCaloDepositsDecoratorAlg::m_trkSelDecors
Gaudi::Property< std::vector< std::string > > m_trkSelDecors
Optional list of decorators to select only the good tracks for the isolation decoration.
Definition: IDTrackCaloDepositsDecoratorAlg.h:44
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
DerivationFramework::IDTrackCaloDepositsDecoratorAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition: IDTrackCaloDepositsDecoratorAlg.cxx:33
MuonContainer.h
DerivationFramework::IDTrackCaloDepositsDecoratorAlg::m_trkDepositInCalo
ToolHandle< ITrackDepositInCaloTool > m_trkDepositInCalo
Definition: IDTrackCaloDepositsDecoratorAlg.h:34
DerivationFramework::IDTrackCaloDepositsDecoratorAlg::m_depositKey
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_depositKey
Definition: IDTrackCaloDepositsDecoratorAlg.h:49
GeV
#define GeV
Definition: CaloTransverseBalanceVecMon.cxx:30
ReadDecorHandleKeyArray.h