ATLAS Offline Software
TruthLinkRepointTool.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 DERIVATIONFRAMEWORK_TruthLinkRepointTool_H
6 #define DERIVATIONFRAMEWORK_TruthLinkRepointTool_H
7 
8 // Interface classes
11 
12 // Types for functions. Note these are typedefs, so can't forward reference.
16 
17 // STL includes
18 #include <string>
19 #include <vector>
20 
21 namespace DerivationFramework {
22 
24  public:
25  TruthLinkRepointTool(const std::string& t, const std::string& n, const IInterface* p);
27  virtual StatusCode addBranches() const override final;
28  virtual StatusCode initialize() override final;
29 
30  private:
32  SG::ReadHandleKey<xAOD::IParticleContainer> m_recoKey{this,"RecoCollection", "Muons",
33  "Name of reco collection for decoration"};
35  Gaudi::Property<std::string> m_decOutput{this, "OutputDecoration",
36  "TruthLink", "Name of the output decoration on the reco object"};
38  SG::ReadHandleKeyArray<xAOD::TruthParticleContainer> m_targetKeys{this, "TargetCollections", {"TruthMuons","TruthPhotons","TruthElectrons"}, "Name of target truth collections"};
39 
40  SG::WriteDecorHandleKey<xAOD::IParticleContainer> m_decorKey{this, "TargetDecorKeys", "", "Will be overwritten during initialize"};
41  // Helper function for finding matching truth particle and warning consistently
43  };
44 }
45 
46 #endif // DERIVATIONFRAMEWORK_TruthLinkRepointTool_H
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
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
IAugmentationTool.h
TruthParticleContainer.h
DerivationFramework::TruthLinkRepointTool::m_targetKeys
SG::ReadHandleKeyArray< xAOD::TruthParticleContainer > m_targetKeys
Parameter: target collection.
Definition: TruthLinkRepointTool.h:38
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
DerivationFramework::TruthLinkRepointTool::initialize
virtual StatusCode initialize() override final
Definition: TruthLinkRepointTool.cxx:30
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:41
AthAlgTool.h
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::TruthLinkRepointTool::find_match
static int find_match(const xAOD::TruthParticle *p, const xAOD::TruthParticleContainer *c)
Definition: TruthLinkRepointTool.cxx:84
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
DerivationFramework::TruthLinkRepointTool
Definition: TruthLinkRepointTool.h:23
DerivationFramework::TruthLinkRepointTool::~TruthLinkRepointTool
~TruthLinkRepointTool()
DerivationFramework::TruthLinkRepointTool::m_decorKey
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_decorKey
Definition: TruthLinkRepointTool.h:40
DerivationFramework::TruthLinkRepointTool::addBranches
virtual StatusCode addBranches() const override final
Pass the thinning service
Definition: TruthLinkRepointTool.cxx:46
WriteDecorHandleKeyArray.h
DerivationFramework::TruthLinkRepointTool::m_decOutput
Gaudi::Property< std::string > m_decOutput
Parameter: output decoration.
Definition: TruthLinkRepointTool.h:35
DerivationFramework::TruthLinkRepointTool::m_recoKey
SG::ReadHandleKey< xAOD::IParticleContainer > m_recoKey
Parameter: input collection key.
Definition: TruthLinkRepointTool.h:32
DerivationFramework::TruthLinkRepointTool::TruthLinkRepointTool
TruthLinkRepointTool(const std::string &t, const std::string &n, const IInterface *p)
Definition: TruthLinkRepointTool.cxx:24
AthAlgTool
Definition: AthAlgTool.h:26
python.compressB64.c
def c
Definition: compressB64.py:93