Skip to content

Commit b5d2e4f

Browse files
committed
Fix clang error
1 parent 9cedb5a commit b5d2e4f

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

PWGLF/TableProducer/Resonances/f1protonreducedtable.cxx

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ struct f1protonreducedtable {
163163
{"hInvMassf1kstar", "hInvMassf1kstar", {HistType::kTH3F, {{400, 1.1f, 1.9f}, {100, 0.0f, 10.0f}, {8, 0.0f, 0.8f}}}},
164164
{"hkstarDist", "hkstarDist", {HistType::kTH1F, {{300, 0.0f, 3.0f}}}},
165165
{"hDCAxy", "hDCAxy", {HistType::kTH3F, {{100, -0.05f, 0.05f}, {5, -2.5, 2.5}, {40, 0.0, 4.0}}}},
166-
{"hDCAz", "hDCAz", {HistType::kTH3F, {{100, -0.05f, 0.05f}, {2, 0, 2}, {40, 0.0, 4.0}}}},
166+
{"hDCAz", "hDCAz", {HistType::kTH3F, {{100, -0.05f, 0.05f}, {2, 0, 2}, {40, 0.0, 4.0}}}},
167167
{"hPhi", "hPhi", {HistType::kTH1F, {{1400, -7.0f, 7.0f}}}},
168168
{"hPhiSphero", "hPhiSphero", {HistType::kTH1F, {{1400, -7.0f, 7.0f}}}},
169169
{"hEta", "hEta", {HistType::kTH1F, {{20, -1.0f, 1.0f}}}},
@@ -369,13 +369,12 @@ struct f1protonreducedtable {
369369
return false;
370370
}
371371

372-
373372
const float nsTPC = nsigmaTPC;
374373
const float nsTOF = nsigmaTOF;
375374
const float comb = std::sqrt(nsTPC * nsTPC + nsTOF * nsTOF);
376375
return (comb < 2.5);
377376
}
378-
377+
379378
template <typename Collision, typename V0>
380379
bool SelectionV0(Collision const& collision, V0 const& candidate)
381380
{
@@ -987,23 +986,23 @@ struct f1protonreducedtable {
987986
qaRegistry.fill(HIST("hEventstat"), 0.5);
988987
if (keepEventF1Proton) {
989988
for (auto iproton = protons.begin(); iproton != protons.end(); ++iproton) {
990-
auto i6 = std::distance(protons.begin(), iproton);
991-
ProtonVectorDummy2 = protons.at(i6);
992-
if (std::abs(ProtonDcaxy.at(i6)) < 0.05 && std::abs(ProtonDcaz.at(i6)) < 0.05) {
993-
if (ProtonTOFHit.at(i6) && ProtonVectorDummy2.P() > 0.7) {
994-
qaRegistry.fill(HIST("hNsigmaPtprotonTPC"),ProtonTPCNsigma.at(i6), ProtonTOFNsigma.at(i6), ProtonVectorDummy2.Pt());
995-
}
996-
if (ProtonVectorDummy2.P() < 0.7) {
997-
qaRegistry.fill(HIST("hNsigmaPtprotonTPC"),ProtonTPCNsigma.at(i6), 4.999, ProtonVectorDummy2.Pt());
998-
}
999-
}
1000-
if (passProtonPID(ProtonTPCNsigma.at(i6), ProtonTOFNsigma.at(i6), ProtonTOFHit.at(i6), ProtonVectorDummy2)) {
1001-
qaRegistry.fill(HIST("hDCAxy"), ProtonDcaxy.at(i6), ProtonCharge.at(i6), ProtonVectorDummy2.Pt());
1002-
qaRegistry.fill(HIST("hDCAz"), ProtonDcaz.at(i6), ProtonCharge.at(i6), ProtonVectorDummy2.Pt());
1003-
}
989+
auto i6 = std::distance(protons.begin(), iproton);
990+
ProtonVectorDummy2 = protons.at(i6);
991+
if (std::abs(ProtonDcaxy.at(i6)) < 0.05 && std::abs(ProtonDcaz.at(i6)) < 0.05) {
992+
if (ProtonTOFHit.at(i6) && ProtonVectorDummy2.P() > 0.7) {
993+
qaRegistry.fill(HIST("hNsigmaPtprotonTPC"), ProtonTPCNsigma.at(i6), ProtonTOFNsigma.at(i6), ProtonVectorDummy2.Pt());
994+
}
995+
if (ProtonVectorDummy2.P() < 0.7) {
996+
qaRegistry.fill(HIST("hNsigmaPtprotonTPC"), ProtonTPCNsigma.at(i6), 4.999, ProtonVectorDummy2.Pt());
997+
}
998+
}
999+
if (passProtonPID(ProtonTPCNsigma.at(i6), ProtonTOFNsigma.at(i6), ProtonTOFHit.at(i6), ProtonVectorDummy2)) {
1000+
qaRegistry.fill(HIST("hDCAxy"), ProtonDcaxy.at(i6), ProtonCharge.at(i6), ProtonVectorDummy2.Pt());
1001+
qaRegistry.fill(HIST("hDCAz"), ProtonDcaz.at(i6), ProtonCharge.at(i6), ProtonVectorDummy2.Pt());
1002+
}
10041003
}
10051004
}
1006-
1005+
10071006
if (numberF1 > 0 && (f1resonance.size() == f1signal.size()) && (f1resonance.size() == f1kaonkshortmass.size()) && (f1resonance.size() == f1resonanced1.size()) && (f1resonance.size() == f1resonanced2.size()) && (f1resonance.size() == f1resonanced3.size())) {
10081007
qaRegistry.fill(HIST("hEventstat"), 1.5);
10091008
if (keepEventF1Proton) {

PWGLF/Tasks/Resonances/f1protoncorrelation.cxx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,8 @@ struct f1protoncorrelation {
977977
Kaon.SetXYZM(f1track.f1d2Px(), f1track.f1d2Py(), f1track.f1d2Pz(), 0.493);
978978
Kshort.SetXYZM(f1track.f1d3Px(), f1track.f1d3Py(), f1track.f1d3Pz(), 0.497);
979979
KaonKshortPair = Kaon + Kshort;
980-
if (F1.Pt() < lowPtF1 || F1.Pt() > 50.0) continue;
980+
if (F1.Pt() < lowPtF1 || F1.Pt() > 50.0)
981+
continue;
981982
std::vector<int> activeSys;
982983
activeSys.reserve((size_t)nSysTotal);
983984

@@ -1055,7 +1056,7 @@ struct f1protoncorrelation {
10551056
histos.fill(HIST("hPhaseSpaceProtonKaonSame"), Proton.Eta() - Kaon.Eta(), PhiAtSpecificRadiiTPC(Proton, Kaon, protontrack.protonCharge(), kaonCharge, bz, bz), relative_momentum); // Phase Space Proton kaon
10561057
if (pionCharge == protontrack.protonCharge())
10571058
histos.fill(HIST("hPhaseSpaceProtonPionSame"), Proton.Eta() - Pion.Eta(), PhiAtSpecificRadiiTPC(Proton, Pion, protontrack.protonCharge(), pionCharge, bz, bz), relative_momentum); // Phase Space Proton Pion
1058-
histos.fill(HIST("h2SameEventf1pptCorrelation"), F1.M(), relative_momentum, Proton.Pt());
1059+
histos.fill(HIST("h2SameEventf1pptCorrelation"), F1.M(), relative_momentum, Proton.Pt());
10591060
}
10601061
activePair.push_back(sysId);
10611062
}
@@ -1119,7 +1120,8 @@ struct f1protoncorrelation {
11191120
Kshort.SetXYZM(t1.f1d3Px(), t1.f1d3Py(), t1.f1d3Pz(), 0.497);
11201121
KaonKshortPair = Kaon + Kshort;
11211122
Proton.SetXYZM(t2.protonPx(), t2.protonPy(), t2.protonPz(), 0.938);
1122-
if (F1.Pt() < lowPtF1 || F1.Pt() > 50.0) continue;
1123+
if (F1.Pt() < lowPtF1 || F1.Pt() > 50.0)
1124+
continue;
11231125
auto relative_momentum = getkstar(F1, Proton);
11241126
auto mT = getmT(F1, Proton);
11251127
// sys list for this (F1, p) pair

0 commit comments

Comments
 (0)