ATLAS Offline Software
CollectionMakerHelpers.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // CollectionMakerHelpers.h, (c) ATLAS Detector software
8 
9 #ifndef DERIVATIONFRAMEWORK_COLLECTIONMAKERHELPERS_H
10 #define DERIVATIONFRAMEWORK_COLLECTIONMAKERHELPERS_H
11 
12 // Just a couple of EDM includes
15 // Standard library includes
16 #include <vector>
17 
18 namespace DerivationFramework {
19 
21 
22  public:
24  static int addTruthParticle(const xAOD::TruthParticle& oldPart, xAOD::TruthParticleContainer* partCont,
25  xAOD::TruthVertexContainer* vertCont, std::vector<int>& seenParticles,
26  const int generations, bool includeVertex=true);
28  static int addTruthVertex( const xAOD::TruthVertex& oldVert, xAOD::TruthParticleContainer* partCont,
29  xAOD::TruthVertexContainer* vertCont, std::vector<int>& seenParticles,
30  const int generations);
33  };
34 }
35 
36 #endif // DERIVATIONFRAMEWORK_COLLECTIONMAKERHELPERS_H
DerivationFramework::CollectionMakerHelpers::addTruthParticle
static int addTruthParticle(const xAOD::TruthParticle &oldPart, xAOD::TruthParticleContainer *partCont, xAOD::TruthVertexContainer *vertCont, std::vector< int > &seenParticles, const int generations, bool includeVertex=true)
< Helper function to add truth particles to a collection
Definition: CollectionMakerHelpers.cxx:55
TruthVertexContainer.h
TruthParticleContainer.h
DerivationFramework::CollectionMakerHelpers
Definition: CollectionMakerHelpers.h:20
HepMC::BarcodeBased::generations
int generations(const T &p)
Method to return how many interactions a particle has undergone during simulation (only to be used in...
Definition: MagicNumbers.h:204
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:41
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
xAOD::TruthVertex_v1
Class describing a truth vertex in the MC record.
Definition: TruthVertex_v1.h:41
DerivationFramework::CollectionMakerHelpers::setupTruthParticle
static xAOD::TruthParticle * setupTruthParticle(const xAOD::TruthParticle &oldPart, xAOD::TruthParticleContainer *partCont)
Definition: CollectionMakerHelpers.cxx:84
DerivationFramework::CollectionMakerHelpers::addTruthVertex
static int addTruthVertex(const xAOD::TruthVertex &oldVert, xAOD::TruthParticleContainer *partCont, xAOD::TruthVertexContainer *vertCont, std::vector< int > &seenParticles, const int generations)
Helper function to set up a truth particle based on an old particle.
Definition: CollectionMakerHelpers.cxx:25