Skip to content

Commit c3e6bbe

Browse files
committed
Fix Megalinter error
1 parent c648822 commit c3e6bbe

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

PWGCF/FemtoUniverse/TableProducer/femtoUniverseProducerTask.cxx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -408,13 +408,11 @@ struct FemtoUniverseProducerTask {
408408
if (mom < ConfPhiSelection.confMomKaonLF) {
409409
return (std::abs(nsigmaTPCK) < ConfPhiSelection.confNSigmaTPCKaonLF);
410410
}
411-
if (mom >= ConfPhiSelection.confMomKaonLF) { // 0.5-1.5 (now we use TPC and TOF)
412-
if (!hasTOF) {
413-
return false;
414-
}
415-
return (std::sqrt(nsigmaTPCK * nsigmaTPCK + nsigmaTOFK * nsigmaTOFK) < ConfPhiSelection.confNSigmaCombKaonLF);
411+
// mom >= ConfPhiSelection.confMomKaonLF 0.5-1.5 (now we use TPC and TOF)
412+
if (!hasTOF) {
413+
return false;
416414
}
417-
return false;
415+
return (std::sqrt(nsigmaTPCK * nsigmaTPCK + nsigmaTOFK * nsigmaTOFK) < ConfPhiSelection.confNSigmaCombKaonLF);
418416
}
419417

420418
bool isKaonRejected(float mom, float nsigmaTPCPr, float nsigmaTOFPr, float nsigmaTPCPi, float nsigmaTOFPi)
@@ -902,7 +900,7 @@ struct FemtoUniverseProducerTask {
902900
}
903901
if (particle.has_mothers()) {
904902
int hadronElasticStatter = 20;
905-
int hadronInelasticStatter = 20;
903+
int hadronInelasticStatter = 23;
906904
if (particle.getProcess() == hadronElasticStatter || particle.getProcess() == hadronInelasticStatter) { // treat particles from hadronic scattering (20, 23) as primary
907905
return 0;
908906
}

0 commit comments

Comments
 (0)