From b3a6c8c8b052f5902bb0ac95a80a2953136fe661 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Sun, 2 Jul 2023 19:12:47 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGLF/TableProducer/lambdakzeromcfinder.cxx | 41 ++++++++++----------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/PWGLF/TableProducer/lambdakzeromcfinder.cxx b/PWGLF/TableProducer/lambdakzeromcfinder.cxx index d6e61e67472..db3aba650a8 100644 --- a/PWGLF/TableProducer/lambdakzeromcfinder.cxx +++ b/PWGLF/TableProducer/lambdakzeromcfinder.cxx @@ -145,42 +145,42 @@ struct lambdakzeromcfinder { } // initialise search vectors - if(findGamma){ + if (findGamma) { searchedV0PDG.emplace_back(22); searchedV0PositivePDG.emplace_back(-11); searchedV0NegativePDG.emplace_back(+11); searchedV0PositiveMass.emplace_back(0.0f); searchedV0NegativeMass.emplace_back(0.0f); } - if(findK0Short){ + if (findK0Short) { searchedV0PDG.emplace_back(310); searchedV0PositivePDG.emplace_back(+211); searchedV0NegativePDG.emplace_back(-211); searchedV0PositiveMass.emplace_back(o2::constants::physics::MassPionCharged); searchedV0NegativeMass.emplace_back(o2::constants::physics::MassPionCharged); } - if(findLambda){ + if (findLambda) { searchedV0PDG.emplace_back(3122); searchedV0PositivePDG.emplace_back(+2212); searchedV0NegativePDG.emplace_back(-211); searchedV0PositiveMass.emplace_back(o2::constants::physics::MassProton); searchedV0NegativeMass.emplace_back(o2::constants::physics::MassPionCharged); } - if(findAntiLambda){ + if (findAntiLambda) { searchedV0PDG.emplace_back(-3122); searchedV0PositivePDG.emplace_back(+211); searchedV0NegativePDG.emplace_back(-2212); searchedV0PositiveMass.emplace_back(o2::constants::physics::MassPionCharged); searchedV0NegativeMass.emplace_back(o2::constants::physics::MassProton); } - if(findHyperTriton){ + if (findHyperTriton) { searchedV0PDG.emplace_back(+1010010030); searchedV0PositivePDG.emplace_back(+1000020030); searchedV0NegativePDG.emplace_back(-211); searchedV0PositiveMass.emplace_back(o2::constants::physics::MassHelium3); searchedV0NegativeMass.emplace_back(o2::constants::physics::MassPionCharged); } - if(findAntiHyperTriton){ + if (findAntiHyperTriton) { searchedV0PDG.emplace_back(-1010010030); searchedV0PositivePDG.emplace_back(+211); searchedV0NegativePDG.emplace_back(-1000020030); @@ -409,7 +409,6 @@ struct lambdakzeromcfinder { } } - // this improved process function does not start from MC particles, as that would be too costly // rather, it starts from appropriately detected prongs of the correct charge. Partition posTracks = aod::track::signed1Pt > 0.0f; @@ -422,43 +421,43 @@ struct lambdakzeromcfinder { v0negativeIndex.clear(); v0mcLabel.clear(); - //This will take place once per TF! + // This will take place once per TF! for (auto& posTrack : posTracks) { //<- no grouping, deliberately int v0pdgIndex = -1; int motherIndex = -1; - if(!posTrack.has_mcParticle()) + if (!posTrack.has_mcParticle()) continue; auto posParticle = posTrack.mcParticle_as(); - if(!posParticle.has_mothers()) + if (!posParticle.has_mothers()) continue; for (auto& posMotherParticle : posParticle.mothers_as()) { // determine if mother particle satisfies any condition curently being searched for - for(uint16_t ipdg = 0; ipdg(); - if(!negParticle.has_mothers()) + if (!negParticle.has_mothers()) continue; for (auto& negMotherParticle : negParticle.mothers_as()) { - if(negMotherParticle.globalIndex() == posMotherParticle.globalIndex() && negMotherParticle.pdgCode() == searchedV0NegativePDG[v0pdgIndex]){ + if (negMotherParticle.globalIndex() == posMotherParticle.globalIndex() && negMotherParticle.pdgCode() == searchedV0NegativePDG[v0pdgIndex]) { // de-reference best collision int bestCollisionIndex = -1; auto mcCollision = posParticle.mcCollision_as>(); - if( mcCollision.hasRecoCollision() ) + if (mcCollision.hasRecoCollision()) bestCollisionIndex = mcCollision.bestCollisionIndex(); - + // place in list to be passed along, please v0collisionId.emplace_back(bestCollisionIndex); v0positiveIndex.emplace_back(posTrack.globalIndex());