ATLAS Offline Software
PhysicsAnalysis
AnalysisCommon
ParticleJetTools
Root
CopyTruthPartons.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
ParticleJetTools/CopyTruthPartons.h
"
6
#include "
xAODTruth/TruthParticleContainer.h
"
7
#include "
TruthUtils/HepMCHelpers.h
"
8
9
using namespace
std;
10
11
12
bool
CopyTruthPartons::classify
(
const
xAOD::TruthParticle
*
tp
)
const
{
13
return
MC::isParton
(
tp
->pdgId());
14
}
CopyTruthPartons::classify
bool classify(const xAOD::TruthParticle *tp) const
Classifier function(s)
Definition:
CopyTruthPartons.cxx:12
TruthParticleContainer.h
ParticleTest.tp
tp
Definition:
ParticleTest.py:25
isParton
bool isParton(const T &p)
Definition:
AtlasPID.h:841
CopyTruthPartons.h
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition:
TruthParticle_v1.h:37
HepMCHelpers.h
Generated on Sun Dec 22 2024 21:08:38 for ATLAS Offline Software by
1.8.18