ATLAS Offline Software
TruthNavigationDecorator.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 #ifndef DERIVATIONFRAMEWORK_TRUTHNAVIGATIONDECORATOR_H
6 #define DERIVATIONFRAMEWORK_TRUTHNAVIGATIONDECORATOR_H
7 
8 // Interface classes
11 
12 // Handles
14 #include "StoreGate/ReadHandleKey.h"
16 
17 // EDM includes -- typedefs, so can't just be forward declared
20 
21 // STL includes
22 #include <string>
23 #include <vector>
24 
25 namespace DerivationFramework {
26 
28  public:
29  TruthNavigationDecorator(const std::string& t, const std::string& n, const IInterface* p);
32  virtual StatusCode addBranches() const;
33 
34  private:
37  {this, "InputCollections", {}, "Input truth particle collection keys"};
39  {this, "TruthEventKey", "TruthEvents", "SG key for the TruthEvent container"};
42  {this, "DoNotSet_parentDecorKeys", {}, "WriteHandleKeyArray - set internally but must be property"};
44  {this, "DoNotSet_childDecorKeys", {}, "WriteHandleKeyArray - set internally but must be property"};
48  std::map<int,ElementLink<xAOD::TruthParticleContainer> >& linkMap ,
49  std::vector<int>& seen_particles ) const;
53  std::map<int,ElementLink<xAOD::TruthParticleContainer> >& linkMap ,
54  std::vector<int>& seen_particles ) const;
55  };
56 }
57 
58 #endif // DERIVATIONFRAMEWORK_TRUTHNAVIGATIONDECORATOR_H
DerivationFramework::TruthNavigationDecorator::initialize
StatusCode initialize()
Definition: TruthNavigationDecorator.cxx:31
ReadHandleKeyArray.h
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DerivationFramework::TruthNavigationDecorator::m_truthEventKey
SG::ReadHandleKey< xAOD::TruthEventContainer > m_truthEventKey
Definition: TruthNavigationDecorator.h:39
python.DecayParser.parents
parents
print ("==> buf:",buf)
Definition: DecayParser.py:31
IAugmentationTool.h
TruthParticleContainer.h
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
DerivationFramework::TruthNavigationDecorator::addBranches
virtual StatusCode addBranches() const
Pass the thinning service
Definition: TruthNavigationDecorator.cxx:52
DerivationFramework::IAugmentationTool
Definition: IAugmentationTool.h:24
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
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:37
DerivationFramework::TruthNavigationDecorator::TruthNavigationDecorator
TruthNavigationDecorator(const std::string &t, const std::string &n, const IInterface *p)
Definition: TruthNavigationDecorator.cxx:18
AthAlgTool.h
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DerivationFramework::TruthNavigationDecorator::find_children
void find_children(const xAOD::TruthParticle *part, std::vector< ElementLink< xAOD::TruthParticleContainer > > &parents, std::map< int, ElementLink< xAOD::TruthParticleContainer > > &linkMap, std::vector< int > &seen_particles) const
Helper function for finding all the children of a particle.
Definition: TruthNavigationDecorator.cxx:153
DerivationFramework::TruthNavigationDecorator::~TruthNavigationDecorator
~TruthNavigationDecorator()
Definition: TruthNavigationDecorator.cxx:27
DerivationFramework::TruthNavigationDecorator
Definition: TruthNavigationDecorator.h:27
WriteDecorHandleKeyArray.h
DerivationFramework::TruthNavigationDecorator::m_inputKeys
SG::ReadHandleKeyArray< xAOD::TruthParticleContainer > m_inputKeys
Parameter: input particle collections.
Definition: TruthNavigationDecorator.h:37
AthAlgTool
Definition: AthAlgTool.h:26
DerivationFramework::TruthNavigationDecorator::m_childLinksDecorKeys
SG::WriteDecorHandleKeyArray< xAOD::TruthParticleContainer, std::vector< ElementLink< xAOD::TruthParticleContainer > > > m_childLinksDecorKeys
Definition: TruthNavigationDecorator.h:44
TruthEventContainer.h
DerivationFramework::TruthNavigationDecorator::m_parentLinksDecorKeys
SG::WriteDecorHandleKeyArray< xAOD::TruthParticleContainer, std::vector< ElementLink< xAOD::TruthParticleContainer > > > m_parentLinksDecorKeys
Decor keys.
Definition: TruthNavigationDecorator.h:42
DerivationFramework::TruthNavigationDecorator::find_parents
void find_parents(const xAOD::TruthParticle *part, std::vector< ElementLink< xAOD::TruthParticleContainer > > &parents, std::map< int, ElementLink< xAOD::TruthParticleContainer > > &linkMap, std::vector< int > &seen_particles) const
Helper function for finding all the parents of a particle.
Definition: TruthNavigationDecorator.cxx:131