Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
blob
master
calibrations
generators
offline
simulation
g4simulation
g4bbc
g4calo
g4centrality
g4decayer
g4detectors
g4epd
g4eval
BaseTruthEval.cc
BaseTruthEval.h
CaloEvalStack.cc
CaloEvalStack.h
CaloEvaluator.cc
CaloEvaluator.h
CaloRawClusterEval.cc
CaloRawClusterEval.h
CaloRawTowerEval.cc
CaloRawTowerEval.h
CaloTruthEval.cc
CaloTruthEval.h
ClusKeyIter.cc
ClusKeyIter.h
compressor_generator.h
DSTCompressor.h
DSTEmulator.cc
DSTEmulator.h
DSTTrackInfoReader.cc
DSTTrackInfoReader.h
DSTTrackInfoWriter.cc
DSTTrackInfoWriter.h
EventEvaluator.cc
EventEvaluator.h
FillClusMatchTree.cc
FillClusMatchTree.h
FillTruthRecoMatchMap.cc
FillTruthRecoMatchMap.h
FillTruthRecoMatchTree.cc
FillTruthRecoMatchTree.h
g4evalfn.cc
g4evalfn.h
g4evaltools.cc
g4evaltools.h
JetEvalStack.cc
JetEvalStack.h
JetEvaluator.cc
JetEvaluator.h
JetRecoEval.cc
JetRecoEval.h
JetTruthEval.cc
JetTruthEval.h
MomentumEvaluator.cc
MomentumEvaluator.h
PHG4DstCompressReco.cc
PHG4DstCompressReco.h
PHG4DSTReader.cc
PHG4DSTReader.h
SvtxClusterEval.cc
SvtxClusterEval.h
SvtxEvalStack.cc
SvtxEvalStack.h
SvtxEvaluator.cc
SvtxEvaluator.h
SvtxHitEval.cc
SvtxHitEval.h
SvtxTrackEval.cc
SvtxTrackEval.h
SvtxTruthEval.cc
SvtxTruthEval.h
SvtxTruthRecoTableEval.cc
SvtxTruthRecoTableEval.h
SvtxVertexEval.cc
SvtxVertexEval.h
TrackClusEvaluator.cc
TrackClusEvaluator.h
TrackEvaluation.cc
TrackEvaluation.h
TrackEvaluationContainer.h
TrackEvaluationContainerLinkDef.h
TrackEvaluationContainerv1.cc
TrackEvaluationContainerv1.h
TrackEvaluationContainerv1LinkDef.h
TrkrClusLoc.h
TrkrClusterIsMatcher.cc
TrkrClusterIsMatcher.h
TruthRecoTrackMatching.cc
TruthRecoTrackMatching.h
g4gdml
g4histos
g4ihcal
g4intt
g4jets
g4main
g4micromegas
g4mvtx
g4ohcal
g4tpc
g4trackfastsim
g4tracking
g4vertex
g4waveformsim
validation
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
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