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
TpcPrototypeGenFitTrkFinder.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TpcPrototypeGenFitTrkFinder.h
1
8
#ifndef TRACKRECO_TpcPrototypeGenFitTrkFinder_H
9
#define TRACKRECO_TpcPrototypeGenFitTrkFinder_H
10
11
#include <
fun4all/SubsysReco.h
>
12
13
#include <string>
14
#include <vector>
15
16
17
namespace
PHGenFit
18
{
19
class
Fitter;
20
}
21
22
class
AssocInfoContainer
;
23
class
PHCompositeNode
;
24
class
SvtxTrackMap
;
25
class
SvtxVertexMap
;
26
class
TClonesArray;
27
class
TTree;
28
class
TrkrCluster
;
29
class
TrkrClusterContainer
;
30
32
class
TpcPrototypeGenFitTrkFinder
:
public
SubsysReco
33
{
34
public
:
36
TpcPrototypeGenFitTrkFinder
(
const
std::string
&
name
=
"TpcPrototypeGenFitTrkFinder"
,
int
layers = 16);
37
39
~TpcPrototypeGenFitTrkFinder
();
40
42
int
Init
(
PHCompositeNode
*);
43
45
int
InitRun
(
PHCompositeNode
*);
46
48
int
process_event
(
PHCompositeNode
*);
49
51
int
End
(
PHCompositeNode
*);
52
55
void
set_eval_filename
(
const
std::string
&
file
)
56
{
57
_eval_outname
=
file
;
58
}
59
std::string
get_eval_filename
()
const
60
{
61
return
_eval_outname
;
62
}
63
64
void
fill_eval_tree
(
PHCompositeNode
*);
65
void
init_eval_tree
();
66
void
reset_eval_variables
();
67
68
bool
is_do_eval
()
const
69
{
70
return
_do_eval
;
71
}
72
73
void
set_do_eval
(
bool
doEval)
74
{
75
_do_eval
= doEval;
76
}
77
78
bool
is_do_evt_display
()
const
79
{
80
return
_do_evt_display
;
81
}
82
83
void
set_do_evt_display
(
bool
doEvtDisplay)
84
{
85
_do_evt_display
= doEvtDisplay;
86
}
87
88
const
std::string
&
get_track_fitting_alg_name
()
const
89
{
90
return
_track_fitting_alg_name
;
91
}
92
93
void
set_track_fitting_alg_name
(
const
std::string
& trackFittingAlgName)
94
{
95
_track_fitting_alg_name
= trackFittingAlgName;
96
}
97
98
int
get_primary_pid_guess
()
const
99
{
100
return
_primary_pid_guess
;
101
}
102
103
void
set_primary_pid_guess
(
int
primaryPidGuess)
104
{
105
_primary_pid_guess
= primaryPidGuess;
106
}
107
108
private
:
110
int
_event
;
111
113
int
GetNodes
(
PHCompositeNode
*);
114
116
int
CreateNodes
(
PHCompositeNode
*);
117
118
typedef
std::vector<const TrkrCluster*>
tracklet_t
;
119
120
double
getChi2Ndf
(
const
tracklet_t
& tracklet);
121
122
PHGenFit::Fitter
*
_fitter
;
123
125
std::string
_track_fitting_alg_name
;
126
127
int
nLayer
;
128
unsigned
int
minLayer
;
129
unsigned
int
maxTracklet
;
130
int
_primary_pid_guess
;
131
double
rphiWindow
;
132
double
ZWindow
;
133
135
// PHG4TruthInfoContainer* _truth_container;
136
TrkrClusterContainer
*
_clustermap
;
137
SvtxTrackMap
*
_trackmap
;
138
AssocInfoContainer
*
_assoc_container
;
139
SvtxVertexMap
*
_vertexmap
;
140
143
bool
_do_eval
;
144
146
std::string
_eval_outname
;
147
148
TTree*
_eval_tree
;
149
int
_tca_ntrack
;
150
TClonesArray*
_tca_trackmap
;
151
152
TTree*
_cluster_eval_tree
;
153
float
_cluster_eval_tree_x
;
154
float
_cluster_eval_tree_y
;
155
float
_cluster_eval_tree_z
;
156
float
_cluster_eval_tree_gx
;
157
float
_cluster_eval_tree_gy
;
158
float
_cluster_eval_tree_gz
;
159
160
bool
_do_evt_display
;
161
};
162
163
#endif
prototype
blob
master
offline
packages
tpc2019
TpcPrototypeGenFitTrkFinder.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:29
using
1.8.2 with
sPHENIX GitHub integration