Skip to content

Commit 8c56fcf

Browse files
committed
fixing clang issue
1 parent 7598257 commit 8c56fcf

File tree

1 file changed

+46
-45
lines changed

1 file changed

+46
-45
lines changed

PWGCF/EbyEFluctuations/Tasks/radialFlowDecorr.cxx

Lines changed: 46 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,9 @@ struct RadialFlowDecorr {
385385
histos.fill(HIST("h3DnsigmaTpcVsPtAftCut_Cent_PrAll"), cent, pt, tpcPr);
386386
histos.fill(HIST("h3DnsigmaTofVsPtAftCut_Cent_PrAll"), cent, pt, tofPr);
387387
histos.fill(HIST("h3DnsigmaTpcVsTofAftCut_Cent_PrAll"), cent, tofPr, tpcPr);
388-
} else
388+
} else {
389389
return;
390+
}
390391
}
391392

392393
// Returns: 0 = Unknown/Reject, 1 = Pion, 2 = Kaon, 3 = Proton
@@ -720,9 +721,9 @@ struct RadialFlowDecorr {
720721
}
721722
offsetFT0 = ccdb->getForTimeStamp<std::vector<o2::detectors::AlignParam>>("FT0/Calib/Align", timestamp);
722723
if (!offsetFT0) {
723-
LOGF(fatal, "Failed to load valid FT0 alignment from CCDB!");
724-
return;
725-
}
724+
LOGF(fatal, "Failed to load valid FT0 alignment from CCDB!");
725+
return;
726+
}
726727
mLastTimestamp = timestamp;
727728
LOGF(info, "Successfully loaded new alignment parameters for timestamp %llu", timestamp);
728729
LOGF(info, "Offset for FT0A: x = %.3f y = %.3f z = %.3f\n", (*offsetFT0)[0].getX(), (*offsetFT0)[0].getY(), (*offsetFT0)[0].getZ());
@@ -1459,11 +1460,11 @@ struct RadialFlowDecorr {
14591460

14601461
histos.fill(HIST("Hist2D_globalTracks_PVTracks"), multPV, trackSlice.size());
14611462
histos.fill(HIST("Hist2D_cent_nch"), trackSlice.size(), cent);
1462-
for (const auto& track : trackSlice) {
1463-
if (!isTrackSelected(track))
1464-
continue;
1465-
fillNSigmaBefCut(track, cent);
1466-
}
1463+
for (const auto& track : trackSlice) {
1464+
if (!isTrackSelected(track))
1465+
continue;
1466+
fillNSigmaBefCut(track, cent);
1467+
}
14671468
}
14681469
}
14691470
}
@@ -1511,16 +1512,16 @@ struct RadialFlowDecorr {
15111512
float pt = particle.pt(), eta = particle.eta();
15121513

15131514
bool isSpecies[KNsp] = {
1514-
true, // kInclusiveIdx
1515-
pdg == -KPiPlus, // kPiMinusIdx
1516-
pdg == KPiPlus, // kPiPlusIdx
1517-
absPdg == KPiPlus, // kPiAllIdx
1518-
pdg == -KKPlus, // kKaMinusIdx
1519-
pdg == KKPlus, // kKaPlusIdx
1520-
absPdg == KKPlus, // kKaAllIdx
1521-
pdg == -KProton, // kAntiPrIdx
1522-
pdg == KProton, // kPrIdx
1523-
absPdg == KProton // kPrAllIdx
1515+
true, // kInclusiveIdx
1516+
pdg == -KPiPlus, // kPiMinusIdx
1517+
pdg == KPiPlus, // kPiPlusIdx
1518+
absPdg == KPiPlus, // kPiAllIdx
1519+
pdg == -KKPlus, // kKaMinusIdx
1520+
pdg == KKPlus, // kKaPlusIdx
1521+
absPdg == KKPlus, // kKaAllIdx
1522+
pdg == -KProton, // kAntiPrIdx
1523+
pdg == KProton, // kPrIdx
1524+
absPdg == KProton // kPrAllIdx
15241525
};
15251526

15261527
histos.fill(HIST("h3_AllPrimary"), multPV, pt, eta);
@@ -1575,12 +1576,12 @@ struct RadialFlowDecorr {
15751576
if (track.has_mcParticle()) {
15761577
auto mcP = track.mcParticle();
15771578
if (mcP.isPhysicalPrimary()) {
1578-
histos.fill(HIST("ptResolution"), mcP.pt(), (pt - mcP.pt()) / mcP.pt());
1579-
histos.fill(HIST("etaResolution"), mcP.eta(), eta - mcP.eta());
1580-
histos.fill(HIST("etaTruthReco"), mcP.eta(), eta);
1581-
histos.fill(HIST("vzResolution"), mcP.vz(), (vz - mcP.vz()) / mcP.vz());
1582-
histos.fill(HIST("TruthTracKVz"), mcP.vz(), vz);
1583-
histos.fill(HIST("h3_RecoMatchedToPrimary"), multPV, mcP.pt(), mcP.eta());
1579+
histos.fill(HIST("ptResolution"), mcP.pt(), (pt - mcP.pt()) / mcP.pt());
1580+
histos.fill(HIST("etaResolution"), mcP.eta(), eta - mcP.eta());
1581+
histos.fill(HIST("etaTruthReco"), mcP.eta(), eta);
1582+
histos.fill(HIST("vzResolution"), mcP.vz(), (vz - mcP.vz()) / mcP.vz());
1583+
histos.fill(HIST("TruthTracKVz"), mcP.vz(), vz);
1584+
histos.fill(HIST("h3_RecoMatchedToPrimary"), multPV, mcP.pt(), mcP.eta());
15841585
} else {
15851586
histos.fill(HIST("h3_RecoUnMatchedToPrimary_Secondary"), multPV, pt, eta);
15861587
}
@@ -1896,16 +1897,16 @@ struct RadialFlowDecorr {
18961897
int absPdg = std::abs(pdgCode);
18971898

18981899
bool isSpecies[KNsp] = {
1899-
true, // kInclusiveIdx
1900-
pdgCode == -KPiPlus, // kPiMinusIdx
1901-
pdgCode == KPiPlus, // kPiPlusIdx
1902-
absPdg == KPiPlus, // kPiAllIdx
1903-
pdgCode == -KKPlus, // kKaMinusIdx
1904-
pdgCode == KKPlus, // kKaPlusIdx
1905-
absPdg == KKPlus, // kKaAllIdx
1906-
pdgCode == -KProton, // kAntiPrIdx
1907-
pdgCode == KProton, // kPrIdx
1908-
absPdg == KProton // kPrAllIdx
1900+
true, // kInclusiveIdx
1901+
pdgCode == -KPiPlus, // kPiMinusIdx
1902+
pdgCode == KPiPlus, // kPiPlusIdx
1903+
absPdg == KPiPlus, // kPiAllIdx
1904+
pdgCode == -KKPlus, // kKaMinusIdx
1905+
pdgCode == KKPlus, // kKaPlusIdx
1906+
absPdg == KKPlus, // kKaAllIdx
1907+
pdgCode == -KProton, // kAntiPrIdx
1908+
pdgCode == KProton, // kPrIdx
1909+
absPdg == KProton // kPrAllIdx
19091910
};
19101911

19111912
for (int ieta = 0; ieta < KNEta; ++ieta) {
@@ -2269,16 +2270,16 @@ struct RadialFlowDecorr {
22692270
int absPdg = std::abs(pdgCode);
22702271

22712272
bool isSpecies[KNsp] = {
2272-
true, // kInclusiveIdx
2273-
pdgCode == -KPiPlus, // kPiMinusIdx
2274-
pdgCode == KPiPlus, // kPiPlusIdx
2275-
absPdg == KPiPlus, // kPiAllIdx
2276-
pdgCode == -KKPlus, // kKaMinusIdx
2277-
pdgCode == KKPlus, // kKaPlusIdx
2278-
absPdg == KKPlus, // kKaAllIdx
2279-
pdgCode == -KProton, // kAntiPrIdx
2280-
pdgCode == KProton, // kPrIdx
2281-
absPdg == KProton // kPrAllIdx
2273+
true, // kInclusiveIdx
2274+
pdgCode == -KPiPlus, // kPiMinusIdx
2275+
pdgCode == KPiPlus, // kPiPlusIdx
2276+
absPdg == KPiPlus, // kPiAllIdx
2277+
pdgCode == -KKPlus, // kKaMinusIdx
2278+
pdgCode == KKPlus, // kKaPlusIdx
2279+
absPdg == KKPlus, // kKaAllIdx
2280+
pdgCode == -KProton, // kAntiPrIdx
2281+
pdgCode == KProton, // kPrIdx
2282+
absPdg == KProton // kPrAllIdx
22822283
};
22832284

22842285
for (int ieta = 0; ieta < KNEta; ++ieta) {

0 commit comments

Comments
 (0)