From f0e24bfacdf8d4134a5888ba9209ff8d7d1a4de7 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Tue, 6 Aug 2024 13:57:29 +0000 Subject: [PATCH] Please consider the following formatting changes --- ALICE3/DataModel/A3DecayFinderTables.h | 4 +-- ALICE3/TableProducer/OTF/onTheFlyTracker.cxx | 2 +- .../TableProducer/alice3-decaypreselector.cxx | 6 ++-- ALICE3/TableProducer/alice3-multicharm.cxx | 29 +++++++++---------- 4 files changed, 20 insertions(+), 21 deletions(-) diff --git a/ALICE3/DataModel/A3DecayFinderTables.h b/ALICE3/DataModel/A3DecayFinderTables.h index 03183136f49..05eb5ad9307 100644 --- a/ALICE3/DataModel/A3DecayFinderTables.h +++ b/ALICE3/DataModel/A3DecayFinderTables.h @@ -44,8 +44,8 @@ enum a3selectionBit : uint32_t { kDCAxy = 0, kTruePiMinusFromLc, kTrueKaMinusFromLc, kTruePrMinusFromLc, - kTrueXiFromXiC, - kTruePiFromXiC, + kTrueXiFromXiC, + kTruePiFromXiC, kTruePiFromXiCC }; namespace o2::aod diff --git a/ALICE3/TableProducer/OTF/onTheFlyTracker.cxx b/ALICE3/TableProducer/OTF/onTheFlyTracker.cxx index 3f4dd0de8eb..c524000915a 100644 --- a/ALICE3/TableProducer/OTF/onTheFlyTracker.cxx +++ b/ALICE3/TableProducer/OTF/onTheFlyTracker.cxx @@ -1126,7 +1126,7 @@ struct OnTheFlyTracker { TracksAlice3(false); } - for(const auto& cascade : cascadesAlice3){ + for (const auto& cascade : cascadesAlice3) { upgradeCascades( collisions.lastIndex(), // now we know the collision index -> populate table cascade.cascadeTrackId, diff --git a/ALICE3/TableProducer/alice3-decaypreselector.cxx b/ALICE3/TableProducer/alice3-decaypreselector.cxx index c256524241d..6b41d361468 100644 --- a/ALICE3/TableProducer/alice3-decaypreselector.cxx +++ b/ALICE3/TableProducer/alice3-decaypreselector.cxx @@ -187,11 +187,11 @@ struct alice3decaypreselector { bitoff(selectionMap[track.globalIndex()], kTruePiMinusFromLc); // XiCC daughters - if (!checkPDG(track, 4232, 211)) //4422 -> 4232 -211 + if (!checkPDG(track, 4232, 211)) // 4422 -> 4232 -211 bitoff(selectionMap[track.globalIndex()], kTruePiFromXiC); - if (!checkPDG(track, 4232, 3312)) //4232 -> 3312 211 211 + if (!checkPDG(track, 4232, 3312)) // 4232 -> 3312 211 211 bitoff(selectionMap[track.globalIndex()], kTrueXiFromXiC); - if (!checkPDG(track, 4232, 211)) //4232 -> 3312 211 211 + if (!checkPDG(track, 4232, 211)) // 4232 -> 3312 211 211 bitoff(selectionMap[track.globalIndex()], kTruePiFromXiC); } } diff --git a/ALICE3/TableProducer/alice3-multicharm.cxx b/ALICE3/TableProducer/alice3-multicharm.cxx index 33f5721fe3c..458f97da85f 100644 --- a/ALICE3/TableProducer/alice3-multicharm.cxx +++ b/ALICE3/TableProducer/alice3-multicharm.cxx @@ -151,9 +151,9 @@ struct alice3multicharm { thisCandidate.xyz[i] = vtx[i]; } - // compute cov mat - for (int ii=0; ii<21; ii++) - thisCandidate.parentTrackCovMatrix[ii] = 0.0f; + // compute cov mat + for (int ii = 0; ii < 21; ii++) + thisCandidate.parentTrackCovMatrix[ii] = 0.0f; std::array covA = {0}; std::array covB = {0}; @@ -163,7 +163,7 @@ struct alice3multicharm { const int momInd[6] = {9, 13, 14, 18, 19, 20}; // cov matrix elements for momentum component for (int i = 0; i < 6; i++) { int j = momInd[i]; - thisCandidate.parentTrackCovMatrix[j] = covA[j]+covB[j]; + thisCandidate.parentTrackCovMatrix[j] = covA[j] + covB[j]; } auto covVtx = fitter.calcPCACovMatrix(); @@ -215,9 +215,9 @@ struct alice3multicharm { thisCandidate.xyz[i] = vtx[i]; } - // compute cov mat - for (int ii=0; ii<21; ii++) - thisCandidate.parentTrackCovMatrix[ii] = 0.0f; + // compute cov mat + for (int ii = 0; ii < 21; ii++) + thisCandidate.parentTrackCovMatrix[ii] = 0.0f; std::array covA = {0}; std::array covB = {0}; @@ -229,7 +229,7 @@ struct alice3multicharm { const int momInd[6] = {9, 13, 14, 18, 19, 20}; // cov matrix elements for momentum component for (int i = 0; i < 6; i++) { int j = momInd[i]; - thisCandidate.parentTrackCovMatrix[j] = covA[j]+covB[j]+covC[j]; + thisCandidate.parentTrackCovMatrix[j] = covA[j] + covB[j] + covC[j]; } auto covVtx = fitter3.calcPCACovMatrix(); @@ -331,7 +331,7 @@ struct alice3multicharm { auto tracksPiFromXiCCgrouped = tracksPiFromXiCC->sliceByCached(aod::track::collisionId, collision.globalIndex(), cache); if (doDCAplots) { - for (auto const& cascade : cascades){ + for (auto const& cascade : cascades) { auto track = cascade.cascadeTrack_as(); // de-reference cascade track histos.fill(HIST("h2dDCAxyVsPtXiFromXiC"), track.pt(), track.dcaXY() * 1e+4); } @@ -351,9 +351,9 @@ struct alice3multicharm { for (auto const& pi2c : tracksPiFromXiCgrouped) { if (mcSameMotherCheck && !checkSameMother(xi, pi2c)) continue; - // if I am here, it means this is a triplet to be considered for XiC vertexing. - // will now attempt to build a three-body decay candidate with these three track rows. - if(!buildDecayCandidateThreeBody(xi, pi1c, pi2c, 1.32171, 0.139570, 0.139570)) + // if I am here, it means this is a triplet to be considered for XiC vertexing. + // will now attempt to build a three-body decay candidate with these three track rows. + if (!buildDecayCandidateThreeBody(xi, pi1c, pi2c, 1.32171, 0.139570, 0.139570)) continue; // failed at building candidate const std::array momentumC = { @@ -365,10 +365,10 @@ struct alice3multicharm { histos.fill(HIST("hMassXiC"), thisCandidate.mass); - // attempt XiCC finding + // attempt XiCC finding for (auto const& picc : tracksPiFromXiCCgrouped) { o2::track::TrackParCov piccTrack = getTrackParCov(picc); - if(!buildDecayCandidateTwoBody(xicTrack, piccTrack, 2.46793, 0.139570)) + if (!buildDecayCandidateTwoBody(xicTrack, piccTrack, 2.46793, 0.139570)) continue; // failed at building candidate histos.fill(HIST("hMassXiCC"), thisCandidate.mass); @@ -379,7 +379,6 @@ struct alice3multicharm { } //*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+* - //*>-~-<*>-~-<*>-~-<*>-~-<*>-~-<*>-~-<*>-~-<*>-~-<* PROCESS_SWITCH(alice3multicharm, processGenerated, "fill MC-only histograms", true); PROCESS_SWITCH(alice3multicharm, processFindXiCC, "find XiCC mesons", true);