Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Common/Core/RecoDecay.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <vector> // std::vector

#include "CommonConstants/MathConstants.h"
#include "TMCProcess.h" // for VMC Particle Production Process
#include "TMCProcess.h" // for VMC Particle Production Process

/// Base class for calculating properties of reconstructed decays
///
Expand Down Expand Up @@ -615,7 +615,7 @@ class RecoDecay
return;
}
// check if the particle comes from a decay process
if(particle.getProcess() != kPDecay){
if (particle.getProcess() != kPDecay) {
return;
}
bool isFinal = false; // Flag to indicate the end of recursion
Expand Down Expand Up @@ -712,7 +712,7 @@ class RecoDecay
}
auto particleI = arrDaughters[iProng].mcParticle(); // ith daughter particle
// check if the daughter comes from the decay process of the mother
if(particleI.getProcess() != kPDecay){
if (particleI.getProcess() != kPDecay) {
continue;
}
arrDaughtersIndex[iProng] = particleI.globalIndex();
Expand All @@ -728,15 +728,15 @@ class RecoDecay
}
// Printf("MC Rec: Good mother: %d", indexMother);
auto particleMother = particlesMC.rawIteratorAt(indexMother - particlesMC.offset());
dauCounter = 0; //reset daughter counter for the new particleMother
dauCounter = 0; // reset daughter counter for the new particleMother
// Check the daughter indices.
if (!particleMother.has_daughters()) {
// Printf("MC Rec: Rejected: bad daughter index range: %d-%d", particleMother.daughtersIds().front(), particleMother.daughtersIds().back());
return -1;
}
// Check that the number of direct daughters coming from the dacay is not larger than the number of expected final daughters.
for(const auto& dau : particleMother.daughters_as<aod::McParticles>()){
if(dau.getProcess() == kPDecay){
for (const auto& dau : particleMother.daughters_as<aod::McParticles>()) {
if (dau.getProcess() == kPDecay) {
dauCounter++;
}
}
Expand Down Expand Up @@ -860,8 +860,8 @@ class RecoDecay
return false;
}
// Check that the number of direct daughters coming from the dacay is not larger than the number of expected final daughters.
for(const auto& dau : candidate.daughters_as<aod::McParticles>()){
if(dau.getProcess() == kPDecay){
for (const auto& dau : candidate.daughters_as<aod::McParticles>()) {
if (dau.getProcess() == kPDecay) {
dauCounter++;
}
}
Expand Down