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
TrackEvaluation.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TrackEvaluation.h
1
#ifndef G4EVAL_TRACKEVALUATION_H
2
#define G4EVAL_TRACKEVALUATION_H
3
9
#include "
TrackEvaluationContainerv1.h
"
10
11
#include <
fun4all/SubsysReco.h
>
12
13
#include <
trackbase/ClusterErrorPara.h
>
14
#include <
trackbase/TrkrDefs.h
>
15
16
#include <
trackbase_historic/SvtxTrackState.h
>
17
18
#include <map>
19
#include <set>
20
#include <string>
21
#include <vector>
22
23
class
ActsGeometry
;
24
class
PHG4TpcCylinderGeomContainer
;
25
class
PHG4CylinderGeomContainer
;
26
class
PHG4Hit
;
27
class
PHG4HitContainer
;
28
class
PHG4Particle
;
29
class
PHG4TruthInfoContainer
;
30
class
SvtxTrack
;
31
class
SvtxTrackMap
;
32
class
TrkrCluster
;
33
class
TrkrClusterContainer
;
34
class
TrkrClusterHitAssoc
;
35
class
TrkrHitSetContainer
;
36
class
TrkrHitTruthAssoc
;
37
38
class
TrackEvaluation
:
public
SubsysReco
39
{
40
public
:
42
TrackEvaluation
(
const
std::string
& =
"TrackEvaluation"
);
43
45
int
Init
(
PHCompositeNode
*)
override
;
46
48
int
InitRun
(
PHCompositeNode
*)
override
;
49
51
int
process_event
(
PHCompositeNode
*)
override
;
52
54
int
End
(
PHCompositeNode
*)
override
;
55
56
enum
Flags
57
{
58
EvalEvent
= 1 << 0,
59
EvalClusters
= 1 << 1,
60
EvalTracks
= 1 << 2
61
};
62
64
void
set_flags
(
int
flags)
65
{
66
m_flags
= flags;
67
}
68
69
private
:
71
int
load_nodes
(
PHCompositeNode
*);
72
74
void
evaluate_event
();
75
77
void
evaluate_clusters
();
78
80
void
evaluate_tracks
();
81
82
// get geant hits associated to a cluster
83
using
G4HitSet
= std::set<PHG4Hit*>;
84
G4HitSet
find_g4hits
(
TrkrDefs::cluskey
)
const
;
85
G4HitSet
find_g4hits
(
TrkrDefs::cluskey
,
int
id
)
const
;
86
88
std::pair<int, int>
get_max_contributor
(
SvtxTrack
*)
const
;
89
91
int
get_embed
(
PHG4Particle
*)
const
;
92
94
TrackEvaluationContainerv1::ClusterStruct
create_cluster
(
TrkrDefs::cluskey
,
TrkrCluster
*,
SvtxTrack
*)
const
;
95
97
void
add_trk_information
(
TrackEvaluationContainerv1::ClusterStruct
&,
SvtxTrackState
*)
const
;
98
100
104
void
add_trk_information_micromegas
(
TrackEvaluationContainerv1::ClusterStruct
&,
int
/* tileid */
,
SvtxTrackState
*)
const
;
105
106
// add truth information
107
void
add_truth_information
(
TrackEvaluationContainerv1::ClusterStruct
&,
const
std::set<PHG4Hit*>&)
const
;
108
109
// add truth information
114
void
add_truth_information_micromegas
(
TrackEvaluationContainerv1::ClusterStruct
&,
int
/* tileid */
,
const
std::set<PHG4Hit*>&)
const
;
115
117
TrackEvaluationContainerv1
*
m_container
=
nullptr
;
118
120
int
m_flags
=
EvalEvent
|
EvalClusters
|
EvalTracks
;
121
123
ActsGeometry
*
m_tGeometry
=
nullptr
;
124
126
TrkrHitSetContainer
*
m_hitsetcontainer
=
nullptr
;
127
129
TrkrClusterContainer
*
m_cluster_map
=
nullptr
;
130
132
TrkrClusterHitAssoc
*
m_cluster_hit_map
=
nullptr
;
133
135
TrkrHitTruthAssoc
*
m_hit_truth_map
=
nullptr
;
136
138
SvtxTrackMap
*
m_track_map
=
nullptr
;
139
141
142
PHG4HitContainer
*
m_g4hits_tpc
=
nullptr
;
143
PHG4HitContainer
*
m_g4hits_intt
=
nullptr
;
144
PHG4HitContainer
*
m_g4hits_mvtx
=
nullptr
;
145
PHG4HitContainer
*
m_g4hits_micromegas
=
nullptr
;
147
149
PHG4TruthInfoContainer
*
m_g4truthinfo
=
nullptr
;
150
152
PHG4TpcCylinderGeomContainer
*
m_tpc_geom_container
=
nullptr
;
153
155
PHG4CylinderGeomContainer
*
m_micromegas_geom_container
=
nullptr
;
156
157
// map cluster keys to g4hits
158
using
G4HitMap
= std::map<TrkrDefs::cluskey, G4HitSet>;
159
mutable
G4HitMap
m_g4hit_map
;
160
ClusterErrorPara
_ClusErrPara
;
161
};
162
163
#endif // G4EVAL_TrackEvaluation_H
coresoftware
blob
master
simulation
g4simulation
g4eval
TrackEvaluation.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:14
using
1.8.2 with
sPHENIX GitHub integration