Skip to content

Commit c3d09ba

Browse files
committed
fixing errors and updating code
1 parent 2c9ae92 commit c3d09ba

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

PWGCF/EbyEFluctuations/Tasks/radialFlowDecorr.cxx

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3456,15 +3456,13 @@ struct RadialFlowDecorr {
34563456
if (coll.has_foundFT0()) {
34573457
const auto& ft0 = coll.foundFT0();
34583458
for (std::size_t iCh = 0; iCh < ft0.channelA().size(); iCh++) {
3459-
auto chanelid = ft0.channelA()[iCh];
34603459
float ampl = ft0.amplitudeA()[iCh];
34613460
amplFT0A += ampl;
34623461
}
34633462
for (std::size_t iCh = 0; iCh < ft0.channelC().size(); iCh++) {
34643463
auto chanelid = ft0.channelC()[iCh];
34653464
auto globalId = chanelid + KnFt0cCell;
34663465
float ampl = ft0.amplitudeC()[iCh];
3467-
auto eta = getEtaFT0(globalId, 1);
34683466
amplFT0C += ampl;
34693467
}
34703468
}
@@ -3562,10 +3560,10 @@ struct RadialFlowDecorr {
35623560
histos.fill(HIST("Prof_Cov_Cent_etabin_ptbin"), cent, ietaA, ipt, covAC);
35633561
histos.fill(HIST("Prof_Cov_Mult_etabin_ptbin"), coll.multNTracksPV(), ietaA, ipt, covAC);
35643562
}
3565-
// if (std::isfinite(covCA)) {
3566-
// histos.fill(HIST("Prof_Cov_Cent_etabin_ptbin"), cent, ietaA, ipt, covCA);
3567-
// histos.fill(HIST("Prof_Cov_Mult_etabin_ptbin"), coll.multNTracksPV(), ietaA, ipt, covCA);
3568-
// }
3563+
if (std::isfinite(covCA)) {
3564+
histos.fill(HIST("Prof_Cov_Cent_etabin_ptbin"), cent, ietaA, ipt, covCA);
3565+
histos.fill(HIST("Prof_Cov_Mult_etabin_ptbin"), coll.multNTracksPV(), ietaA, ipt, covCA);
3566+
}
35693567

35703568
if (std::isfinite(covFT0A)) {
35713569
histos.fill(HIST("Prof_CovFT0A_Cent_etabin_ptbin"), cent, ietaA, ipt, covFT0A);
@@ -3585,10 +3583,10 @@ struct RadialFlowDecorr {
35853583
histos.fill(HIST("Prof_Cov_Cent_etabin_ptbin_Pi"), cent, ietaA, ipt, covAC);
35863584
histos.fill(HIST("Prof_Cov_Mult_etabin_ptbin_Pi"), coll.multNTracksPV(), ietaA, ipt, covAC);
35873585
}
3588-
// if (std::isfinite(covCA)) {
3589-
// histos.fill(HIST("Prof_Cov_Cent_etabin_ptbin_Pi"), cent, ietaA, ipt, covCA);
3590-
// histos.fill(HIST("Prof_Cov_Mult_etabin_ptbin_Pi"), coll.multNTracksPV(), ietaA, ipt, covCA);
3591-
// }
3586+
if (std::isfinite(covCA)) {
3587+
histos.fill(HIST("Prof_Cov_Cent_etabin_ptbin_Pi"), cent, ietaA, ipt, covCA);
3588+
histos.fill(HIST("Prof_Cov_Mult_etabin_ptbin_Pi"), coll.multNTracksPV(), ietaA, ipt, covCA);
3589+
}
35923590
if (std::isfinite(covFT0A)) {
35933591
histos.fill(HIST("Prof_CovFT0A_Cent_etabin_ptbin_Pi"), cent, ietaA, ipt, covFT0A);
35943592
histos.fill(HIST("Prof_CovFT0A_Mult_etabin_ptbin_Pi"), coll.multNTracksPV(), ietaA, ipt, covFT0A);
@@ -3607,10 +3605,10 @@ struct RadialFlowDecorr {
36073605
histos.fill(HIST("Prof_Cov_Cent_etabin_ptbin_Ka"), cent, ietaA, ipt, covAC);
36083606
histos.fill(HIST("Prof_Cov_Mult_etabin_ptbin_Ka"), coll.multNTracksPV(), ietaA, ipt, covAC);
36093607
}
3610-
// if (std::isfinite(covCA)) {
3611-
// histos.fill(HIST("Prof_Cov_Cent_etabin_ptbin_Ka"), cent, ietaA, ipt, covCA);
3612-
// histos.fill(HIST("Prof_Cov_Mult_etabin_ptbin_Ka"), coll.multNTracksPV(), ietaA, ipt, covCA);
3613-
// }
3608+
if (std::isfinite(covCA)) {
3609+
histos.fill(HIST("Prof_Cov_Cent_etabin_ptbin_Ka"), cent, ietaA, ipt, covCA);
3610+
histos.fill(HIST("Prof_Cov_Mult_etabin_ptbin_Ka"), coll.multNTracksPV(), ietaA, ipt, covCA);
3611+
}
36143612
if (std::isfinite(covFT0A)) {
36153613
histos.fill(HIST("Prof_CovFT0A_Cent_etabin_ptbin_Ka"), cent, ietaA, ipt, covFT0A);
36163614
histos.fill(HIST("Prof_CovFT0A_Mult_etabin_ptbin_Ka"), coll.multNTracksPV(), ietaA, ipt, covFT0A);
@@ -3629,10 +3627,10 @@ struct RadialFlowDecorr {
36293627
histos.fill(HIST("Prof_Cov_Cent_etabin_ptbin_Pr"), cent, ietaA, ipt, covAC);
36303628
histos.fill(HIST("Prof_Cov_Mult_etabin_ptbin_Pr"), coll.multNTracksPV(), ietaA, ipt, covAC);
36313629
}
3632-
// if (std::isfinite(covCA)) {
3633-
// histos.fill(HIST("Prof_Cov_Cent_etabin_ptbin_Pr"), cent, ietaA, ipt, covCA);
3634-
// histos.fill(HIST("Prof_Cov_Mult_etabin_ptbin_Pr"), coll.multNTracksPV(), ietaA, ipt, covCA);
3635-
// }
3630+
if (std::isfinite(covCA)) {
3631+
histos.fill(HIST("Prof_Cov_Cent_etabin_ptbin_Pr"), cent, ietaA, ipt, covCA);
3632+
histos.fill(HIST("Prof_Cov_Mult_etabin_ptbin_Pr"), coll.multNTracksPV(), ietaA, ipt, covCA);
3633+
}
36363634
if (std::isfinite(covFT0A)) {
36373635
histos.fill(HIST("Prof_CovFT0A_Cent_etabin_ptbin_Pr"), cent, ietaA, ipt, covFT0A);
36383636
histos.fill(HIST("Prof_CovFT0A_Mult_etabin_ptbin_Pr"), coll.multNTracksPV(), ietaA, ipt, covFT0A);

0 commit comments

Comments
 (0)