ATLAS Offline Software
Loading...
Searching...
No Matches
TruthDecoratorHelpers.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRUTH_DECORATOR_HELPERS_HH
6#define TRUTH_DECORATOR_HELPERS_HH
7
10
12
13namespace FlavorTagDiscriminants {
15 namespace TruthType {
16 enum Label {
18 Other = 1,
19 Pion = 2,
20 Kaon = 3,
21 Lambda = 4,
23 Muon = 6,
25 };
26 }
38 bool sort_particles(const xAOD::IParticle* particle_A, const xAOD::IParticle* particle_B);
39 int get_truth_type(const xAOD::TruthParticle* truth_particle);
40 int get_source_type(const int origin);
41
42 bool is_bc_hadron(const xAOD::TruthParticle* truth_particle, int flavour);
43 bool is_weakly_decaying_hadron(const xAOD::TruthParticle* truth_particle);
44 bool is_weakly_decaying_hadron(const xAOD::TruthParticle* truth_particle, int flavour);
45 const xAOD::TruthParticle* get_parent_hadron(const xAOD::TruthParticle* truth_particle, bool user_called=true, int depth=0);
46
48 float get_distance(const xAOD::TruthVertex* vertex_A, const xAOD::TruthVertex* vertex_B);
49 int get_vertex_index(const xAOD::TruthVertex* vertex,
50 const xAOD::TruthVertex* truth_PV,
51 std::vector<const xAOD::TruthVertex*>& seen_vertices,
52 const float truthVertexMergeDistance);
53 }
54}
55
56#endif
Class providing the definition of the 4-vector interface.
std::string depth
tag string for intendation
Definition fastadd.cxx:46
bool is_weakly_decaying_hadron(const xAOD::TruthParticle *truth_particle)
float get_distance(const xAOD::TruthVertex *vertex_A, const xAOD::TruthVertex *vertex_B)
const xAOD::TruthVertex * get_truth_vertex(const xAOD::TruthParticle *truth)
const xAOD::TruthParticle * get_parent_hadron(const xAOD::TruthParticle *truth_particle, bool user_called=true, int depth=0)
int get_truth_type(const xAOD::TruthParticle *truth_particle)
bool is_bc_hadron(const xAOD::TruthParticle *truth_particle, int flavour)
int get_vertex_index(const xAOD::TruthVertex *vertex, const xAOD::TruthVertex *truth_PV, std::vector< const xAOD::TruthVertex * > &seen_vertices, const float truthVertexMergeDistance)
bool sort_particles(const xAOD::IParticle *particle_A, const xAOD::IParticle *particle_B)
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
TruthVertex_v1 TruthVertex
Typedef to implementation.
Definition TruthVertex.h:15
TruthParticle_v1 TruthParticle
Typedef to implementation.