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
EMCalLikelihood.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file EMCalLikelihood.h
1
// $Id: $
2
11
#ifndef EMCALLIKELIHOOD_H_
12
#define EMCALLIKELIHOOD_H_
13
14
#include <
fun4all/SubsysReco.h
>
15
#include <
phool/PHCompositeNode.h
>
16
#include <TNtuple.h>
17
#include <TFile.h>
18
19
#include <string>
20
#include <stdint.h>
21
#include <utility>
// std::pair, std::make_pair
22
23
class
EMCalTrk
;
24
class
TH2;
25
class
TH1;
26
class
Fun4AllHistoManager
;
27
31
class
EMCalLikelihood
:
public
SubsysReco
32
{
33
public
:
34
EMCalLikelihood
(
const
std::string
&
filename
);
35
virtual
36
~EMCalLikelihood
();
37
38
int
39
Init
(
PHCompositeNode
*topNode);
40
int
41
InitRun
(
PHCompositeNode
*topNode);
42
int
43
process_event
(
PHCompositeNode
*topNode);
44
int
45
End
(
PHCompositeNode
*topNode);
46
47
Fun4AllHistoManager
*
48
get_HistoManager
();
49
50
void
51
ApplyEMCalGanging
(
EMCalTrk
* trk);
52
53
void
54
UpdateEnergyDeposition
(
EMCalTrk
* trk);
55
56
void
57
UpdateEnergyDepositionLikelihood
(
EMCalTrk
* trk);
58
59
TH2*
60
get_h2_Edep_Distribution_e
()
const
61
{
62
return
h2_Edep_Distribution_e
;
63
}
64
65
void
66
set_h2_Edep_Distribution_e
(TH2* h2EdepDistributionE)
67
{
68
h2_Edep_Distribution_e
= h2EdepDistributionE;
69
}
70
71
TH2*
72
get_h2_Edep_Distribution_pi
()
const
73
{
74
return
h2_Edep_Distribution_pi
;
75
}
76
77
void
78
set_h2_Edep_Distribution_pi
(TH2* h2EdepDistributionPi)
79
{
80
h2_Edep_Distribution_pi
= h2EdepDistributionPi;
81
}
82
83
double
84
get_center_cemc_ieta
()
const
85
{
86
return
center_cemc_ieta
;
87
}
88
89
void
90
set_center_cemc_ieta
(
double
centerCemcIeta)
91
{
92
center_cemc_ieta
= centerCemcIeta;
93
}
94
95
double
96
get_center_cemc_iphi
()
const
97
{
98
return
center_cemc_iphi
;
99
}
100
101
void
102
set_center_cemc_iphi
(
double
centerCemcIphi)
103
{
104
center_cemc_iphi
= centerCemcIphi;
105
}
106
107
double
108
get_center_hcalin_ieta
()
const
109
{
110
return
center_hcalin_ieta
;
111
}
112
113
void
114
set_center_hcalin_ieta
(
double
centerHcalinIeta)
115
{
116
center_hcalin_ieta
= centerHcalinIeta;
117
}
118
119
double
120
get_center_hcalin_iphi
()
const
121
{
122
return
center_hcalin_iphi
;
123
}
124
125
void
126
set_center_hcalin_iphi
(
double
centerHcalinIphi)
127
{
128
center_hcalin_iphi
= centerHcalinIphi;
129
}
130
131
double
132
get_width_cemc_ieta
()
const
133
{
134
return
width_cemc_ieta
;
135
}
136
137
void
138
set_width_cemc_ieta
(
double
widthCemcIeta)
139
{
140
width_cemc_ieta
= widthCemcIeta;
141
}
142
143
double
144
get_width_cemc_iphi
()
const
145
{
146
return
width_cemc_iphi
;
147
}
148
149
void
150
set_width_cemc_iphi
(
double
widthCemcIphi)
151
{
152
width_cemc_iphi
= widthCemcIphi;
153
}
154
155
double
156
get_width_hcalin_ieta
()
const
157
{
158
return
width_hcalin_ieta
;
159
}
160
161
void
162
set_width_hcalin_ieta
(
double
widthHcalinIeta)
163
{
164
width_hcalin_ieta
= widthHcalinIeta;
165
}
166
167
double
168
get_width_hcalin_iphi
()
const
169
{
170
return
width_hcalin_iphi
;
171
}
172
173
void
174
set_width_hcalin_iphi
(
double
widthHcalinIphi)
175
{
176
width_hcalin_iphi
= widthHcalinIphi;
177
}
178
179
void
do_ganging
(
unsigned
int
eta
,
unsigned
int
phi
)
180
{
181
_do_ganging
=
true
;
182
_ganging_size
.first=
eta
;
183
_ganging_size
.second=
phi
;
184
}
185
186
private
:
187
std::string
_filename
;
188
189
int
_ievent
;
190
191
EMCalTrk
*
_trk
;
192
193
double
center_cemc_iphi
;
194
double
center_cemc_ieta
;
195
double
center_hcalin_iphi
;
196
double
center_hcalin_ieta
;
197
198
double
width_cemc_iphi
;
199
double
width_cemc_ieta
;
200
double
width_hcalin_iphi
;
201
double
width_hcalin_ieta
;
202
203
TH2 *
h2_Edep_Distribution_e
;
204
TH2 *
h2_Edep_Distribution_pi
;
205
TH1 *
h1_ep_Distribution_e
;
206
TH1 *
h1_ep_Distribution_pi
;
207
208
bool
_do_ganging
;
209
211
std::pair<unsigned int, unsigned int>
_ganging_size
;
212
};
213
214
#endif
/* EMCALLIKELIHOOD_H_ */
analysis
blob
master
EMCal-analysis
EMCalAna
EMCalLikelihood.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:50
using
1.8.2 with
sPHENIX GitHub integration