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
VtxTest.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file VtxTest.h
1
10
#ifndef TRUTHCONVERSIONEVAL_H__
11
#define TRUTHCONVERSIONEVAL_H__
12
13
#include <
fun4all/SubsysReco.h
>
14
#include <calobase/RawClusterContainer.h>
15
#include <queue>
16
17
class
PHCompositeNode
;
18
class
PHG4TruthInfoContainer
;
19
class
PHG4Particle
;
20
class
PHG4VtxPoint
;
21
class
Conversion
;
22
class
SvtxTrackEval
;
23
class
SvtxHitMap;
24
class
SvtxHit;
25
class
SvtxClusterMap;
26
class
SvtxCluster;
27
class
RawClusterContainer
;
28
class
TTree;
29
class
TFile;
30
class
SVReco
;
31
class
TrkrClusterContainer
;
32
33
class
VtxTest
:
public
SubsysReco
34
{
35
36
public
:
45
VtxTest
(
const
std::string
&
name
,
unsigned
int
runnumber
,
46
int
particleEmbed,
int
pythiaEmbed,
bool
makeTTree);
47
~VtxTest
();
48
int
InitRun
(
PHCompositeNode
*);
53
int
process_event
(
PHCompositeNode
*);
54
int
End
(
PHCompositeNode
*);
56
const
RawClusterContainer
*
getClusters
()
const
;
57
58
private
:
59
void
doNodePointers
(
PHCompositeNode
* topNode);
65
std::queue<std::pair<int,int>>
numUnique
(std::map<int,Conversion>* map,
SvtxTrackEval
* trackEval,
RawClusterContainer
* mainClusterContainer);
67
void
findChildren
(std::queue<std::pair<int,int>> missing,
PHG4TruthInfoContainer
* truthinfo);
70
void
processBackground
(std::map<int,Conversion>* map,
SvtxTrackEval
* trackEval,TTree*
tree
);
71
72
int
get_embed
(
PHG4Particle
*
particle
,
PHG4TruthInfoContainer
* truthinfo)
const
;
73
float
vtoR
(
PHG4VtxPoint
* vtx)
const
;
74
75
const
static
int
s_kMAXParticles
=200;
76
const
static
int
s_kMAXRecoMatch
=20;
77
const
unsigned
int
_kRunNumber
;
78
const
int
_kParticleEmbed
;
79
const
int
_kPythiaEmbed
;
80
const
bool
_kMakeTTree
;
//< if false no TTrees are output
81
int
_runNumber
;
82
TFile *
_f
=NULL;
83
TTree *
_tree
=NULL;
84
TTree *
_signalCutTree
=NULL;
85
TTree *
_h_backgroundCutTree
=NULL;
86
TTree *
_e_backgroundCutTree
=NULL;
87
RawClusterContainer
*
_mainClusterContainer
;
88
PHG4TruthInfoContainer
*
_truthinfo
;
89
TrkrClusterContainer
*
_clusterMap
;
90
SvtxHitMap *
_hitMap
;
91
std::string
_foutname
;
92
SVReco
*
_vertexer
=NULL;
93
95
int
_b_event
;
96
int
_b_nVtx
;
97
int
_b_Tpair
;
98
int
_b_Rpair
;
99
double
_b_rVtx
[
s_kMAXParticles
];
100
bool
_b_pythia
[
s_kMAXParticles
];
101
float
_b_electron_pt
[
s_kMAXParticles
];
102
float
_b_positron_pt
[
s_kMAXParticles
];
103
float
_b_electron_reco_pt
[
s_kMAXParticles
];
104
float
_b_positron_reco_pt
[
s_kMAXParticles
];
105
float
_b_e_deta
[
s_kMAXParticles
];
106
float
_b_e_dphi
[
s_kMAXParticles
];
107
float
_b_parent_pt
[
s_kMAXParticles
];
108
float
_b_parent_eta
[
s_kMAXParticles
];
109
float
_b_parent_phi
[
s_kMAXParticles
];
110
int
_b_grandparent_id
[
s_kMAXParticles
];
111
113
int
_b_nCluster
[
s_kMAXRecoMatch
];
114
int
_b_fLayer
[
s_kMAXRecoMatch
];
115
float
_b_cluster_dphi
[
s_kMAXRecoMatch
];
116
float
_b_cluster_deta
[
s_kMAXRecoMatch
];
117
float
_b_Mcluster_prob
[
s_kMAXRecoMatch
];
118
float
_b_Scluster_prob
[
s_kMAXRecoMatch
];
119
122
float
_b_track_deta
;
123
int
_b_track_layer
;
124
int
_b_track_dlayer
;
125
float
_b_track_pT
;
126
float
_b_ttrack_pT
;
127
double
_b_approach
;
128
double
_b_vtx_radius
;
129
double
_b_vtx_phi
;
130
double
_b_vtx_eta
;
131
double
_b_vtx_x
;
132
double
_b_vtx_y
;
133
double
_b_vtx_z
;
134
double
_b_tvtx_eta
;
135
double
_b_tvtx_x
;
136
double
_b_tvtx_y
;
137
double
_b_tvtx_z
;
138
double
_b_tvtx_radius
;
139
double
_b_tvtx_phi
;
140
double
_b_vtxTrack_dist
;
141
float
_b_vtx_chi2
;
142
float
_b_photon_m
;
143
float
_b_photon_pT
;
144
float
_b_cluster_prob
;
145
float
_b_track_dphi
;
149
//bb stands for background branch
150
float
_bb_track_deta
;
151
int
_bb_track_layer
;
152
int
_bb_track_dlayer
;
153
float
_bb_track_pT
;
154
double
_bb_approach
;
155
double
_bb_vtx_radius
;
156
double
_bb_vtxTrack_dist
;
157
float
_bb_vtx_chi2
;
158
float
_bb_photon_m
;
159
float
_bb_photon_pT
;
160
float
_bb_cluster_prob
;
161
float
_bb_track_dphi
;
162
int
_bb_pid
;
166
RawClusterContainer
_conversionClusters
;
167
168
const
static
int
s_kTPCRADIUS
=21;
//in cm there is a way to get this from the simulation I should implement?
170
float
_kRAPIDITYACCEPT
=1;
//<acceptance rapidity currently hard coded to |1|
171
};
172
173
174
175
#endif // __TRUTHCONVERSIONEVAL_H__
176
177
178
analysis
blob
master
PhotonConversion
truthconversion
VtxTest.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:55
using
1.8.2 with
sPHENIX GitHub integration