ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkMCTruth
src
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
13
#include "
xAODTruth/TruthParticleContainer.h
"
14
#include "
xAODTruth/TruthVertexContainer.h
"
15
// Standard library includes
16
#include <vector>
17
18
namespace
DerivationFramework
{
19
20
class
CollectionMakerHelpers
{
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);
32
static
xAOD::TruthParticle
*
setupTruthParticle
(
const
xAOD::TruthParticle
& oldPart,
xAOD::TruthParticleContainer
* partCont);
33
};
34
}
35
36
#endif
// DERIVATIONFRAMEWORK_COLLECTIONMAKERHELPERS_H
TruthParticleContainer.h
TruthVertexContainer.h
DerivationFramework::CollectionMakerHelpers
Definition
CollectionMakerHelpers.h:20
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
DerivationFramework::CollectionMakerHelpers::setupTruthParticle
static xAOD::TruthParticle * setupTruthParticle(const xAOD::TruthParticle &oldPart, xAOD::TruthParticleContainer *partCont)
Definition
CollectionMakerHelpers.cxx:84
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
DerivationFramework
THE reconstruction tool.
Definition
CascadeTools.h:16
xAOD::TruthVertex
TruthVertex_v1 TruthVertex
Typedef to implementation.
Definition
TruthVertex.h:15
xAOD::TruthVertexContainer
TruthVertexContainer_v1 TruthVertexContainer
Declare the latest version of the truth vertex container.
Definition
TruthVertexContainer.h:17
xAOD::TruthParticle
TruthParticle_v1 TruthParticle
Typedef to implementation.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticle.h:15
xAOD::TruthParticleContainer
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticleContainer.h:17
Generated on
for ATLAS Offline Software by
1.17.0