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
GenFitTrackProp.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file GenFitTrackProp.h
1
7
#ifndef __GenFitTrackProp_H__
8
#define __GenFitTrackProp_H__
9
10
11
12
#include <
fun4all/SubsysReco.h
>
13
14
//#include <g4eval/SvtxEvalStack.h>
15
16
#include <string>
17
//#include <memory>
18
19
//Forward declerations
20
21
class
PHCompositeNode
;
22
23
class
PHG4TruthInfoContainer
;
24
25
class
SvtxEvalStack
;
26
27
class
SvtxClusterMap;
28
class
SvtxTrackMap
;
29
30
class
TFile;
31
class
TTree;
32
class
TH2D;
33
34
namespace
PHGenFit {
35
class
Fitter;
36
}
37
38
39
//Brief: basic ntuple and histogram creation for sim evaluation
40
class
GenFitTrackProp
:
public
SubsysReco
41
{
42
public
:
44
GenFitTrackProp
(
const
std::string
&
name
=
"GenFitTrackProp"
,
const
int
pid_guess = 211);
45
47
int
Init
(
PHCompositeNode
*);
48
49
int
InitRun
(
PHCompositeNode
*);
50
52
int
process_event
(
PHCompositeNode
*);
53
55
int
End
(
PHCompositeNode
*);
56
58
void
set_filename
(
const
char
*
file
)
59
{
if
(file)
_outfile_name
=
file
; }
60
61
int
get_pid_guess
()
const
{
62
return
_pid_guess
;
63
}
64
65
void
set_pid_guess
(
int
pidGuess) {
66
_pid_guess
= pidGuess;
67
}
68
69
private
:
70
72
int
GetNodes
(
PHCompositeNode
*);
73
74
void
fill_tree
(
PHCompositeNode
*);
75
void
reset_variables
();
76
77
private
:
78
83
84
PHG4TruthInfoContainer
*
_truth_container
;
85
SvtxTrackMap
*
_trackmap
;
86
91
92
int
_event
;
93
95
96
SvtxEvalStack
*
_svtxevalstack
;
97
99
PHGenFit::Fitter
*
_fitter
;
100
101
std::string
_track_fitting_alg_name
;
102
103
bool
_do_evt_display
;
104
106
int
_pid_guess
;
107
112
113
std::string
_outfile_name
;
114
116
TTree*
_eval_tree_tracks
;
117
118
int
event
;
119
121
int
gtrackID
;
122
int
gflavor
;
123
124
double
gpx
;
125
double
gpy
;
126
double
gpz
;
127
128
double
gpt
;
129
double
geta
;
130
131
double
gvx
;
132
double
gvy
;
133
double
gvz
;
134
136
int
trackID
;
137
int
charge
;
138
int
nhits
;
139
140
double
px
;
141
double
py
;
142
double
pz
;
143
double
pt
;
144
145
double
dca2d
;
146
147
double
radius80
;
148
double
pathlength80
;
149
double
pathlength85
;
150
151
};
152
153
#endif //* __GenFitTrackProp_H__ *//
analysis
blob
master
Tracking
GenFitTrackProp
GenFitTrackProp.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:58
using
1.8.2 with
sPHENIX GitHub integration