@@ -414,14 +414,17 @@ struct HfTaskCharmHadronsV0FemtoDream {
414414 for (auto const & [p1, p2] : combinations (CombinationsFullIndexPolicy (sliceV01, sliceCharmHad))) {
415415
416416 if constexpr (Channel == DecayChannel::D0ToPiK) {
417- if (p1.childrenIds ()[0 ] == p2.prong0Id () || p1.childrenIds ()[0 ] == p2.prong1Id () || p1.childrenIds ()[1 ] == p2.prong0Id () || p1.childrenIds ()[1 ] == p2.prong1Id ())
417+ if (p1.childrenIds ()[0 ] == p2.prong0Id () || p1.childrenIds ()[0 ] == p2.prong1Id () || p1.childrenIds ()[1 ] == p2.prong0Id () || p1.childrenIds ()[1 ] == p2.prong1Id ()) {
418418 continue ;
419+ }
419420 } else if constexpr (Channel == DecayChannel::LcToPKPi || Channel == DecayChannel::DplusToPiKPi) {
420- if (p1.childrenIds ()[0 ] == p2.prong0Id () || p1.childrenIds ()[0 ] == p2.prong1Id () || p1.childrenIds ()[0 ] == p2.prong2Id () || p1.childrenIds ()[1 ] == p2.prong0Id () || p1.childrenIds ()[1 ] == p2.prong1Id () || p1.childrenIds ()[1 ] == p2.prong2Id ())
421+ if (p1.childrenIds ()[0 ] == p2.prong0Id () || p1.childrenIds ()[0 ] == p2.prong1Id () || p1.childrenIds ()[0 ] == p2.prong2Id () || p1.childrenIds ()[1 ] == p2.prong0Id () || p1.childrenIds ()[1 ] == p2.prong1Id () || p1.childrenIds ()[1 ] == p2.prong2Id ()) {
421422 continue ;
423+ }
422424 } else if constexpr (Channel == DecayChannel::DstarToD0Pi) {
423- if (p1.childrenIds ()[0 ] == p2.prong0Id () || p1.childrenIds ()[0 ] == p2.prong1Id () || p1.childrenIds ()[0 ] == p2.prong2Id () || p1.childrenIds ()[1 ] == p2.prong0Id () || p1.childrenIds ()[1 ] == p2.prong1Id () || p1.childrenIds ()[1 ] == p2.prong2Id ())
425+ if (p1.childrenIds ()[0 ] == p2.prong0Id () || p1.childrenIds ()[0 ] == p2.prong1Id () || p1.childrenIds ()[0 ] == p2.prong2Id () || p1.childrenIds ()[1 ] == p2.prong0Id () || p1.childrenIds ()[1 ] == p2.prong1Id () || p1.childrenIds ()[1 ] == p2.prong2Id ()) {
424426 continue ;
427+ }
425428 }
426429 // v0 daughters selection
427430 const auto & posChild = femtoParts.iteratorAt (p1.index () - 2 );
@@ -451,10 +454,11 @@ struct HfTaskCharmHadronsV0FemtoDream {
451454 }
452455
453456 float invMassV0 = 0 .f ;
454- if (p1.sign () > 0 )
457+ if (p1.sign () > 0 ) {
455458 invMassV0 = p1.mLambda ();
456- else
459+ } else {
457460 invMassV0 = p1.mAntiLambda ();
461+ }
458462
459463 float chargeV0 = 0 .;
460464 if ((p1.cut () & p1.sign ()) == CutBitChargePositive) {
@@ -541,10 +545,11 @@ struct HfTaskCharmHadronsV0FemtoDream {
541545 }
542546
543547 float invMassV0 = 0 .f ;
544- if (p1.sign () > 0 )
548+ if (p1.sign () > 0 ) {
545549 invMassV0 = p1.mLambda ();
546- else
550+ } else {
547551 invMassV0 = p1.mAntiLambda ();
552+ }
548553
549554 float chargeV0 = 0 .;
550555 if ((p1.cut () & p1.sign ()) == CutBitChargePositive) {
@@ -721,8 +726,9 @@ struct HfTaskCharmHadronsV0FemtoDream {
721726 FDV0Particles const & parts,
722727 CharmPart& charmPart)
723728 {
724- if (!mixSetting.doMixEvent )
729+ if (!mixSetting.doMixEvent ) {
725730 return ;
731+ }
726732 auto run = [&](auto & v0Part) {
727733 switch (mixSetting.mixingBinPolicy ) {
728734 case femtodreamcollision::kMult :
@@ -739,12 +745,13 @@ struct HfTaskCharmHadronsV0FemtoDream {
739745 }
740746 };
741747
742- if (v0Sel.pdgCodeV0 == kLambda0 )
748+ if (v0Sel.pdgCodeV0 == kLambda0 ) {
743749 run (partitionLambda);
744- else if (v0Sel.pdgCodeV0 == kK0Short )
750+ } else if (v0Sel.pdgCodeV0 == kK0Short ) {
745751 run (partitionK0Short);
746- else
752+ } else {
747753 LOG (fatal) << " Unsupported V0 PDG: " << v0Sel.pdgCodeV0 << " (allowed: 3122, 310) for mixed-events" ;
754+ }
748755 }
749756
750757 void processDataLcV0 (FilteredCollisions const & cols,
0 commit comments