ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
TruthPartonLevelAnalysisAlgorithms
PartonHistory
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
11
#include "
xAODTruth/TruthParticleContainer.h
"
12
13
namespace
CP
{
14
using
ROOT::Math::PtEtaPhiMVector;
15
16
namespace
PartonHistoryUtils
{
18
const
xAOD::TruthParticle
&
findAfterFSR
(
const
xAOD::TruthParticle
& particle);
19
20
// determine whether potentialChild is child of parent
21
//
22
// A broken child truth link within nChildren() is treated as "not this child".
23
bool
isChildOf
(
const
xAOD::TruthParticle
& parent,
24
const
xAOD::TruthParticle
& potentialChild);
25
27
bool
isBrokenTop
(
const
xAOD::TruthParticle
& particle);
28
30
bool
isAfterFSR
(
const
xAOD::TruthParticle
& particle);
31
35
bool
hasParticleIdenticalParent
(
const
xAOD::TruthParticle
& particle);
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".
40
bool
hasParentPdgId
(
const
xAOD::TruthParticle
& particle,
int
PdgId);
41
bool
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".
46
bool
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".
51
bool
hasIdenticalChild
(
const
xAOD::TruthParticle
& particle);
52
53
// Checking whether a particle is a quark from the PDF (massless)
54
bool
isQuarkFromPDF
(
const
xAOD::TruthParticle
& particle);
55
56
}
// namespace PartonHistoryUtils
57
}
// namespace CP
58
59
#endif
TruthParticleContainer.h
CP::PartonHistoryUtils
Definition
PartonHistoryUtils.h:16
CP::PartonHistoryUtils::isQuarkFromPDF
bool isQuarkFromPDF(const xAOD::TruthParticle &particle)
Definition
PartonHistoryUtils.cxx:119
CP::PartonHistoryUtils::hasParentAbsPdgId
bool hasParentAbsPdgId(const xAOD::TruthParticle &particle, int absPdgId)
Definition
PartonHistoryUtils.cxx:53
CP::PartonHistoryUtils::hasIdenticalChild
bool hasIdenticalChild(const xAOD::TruthParticle &particle)
Definition
PartonHistoryUtils.cxx:47
CP::PartonHistoryUtils::isBrokenTop
bool isBrokenTop(const xAOD::TruthParticle &particle)
Looking for tops without children -> must be broken.
Definition
PartonHistoryUtils.cxx:114
CP::PartonHistoryUtils::hasParentPdgId
bool hasParentPdgId(const xAOD::TruthParticle &particle, int PdgId)
Definition
PartonHistoryUtils.cxx:32
CP::PartonHistoryUtils::findAfterFSR
const xAOD::TruthParticle & findAfterFSR(const xAOD::TruthParticle &particle)
Return particle after FSR (before the decay vertex).
Definition
PartonHistoryUtils.cxx:102
CP::PartonHistoryUtils::isChildOf
bool isChildOf(const xAOD::TruthParticle &parent, const xAOD::TruthParticle &potentialChild)
Definition
PartonHistoryUtils.cxx:74
CP::PartonHistoryUtils::isAfterFSR
bool isAfterFSR(const xAOD::TruthParticle &particle)
Determine whether particle is afterFSR.
Definition
PartonHistoryUtils.cxx:98
CP::PartonHistoryUtils::hasParticleIdenticalParent
bool hasParticleIdenticalParent(const xAOD::TruthParticle &particle)
Return true when any parent of the particle has the same pdgId as the particle.
Definition
PartonHistoryUtils.cxx:63
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
xAOD::TruthParticle
TruthParticle_v1 TruthParticle
Typedef to implementation.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticle.h:15
Generated on
for ATLAS Offline Software by
1.17.0