Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
BaseTruthEval.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file BaseTruthEval.h
1
#ifndef G4EVAL_BASETRUTHEVAL_H
2
#define G4EVAL_BASETRUTHEVAL_H
3
4
#include <set>
5
6
class
PHCompositeNode
;
7
class
PHG4Hit
;
8
class
PHG4Particle
;
9
class
PHG4Shower
;
10
class
PHG4TruthInfoContainer
;
11
class
PHG4VtxPoint
;
12
13
class
BaseTruthEval
14
{
15
public
:
16
explicit
BaseTruthEval
(
PHCompositeNode
* topNode);
17
virtual
~BaseTruthEval
();
18
20
void
next_event
(
PHCompositeNode
* topNode);
21
24
void
set_strict
(
bool
strict) {
m_Strict
= strict; }
25
27
unsigned
int
get_errors
() {
return
m_Errors
; }
28
30
void
set_verbosity
(
int
verbosity
) {
m_Verbosity
=
verbosity
; }
31
32
// ---reduced sim node or better---------------------------------------------
33
34
bool
has_reduced_node_pointers
();
35
37
int
get_embed
(
PHG4Particle
*
particle
);
38
40
PHG4VtxPoint
*
get_vertex
(
PHG4Particle
*
particle
);
41
43
bool
is_primary
(
PHG4Shower
*
shower
);
44
46
bool
is_primary
(
PHG4Particle
*
particle
);
47
49
PHG4Shower
*
get_primary_shower
(
PHG4Shower
*
shower
);
50
52
PHG4Shower
*
get_primary_shower
(
PHG4Particle
*
particle
);
53
55
PHG4Particle
*
get_primary_particle
(
PHG4Particle
*
particle
);
56
58
PHG4Particle
*
get_primary_particle
(
PHG4Shower
*
shower
);
59
61
std::set<PHG4Shower*>
all_secondary_showers
(
PHG4Shower
*
shower
);
62
64
bool
are_same_shower
(
PHG4Shower
* s1,
PHG4Shower
* s2);
65
67
bool
are_same_particle
(
PHG4Particle
* p1,
PHG4Particle
* p2);
68
70
bool
are_same_vertex
(
PHG4VtxPoint
* vtx1,
PHG4VtxPoint
* vtx2);
71
72
// ---full sim node required--------------------------------------------------
73
74
bool
has_full_node_pointers
() {
return
has_reduced_node_pointers
(); }
75
77
PHG4Particle
*
get_particle
(
PHG4Hit
* g4hit);
78
80
PHG4Shower
*
get_primary_shower
(
PHG4Hit
* g4hit);
81
83
PHG4Particle
*
get_primary_particle
(
PHG4Hit
* g4hit);
84
86
PHG4Particle
*
get_particle
(
const
int
trackid);
87
89
bool
is_g4hit_from_primary_shower
(
PHG4Hit
* g4hit,
PHG4Shower
*
shower
);
90
92
bool
is_g4hit_from_particle
(
PHG4Hit
* g4hit,
PHG4Particle
*
particle
);
93
94
private
:
95
void
get_node_pointers
(
PHCompositeNode
* topNode);
96
97
PHG4TruthInfoContainer
*
m_TruthInfo
=
nullptr
;
98
99
bool
m_Strict
=
false
;
100
int
m_Verbosity
= 0;
101
unsigned
int
m_Errors
= 0;
102
};
103
104
#endif // G4EVAL_BASETRUTHEVAL_H
coresoftware
blob
master
simulation
g4simulation
g4eval
BaseTruthEval.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:13
using
1.8.2 with
sPHENIX GitHub integration