From f1390eb71f3e93ccedd4bd8ca043e479b456995a Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Tue, 26 Nov 2024 17:57:53 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGHF/TableProducer/candidateCreator2Prong.cxx | 4 ++-- PWGHF/TableProducer/candidateCreator3Prong.cxx | 17 ++++++++--------- PWGHF/TableProducer/candidateCreatorDstar.cxx | 7 ++----- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/PWGHF/TableProducer/candidateCreator2Prong.cxx b/PWGHF/TableProducer/candidateCreator2Prong.cxx index 2e1e4ac7ffc..def3cc4cd61 100644 --- a/PWGHF/TableProducer/candidateCreator2Prong.cxx +++ b/PWGHF/TableProducer/candidateCreator2Prong.cxx @@ -724,7 +724,7 @@ struct HfCandidateCreator2ProngExpressions { int8_t sign = 0; int8_t flag = 0; int8_t origin = 0; - int8_t nKinkedTracks = 0; + int8_t nKinkedTracks = 0; // Match reconstructed candidates. // Spawned table can be used directly @@ -753,7 +753,7 @@ struct HfCandidateCreator2ProngExpressions { std::vector idxBhadMothers{}; // D0(bar) → π± K∓ - if (matchKinkedDecayTopology){ + if (matchKinkedDecayTopology) { indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kD0, std::array{+kPiPlus, -kKPlus}, true, &sign, 1, &nKinkedTracks); } else { indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kD0, std::array{+kPiPlus, -kKPlus}, true, &sign); diff --git a/PWGHF/TableProducer/candidateCreator3Prong.cxx b/PWGHF/TableProducer/candidateCreator3Prong.cxx index 6abfb67b34a..8be0fa072e9 100644 --- a/PWGHF/TableProducer/candidateCreator3Prong.cxx +++ b/PWGHF/TableProducer/candidateCreator3Prong.cxx @@ -458,7 +458,6 @@ struct HfCandidateCreator3ProngExpressions { o2::framework::Configurable rejectBackground{"rejectBackground", true, "Reject particles from background events"}; o2::framework::Configurable matchKinkedDecayTopology{"matchKinkedDecayTopology", true, "Match also candidates with tracks that decay with kinked topology"}; - bool createDplus{false}; bool createDs{false}; bool createLc{false}; @@ -568,9 +567,9 @@ struct HfCandidateCreator3ProngExpressions { // D± → π± K∓ π± if (createDplus) { - if (matchKinkedDecayTopology){ + if (matchKinkedDecayTopology) { indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kDPlus, std::array{+kPiPlus, -kKPlus, +kPiPlus}, true, &sign, 2, &nKinkedTracks); - } else{ + } else { indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kDPlus, std::array{+kPiPlus, -kKPlus, +kPiPlus}, true, &sign, 2); } if (indexRec > -1) { @@ -581,14 +580,14 @@ struct HfCandidateCreator3ProngExpressions { // Ds± → K± K∓ π± and D± → K± K∓ π± if (flag == 0 && createDs) { bool isDplus = false; - if (matchKinkedDecayTopology){ + if (matchKinkedDecayTopology) { indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kDS, std::array{+kKPlus, -kKPlus, +kPiPlus}, true, &sign, 2, &nKinkedTracks); } else { indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kDS, std::array{+kKPlus, -kKPlus, +kPiPlus}, true, &sign, 2); } if (indexRec == -1) { isDplus = true; - if (matchKinkedDecayTopology){ + if (matchKinkedDecayTopology) { indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kDPlus, std::array{+kKPlus, -kKPlus, +kPiPlus}, true, &sign, 2, &nKinkedTracks); } else { indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kDPlus, std::array{+kKPlus, -kKPlus, +kPiPlus}, true, &sign, 2); @@ -618,9 +617,9 @@ struct HfCandidateCreator3ProngExpressions { // Λc± → p± K∓ π± if (flag == 0 && createLc) { - if (matchKinkedDecayTopology){ + if (matchKinkedDecayTopology) { indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kLambdaCPlus, std::array{+kProton, -kKPlus, +kPiPlus}, true, &sign, 2, &nKinkedTracks); - } else{ + } else { indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kLambdaCPlus, std::array{+kProton, -kKPlus, +kPiPlus}, true, &sign, 2); } if (indexRec > -1) { @@ -649,11 +648,11 @@ struct HfCandidateCreator3ProngExpressions { // Ξc± → p± K∓ π± if (flag == 0 && createXic) { - if (matchKinkedDecayTopology){ + if (matchKinkedDecayTopology) { indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kXiCPlus, std::array{+kProton, -kKPlus, +kPiPlus}, true, &sign, 2, &nKinkedTracks); } else { indexRec = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughters, Pdg::kXiCPlus, std::array{+kProton, -kKPlus, +kPiPlus}, true, &sign, 2); - } + } if (indexRec > -1) { flag = sign * (1 << DecayType::XicToPKPi); } diff --git a/PWGHF/TableProducer/candidateCreatorDstar.cxx b/PWGHF/TableProducer/candidateCreatorDstar.cxx index 215ab6d7480..d73d959d5e9 100644 --- a/PWGHF/TableProducer/candidateCreatorDstar.cxx +++ b/PWGHF/TableProducer/candidateCreatorDstar.cxx @@ -508,7 +508,6 @@ struct HfCandidateCreatorDstarExpressions { o2::framework::Configurable rejectBackground{"rejectBackground", true, "Reject particles from background events"}; o2::framework::Configurable matchKinkedDecayTopology{"matchKinkedDecayTopology", true, "Match also candidates with tracks that decay with kinked topology"}; - using McCollisionsNoCents = soa::Join; using McCollisionsFT0Cs = soa::Join; using McCollisionsFT0Ms = soa::Join; @@ -556,7 +555,6 @@ struct HfCandidateCreatorDstarExpressions { int8_t originDstar = 0, originD0 = 0; int8_t nKinkedTracksDstar = 0, nKinkedTracksD0 = 0; - // Match reconstructed candidates. for (const auto& rowCandidateDstar : *rowsCandidateDstar) { flagDstar = 0; @@ -590,8 +588,7 @@ struct HfCandidateCreatorDstarExpressions { } } - - if (matchKinkedDecayTopology){ + if (matchKinkedDecayTopology) { // D*± → D0(bar) π± indexRecDstar = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughtersDstar, Pdg::kDStar, std::array{+kPiPlus, +kPiPlus, -kKPlus}, true, &signDstar, 2, &nKinkedTracksDstar); // D0(bar) → π± K∓ @@ -602,7 +599,7 @@ struct HfCandidateCreatorDstarExpressions { // D0(bar) → π± K∓ indexRecD0 = RecoDecay::getMatchedMCRec(mcParticles, arrayDaughtersofD0, Pdg::kD0, std::array{+kPiPlus, -kKPlus}, true, &signD0); } - + if (indexRecDstar > -1) { flagDstar = signDstar * (BIT(aod::hf_cand_dstar::DecayType::DstarToD0Pi)); }