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
13#include <string>
14
16
17namespace CP {
18using ROOT::Math::PtEtaPhiMVector;
19
23
24// determine whether potentialChild is child of parent
25bool isChildOf(const xAOD::TruthParticle* parent,
26 const xAOD::TruthParticle* potentialChild);
27
29bool isBrokenTop(const xAOD::TruthParticle* particle);
30
32bool isAfterFSR(const xAOD::TruthParticle* particle);
33
36
37// Checking whether a particle has the same pdgId as its parent
38bool hasParentPdgId(const xAOD::TruthParticle* particle, int PdgId);
39bool hasParentPdgId(const xAOD::TruthParticle* particle);
40
41// Checking whether a particle has the same absolute pdgId as absPdgId
42bool hasParentAbsPdgId(const xAOD::TruthParticle* particle, int absPdgId);
43
44// Checking whether a particle has an identical child
45bool hasIdenticalChild(const xAOD::TruthParticle* particle);
46
47// Checking whether a particle is a quark from the PDF (massless)
48bool isQuarkFromPDF(const xAOD::TruthParticle* particle);
49
50} // namespace PartonHistoryUtils
51} // namespace CP
52
53#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.