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_TOPPARTONUTILS_H
9#define PARTONS_TOPPARTONUTILS_H
10
12
13namespace CP {
14using ROOT::Math::PtEtaPhiMVector;
15
19
20// determine whether potentialChild is child of parent
21bool isChildOf(const xAOD::TruthParticle* parent,
22 const xAOD::TruthParticle* potentialChild);
23
25bool isBrokenTop(const xAOD::TruthParticle* particle);
26
28bool isAfterFSR(const xAOD::TruthParticle* particle);
29
32
33// Checking whether a particle has the same pdgId as its parent
34bool hasParentPdgId(const xAOD::TruthParticle* particle, int PdgId);
35bool hasParentPdgId(const xAOD::TruthParticle* particle);
36
37// Checking whether a particle has the same absolute pdgId as absPdgId
38bool hasParentAbsPdgId(const xAOD::TruthParticle* particle, int absPdgId);
39
40// Checking whether a particle has an identical child
41bool hasIdenticalChild(const xAOD::TruthParticle* particle);
42
43// Checking whether a particle is a quark from the PDF (massless)
44bool isQuarkFromPDF(const xAOD::TruthParticle* particle);
45
46} // namespace PartonHistoryUtils
47} // namespace CP
48
49#endif
bool hasIdenticalChild(const xAOD::TruthParticle *particle)
bool hasParticleIdenticalParent(const xAOD::TruthParticle *particle)
Return true when particle is a top before FSR.
bool isQuarkFromPDF(const xAOD::TruthParticle *particle)
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 isBrokenTop(const xAOD::TruthParticle *particle)
Looking for tops without children -> must be broken.
bool hasParentAbsPdgId(const xAOD::TruthParticle *particle, int absPdgId)
Select isolated Photons, Electrons and Muons.
TruthParticle_v1 TruthParticle
Typedef to implementation.