Skip to content

Commit da31f19

Browse files
committed
Casting to float
1 parent 54e8364 commit da31f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGHF/D2H/TableProducer/dataCreatorCharmResoReduced.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,14 +621,14 @@ struct HfDataCreatorCharmResoReduced {
621621
}
622622

623623
template <typename PParticles>
624-
double computeInvMassGen(PParticles const& particlesMc, int indexRec)
624+
float computeInvMassGen(PParticles const& particlesMc, int indexRec)
625625
{
626626
auto particleReso = particlesMc.iteratorAt(indexRec);
627627
auto dau1 = particlesMc.iteratorAt(particleReso.daughtersIds().front());
628628
auto dau2 = particlesMc.iteratorAt(particleReso.daughtersIds().back());
629629
std::array<std::array<float, 3>, 2> pArr = {{{dau1.px(), dau1.py(), dau1.pz()}, {dau2.px(), dau2.py(), dau2.pz()}}};
630630
std::array<float, 2> mArr = {static_cast<float>(pdg->Mass(dau1.pdgCode())), static_cast<float>(pdg->Mass(dau2.pdgCode()))};
631-
return RecoDecay::m(pArr, mArr);
631+
return static_cast<float>(RecoDecay::m(pArr, mArr));
632632
}
633633

634634
/// Function for filling MC reco information of DV0 candidates in the tables

0 commit comments

Comments
 (0)