Skip to content

Commit 4201c4e

Browse files
committed
Fix details
1 parent 1a9e135 commit 4201c4e

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

PWGHF/HFC/Tasks/taskCharmHadronsV0FemtoDream.cxx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,9 @@ struct HfTaskCharmHadronsV0FemtoDream {
404404
if (cand.candidateSelFlag() == 1) {
405405
invMass = cand.m(std::array{MassPiPlus, MassKPlus});
406406
return invMass;
407-
} else {
408-
invMass = cand.m(std::array{MassKPlus, MassPiPlus});
409-
return invMass;
410407
}
408+
invMass = cand.m(std::array{MassKPlus, MassPiPlus});
409+
return invMass;
411410
} else if constexpr (Channel == DecayChannel::DstarToD0Pi) { // D* → D0π (PDG: 413)
412411
float mDstar = 0.f;
413412
float mD0 = 0.f;
@@ -420,9 +419,8 @@ struct HfTaskCharmHadronsV0FemtoDream {
420419
}
421420
if (ReturnDaughMass) {
422421
return mD0;
423-
} else {
424-
return mDstar - mD0;
425422
}
423+
return mDstar - mD0;
426424
}
427425
// Add more channels as needed
428426
return 0.f;
@@ -525,7 +523,7 @@ struct HfTaskCharmHadronsV0FemtoDream {
525523
}
526524

527525
template <bool IsMc, DecayChannel Channel, typename CollisionType, typename PartitionType1, typename PartitionType2, typename FDParticles, typename BinningType>
528-
void doMixedEvent(CollisionType const& cols, PartitionType1& charms, PartitionType2& v0s, FDParticles const& /*femtoParts*/, BinningType policy)
526+
void doMixedEvent(CollisionType const& cols, PartitionType1& charms, PartitionType2& v0s, FDParticles const& /*femtoParts*/, BinningType const& policy)
529527
{
530528
processType = 2; // for mixed event
531529
// Mixed events that contain the pair of interest

0 commit comments

Comments
 (0)