![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
◆ get_distance()
Definition at line 29 of file TruthDecoratorHelpers.cxx.
30 if ( !vertex_A || !vertex_B ) {
return 999.0; }
31 return (vertex_A->
v4().Vect() - vertex_B->
v4().Vect()).Mag();
◆ get_parent_hadron()
Definition at line 54 of file TruthDecoratorHelpers.cxx.
57 if ( truth_particle ==
nullptr ) {
return nullptr; }
59 if (
depth>30) {
return nullptr; }
62 return truth_particle;
64 for (
unsigned int p = 0;
p < truth_particle->
nParents();
p++) {
66 if(
parent == truth_particle)
continue;
68 if ( parent_hadron !=
nullptr ) {
◆ get_source_type()
int FlavorTagDiscriminants::TruthDecoratorHelpers::get_source_type |
( |
const int |
origin | ) |
|
◆ get_truth_type()
◆ get_truth_vertex()
Definition at line 16 of file TruthDecoratorHelpers.cxx.
18 if ( not truth ) {
return nullptr; }
22 if ( not truth_vertex || truth_vertex->
perp() > 440.0 ) {
◆ get_vertex_index()
Definition at line 101 of file TruthDecoratorHelpers.cxx.
110 if (
get_distance(this_vertex, truth_PV) < truthVertexMergeDistance) {
114 for (
size_t i = 0;
i != seen_vertices.size();
i++) {
116 if (
dr < truthVertexMergeDistance ) {
121 seen_vertices.push_back(this_vertex);
122 return seen_vertices.size();
◆ is_bc_hadron()
bool FlavorTagDiscriminants::TruthDecoratorHelpers::is_bc_hadron |
( |
const xAOD::TruthParticle * |
truth_particle, |
|
|
int |
flavour |
|
) |
| |
◆ is_weakly_decaying_hadron() [1/2]
bool FlavorTagDiscriminants::TruthDecoratorHelpers::is_weakly_decaying_hadron |
( |
const xAOD::TruthParticle * |
truth_particle | ) |
|
◆ is_weakly_decaying_hadron() [2/2]
bool FlavorTagDiscriminants::TruthDecoratorHelpers::is_weakly_decaying_hadron |
( |
const xAOD::TruthParticle * |
truth_particle, |
|
|
int |
flavour |
|
) |
| |
◆ sort_particles()
const TruthParticle_v1 * parent(size_t i=0) const
Retrieve the i-th mother (TruthParticle) of this TruthParticle.
bool is_bc_hadron(const xAOD::TruthParticle *truth_particle, int flavour)
@ depth
pointing depth of the shower as calculated in egammaqgcld
Electron_v1 Electron
Definition of the current "egamma version".
bool isElectron() const
Whether the particle is an electron (or positron)
float get_distance(const xAOD::TruthVertex *vertex_A, const xAOD::TruthVertex *vertex_B)
bool isHadronicInteraction(int origin)
from hadronic interactions
bool isCharmHadron() const
Determine if the PID is that of a c-hadron.
bool is_weakly_decaying_hadron(const xAOD::TruthParticle *truth_particle)
bool isStrangeMesonDecay(int origin)
from strange meson decay
const xAOD::TruthParticle * get_parent_hadron(const xAOD::TruthParticle *truth_particle, bool user_called=true, int depth=0)
FourVec_t v4() const
The full 4-vector of the vertex.
bool isGammaConversion(int origin)
from conversions
bool hasDecayVtx() const
Check for a decay vertex on this particle.
size_t nParents() const
Number of parents of this particle.
float perp() const
Vertex transverse distance from the beam line.
virtual double pt() const =0
The transverse momentum ( ) of the particle.
const TruthVertex_v1 * decayVtx() const
The decay vertex of this particle.
bool isBottomHadron() const
Determine if the PID is that of a b-hadron.
Class describing a truth vertex in the MC record.
bool isSecondary(int origin)
from long living particle decays or gamma conversions or hadronic interactions and anything else with...
std::vector< const TruthParticle * > particles_out() const
Get the outgoing particles.
Photon_v1 Photon
Definition of the current "egamma version".
struct TBPatternUnitContext Muon
bool isStrangeBaryonDecay(int origin)
from strange baryon decay
bool isPhoton() const
Whether the particle is a photon.
bool isMuon() const
Whether the particle is a muon (or antimuon)
int pdgId() const
PDG ID code.
bool isStrangeMeson() const
Determine if the PID is that of a strange meson.
double charge() const
Physical charge.