Skip to content

Commit eb9aa24

Browse files
committed
Other Correction
1 parent 8fca711 commit eb9aa24

1 file changed

Lines changed: 10 additions & 31 deletions

File tree

PWGCF/EbyEFluctuations/Tasks/MultandPtFluctuations.cxx

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ struct MultandptFluctuations {
169169
double B = 0.0;
170170

171171
// if (!track.isGlobalTrack()) continue;
172-
for (auto& track : tracks) {
172+
for (const auto& track : tracks) {
173173

174174
histos.fill(HIST("QA/BeforeCut/Eta"), track.eta());
175175
histos.fill(HIST("QA/BeforeCut/Pt"), track.pt());
@@ -206,14 +206,7 @@ struct MultandptFluctuations {
206206
}
207207
}
208208

209-
210-
/* if (eta >= 0.6 && eta < 0.8)
211-
nf++;
212-
else if (eta > -0.8 && eta <= -0.6)Sigma_pTN_OO_NeNe.C
213-
nb++;*/
214-
215209
// After cuts QA
216-
217210
histos.fill(HIST("QA/AfterCut/Eta"), track.eta());
218211
histos.fill(HIST("QA/AfterCut/Pt"), track.pt());
219212
histos.fill(HIST("QA/AfterCut/Phi"), track.phi());
@@ -223,37 +216,23 @@ struct MultandptFluctuations {
223216
histos.fill(HIST("h2_DcaZ"), track.pt(),track.dcaZ());
224217
histos.fill(HIST("h2_DcaXY"), track.pt(),track.dcaXY());
225218

226-
A++; //A-nch, B =pt
227-
B += track.pt();
219+
A++; //A-nch, B =pt
220+
B += track.pt();
228221

229222
}
230-
// LOG(info) << "Nch = " << nch;
231-
/* histos.fill(HIST("hNch"),nch);
232-
eventNch(col, nch);*/
233-
234-
235-
// ---- Fill TProfiles (once per event)
236-
histos.fill(HIST("p_a"), cent, A);
237-
histos.fill(HIST("p_b"), cent, B);
238-
239-
histos.fill(HIST("p_a2"),cent, A * A);
240-
histos.fill(HIST("p_b2"), cent, B * B);
241-
242-
histos.fill(HIST("p_ab"), cent, A * B);
243-
histos.fill(HIST("p_asumb"), cent, A + B);
244-
245-
223+
// ---- Fill TProfiles (once per event)
224+
histos.fill(HIST("p_a"), cent, A);
225+
histos.fill(HIST("p_b"), cent, B);
226+
histos.fill(HIST("p_a2"),cent, A * A);
227+
histos.fill(HIST("p_b2"), cent, B * B);
228+
histos.fill(HIST("p_ab"), cent, A * B);
229+
histos.fill(HIST("p_asumb"), cent, A + B);
246230
}
247231
};
248232

249-
250233
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
251234
{
252235
return WorkflowSpec{
253236
adaptAnalysisTask<MultandptFluctuations>(cfgc)
254237
};
255238
}
256-
257-
258-
259-

0 commit comments

Comments
 (0)