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
SimpleTrackingAnalysis.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file SimpleTrackingAnalysis.h
1
#ifndef __SIMPLETRACKINGANALYSIS_H__
2
#define __SIMPLETRACKINGANALYSIS_H__
3
4
5
// --- need to check all these includes...
6
#include <
fun4all/SubsysReco.h
>
7
#include <vector>
8
9
class
PHCompositeNode
;
10
//class PHG4HoughTransform;
11
class
TH1D;
12
class
TH2D;
13
//class TProfile;
14
class
TProfile2D;
15
class
RawTower
;
16
class
RawCluster
;
17
class
RawTowerContainer
;
18
class
RawClusterContainer
;
19
20
class
SimpleTrackingAnalysis
:
public
SubsysReco
21
{
22
23
public
:
24
25
SimpleTrackingAnalysis
(
const
std::string
&
name
=
"SimpleTrackingAnalysis"
);
26
27
int
Init
(
PHCompositeNode
*);
28
int
process_event
(
PHCompositeNode
*);
29
int
End
(
PHCompositeNode
*);
30
31
void
set_nlayers
(
unsigned
int
x
) {
nlayers
=
x
;}
32
33
void
set_verbosity
(
int
x
) {
verbosity
=
x
;}
34
//void set_docalocuts(bool x) {docalocuts = x;}
35
36
37
38
private
:
39
40
// all values taken from sPHENIX pCDR
41
// note the somewhat mysterious overlap
42
// between the outer edge of the EMC
43
// and the inner edge of the inner HCal
44
// that shouldn't be a problem here, though
45
const
double
emc_radius_inner
= 90.0;
46
const
double
hci_radius_inner
= 115.7;
47
const
double
hco_radius_inner
= 182.0;
48
const
double
emc_radius_outer
= 116.1;
49
const
double
hci_radius_outer
= 137.0;
50
const
double
hco_radius_outer
= 268.5;
51
52
// PHG4HoughTransform _hough; ERROR
53
54
double
magneticfield
;
55
56
int
verbosity
;
57
//bool docalocuts;
58
59
// event counter
60
unsigned
long
long
nevents
;
61
unsigned
long
long
nerrors
;
62
unsigned
long
long
nwarnings
;
63
64
// number of layers
65
unsigned
int
nlayers
;
66
67
// output histograms ---------------------------------------------------------
68
69
TH2D*
_recopt_quality
;
// quality distributions
70
TH2D*
_recopt_quality_tracks_all
;
71
TH2D*
_recopt_quality_tracks_recoWithin4Percent
;
72
TH2D*
_truept_quality_particles_recoWithin4Percent
;
73
74
TH2D*
_truept_dca
;
// dca resolution
75
TH2D*
_truept_dptoverpt
;
// momentum resolution
76
TH1D*
_truept_particles_leavingAllHits
;
// pattern reco eff baseline
77
TH1D*
_truept_particles_recoWithExactHits
;
// pattern reco eff by nhits
78
TH1D*
_truept_particles_recoWithin1Hit
;
79
TH1D*
_truept_particles_recoWithin2Hits
;
80
TH1D*
_truept_particles_recoWithin3Percent
;
// parttern reco eff by momentum match
81
TH1D*
_truept_particles_recoWithin4Percent
;
82
TH1D*
_truept_particles_recoWithin5Percent
;
83
84
85
86
TH1D*
_recopt_tracks_all
;
// purity baseline (non-embedded particles)
87
TH1D*
_recopt_tracks_recoWithExactHits
;
// purity by nhit match
88
TH1D*
_recopt_tracks_recoWithin1Hit
;
89
TH1D*
_recopt_tracks_recoWithin2Hits
;
90
TH1D*
_recopt_tracks_recoWithin3Percent
;
// purity by momentum match
91
TH1D*
_recopt_tracks_recoWithin4Percent
;
92
TH1D*
_recopt_tracks_recoWithin5Percent
;
93
94
95
// purity histograms for calo cuts
96
TH2D*
th2d_recopt_tracks_withcalocuts_all
;
// purity baseline (non-embedded particles)
97
TH2D*
th2d_recopt_tracks_withcalocuts_recoWithExactHits
;
// purity by nhit match
98
TH2D*
th2d_recopt_tracks_withcalocuts_recoWithin1Hit
;
99
TH2D*
th2d_recopt_tracks_withcalocuts_recoWithin2Hits
;
100
TH2D*
th2d_recopt_tracks_withcalocuts_recoWithin3Percent
;
// purity by momentum match
101
TH2D*
th2d_recopt_tracks_withcalocuts_recoWithin4Percent
;
102
TH2D*
th2d_recopt_tracks_withcalocuts_recoWithin5Percent
;
103
TH2D*
th2d_recopt_tracks_withcalocuts_recoWithin1Sigma
;
// purity by momentum match
104
TH2D*
th2d_recopt_tracks_withcalocuts_recoWithin2Sigma
;
105
TH2D*
th2d_recopt_tracks_withcalocuts_recoWithin3Sigma
;
106
107
// efficiency histograms for calo cuts
108
TH2D*
th2d_truept_particles_withcalocuts_leavingAllHits
;
109
TH2D*
th2d_truept_particles_withcalocuts_recoWithExactHits
;
110
TH2D*
th2d_truept_particles_withcalocuts_recoWithin1Hit
;
111
TH2D*
th2d_truept_particles_withcalocuts_recoWithin2Hits
;
112
TH2D*
th2d_truept_particles_withcalocuts_recoWithin3Percent
;
113
TH2D*
th2d_truept_particles_withcalocuts_recoWithin4Percent
;
114
TH2D*
th2d_truept_particles_withcalocuts_recoWithin5Percent
;
115
TH2D*
th2d_truept_particles_withcalocuts_recoWithin1Sigma
;
116
TH2D*
th2d_truept_particles_withcalocuts_recoWithin2Sigma
;
117
TH2D*
th2d_truept_particles_withcalocuts_recoWithin3Sigma
;
118
119
// --- new additional (eventual replacement?) histograms for purity study
120
TH2D*
th2d_reco_calo_nhits8
;
121
TH2D*
th2d_reco_calo_nhits7
;
122
TH2D*
th2d_reco_calo_nhits6
;
123
TH2D*
th2d_reco_calo_nhits5
;
124
TH2D*
th2d_reco_calo_nhits4
;
125
TH2D*
th2d_reco_calo_nhits3
;
126
TH2D*
th2d_reco_calo_nhits2
;
127
TH2D*
th2d_reco_calo_nhits1
;
128
129
TH2D*
th2d_reco_calo_pt1sigma
;
130
TH2D*
th2d_reco_calo_pt2sigma
;
131
TH2D*
th2d_reco_calo_pt3sigma
;
132
TH2D*
th2d_reco_calo_pt4sigma
;
133
TH2D*
th2d_reco_calo_pt5sigma
;
134
TH2D*
th2d_reco_calo_pt6sigma
;
135
136
137
138
// --- new additional (eventual replacement?) histograms for purity study
139
TH2D*
th2d_true_calo_nhits8
;
140
TH2D*
th2d_true_calo_nhits7
;
141
TH2D*
th2d_true_calo_nhits6
;
142
TH2D*
th2d_true_calo_nhits5
;
143
TH2D*
th2d_true_calo_nhits4
;
144
TH2D*
th2d_true_calo_nhits3
;
145
TH2D*
th2d_true_calo_nhits2
;
146
TH2D*
th2d_true_calo_nhits1
;
147
148
TH2D*
th2d_true_calo_pt1sigma
;
149
TH2D*
th2d_true_calo_pt2sigma
;
150
TH2D*
th2d_true_calo_pt3sigma
;
151
TH2D*
th2d_true_calo_pt4sigma
;
152
TH2D*
th2d_true_calo_pt5sigma
;
153
TH2D*
th2d_true_calo_pt6sigma
;
154
155
156
// vertex info hisograms
157
TH1D*
_dx_vertex
;
158
TH1D*
_dy_vertex
;
159
TH1D*
_dz_vertex
;
160
161
TH1D*
hmult
;
162
TH1D*
hmult_vertex
;
163
164
165
166
};
167
168
#endif // __SIMPLETRACKINGANALYSIS_H__
analysis
blob
master
SimpleTrackingAnalysis
SimpleTrackingAnalysis.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:57
using
1.8.2 with
sPHENIX GitHub integration