ATLAS Offline Software
Loading...
Searching...
No Matches
PartonHistoryUtils.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
7
8#ifndef PARTONS_PARTONHISTORYUTILS_H
9#define PARTONS_PARTONHISTORYUTILS_H
10
12
13namespace CP {
14using ROOT::Math::PtEtaPhiMVector;
15
19
20// determine whether potentialChild is child of parent
21//
22// A broken child truth link within nChildren() is treated as "not this child".
23bool isChildOf(const xAOD::TruthParticle& parent,
24 const xAOD::TruthParticle& potentialChild);
25
27bool isBrokenTop(const xAOD::TruthParticle& particle);
28
30bool isAfterFSR(const xAOD::TruthParticle& particle);
31
36
37// Checking whether a particle has the same pdgId as its parent
38//
39// A particle with no parent, or a broken truth link to it, is treated as "no parent".
40bool hasParentPdgId(const xAOD::TruthParticle& particle, int PdgId);
41bool hasParentPdgId(const xAOD::TruthParticle& particle);
42
43// Checking whether a particle has the same absolute pdgId as absPdgId
44//
45// A particle with no parent, or a broken truth link to it, is treated as "no parent".
46bool hasParentAbsPdgId(const xAOD::TruthParticle& particle, int absPdgId);
47
48// Checking whether a particle has an identical child
49//
50// A broken child truth link within nChildren() is treated as "no such child".
51bool hasIdenticalChild(const xAOD::TruthParticle& particle);
52
53// Checking whether a particle is a quark from the PDF (massless)
54bool isQuarkFromPDF(const xAOD::TruthParticle& particle);
55
56} // namespace PartonHistoryUtils
57} // namespace CP
58
59#endif
bool isQuarkFromPDF(const xAOD::TruthParticle &particle)
bool hasParentAbsPdgId(const xAOD::TruthParticle &particle, int absPdgId)
bool hasIdenticalChild(const xAOD::TruthParticle &particle)
bool isBrokenTop(const xAOD::TruthParticle &particle)
Looking for tops without children -> must be broken.
bool hasParentPdgId(const xAOD::TruthParticle &particle, int PdgId)
const xAOD::TruthParticle & findAfterFSR(const xAOD::TruthParticle &particle)
Return particle after FSR (before the decay vertex).
bool isChildOf(const xAOD::TruthParticle &parent, const xAOD::TruthParticle &potentialChild)
bool isAfterFSR(const xAOD::TruthParticle &particle)
Determine whether particle is afterFSR.
bool hasParticleIdenticalParent(const xAOD::TruthParticle &particle)
Return true when any parent of the particle has the same pdgId as the particle.
Select isolated Photons, Electrons and Muons.
TruthParticle_v1 TruthParticle
Typedef to implementation.