@@ -688,14 +688,23 @@ struct HadNucleiFemto {
688688 template <typename Ttrack>
689689 bool selectTrackTr (const Ttrack& candidate)
690690 {
691- return !(std::abs (candidate.eta ()) >= 0.8 ||
692- std::abs (candidate.dcaXY ()) >= 0.2 ||
693- std::abs (candidate.dcaZ ()) >= 0.2 ||
694- candidate.tpcNClsCrossedRows () < 70 ||
695- candidate.tpcChi2NCl () >= 5 ||
696- candidate.tpcFractionSharedCls () >= 0.3 ||
697- candidate.itsNCls () < 5 ||
698- candidate.itsChi2NCl () >= 10 );
691+ constexpr float maxAbsEta = 0 .8f ;
692+ constexpr float maxAbsDcaXY = 0 .2f ;
693+ constexpr float maxAbsDcaZ = 0 .2f ;
694+ constexpr int minTPCCrossedRows = 70 ;
695+ constexpr float maxTPCChi2NCl = 5 .f ;
696+ constexpr float maxTPCFractionSharedCls = 0 .3f ;
697+ constexpr int minITSNCls = 5 ;
698+ constexpr float maxITSChi2NCl = 10 .f ;
699+
700+ return !(std::abs (candidate.eta ()) >= maxAbsEta ||
701+ std::abs (candidate.dcaXY ()) >= maxAbsDcaXY ||
702+ std::abs (candidate.dcaZ ()) >= maxAbsDcaZ ||
703+ candidate.tpcNClsCrossedRows () < minTPCCrossedRows ||
704+ candidate.tpcChi2NCl () >= maxTPCChi2NCl ||
705+ candidate.tpcFractionSharedCls () >= maxTPCFractionSharedCls ||
706+ candidate.itsNCls () < minITSNCls ||
707+ candidate.itsChi2NCl () >= maxITSChi2NCl);
699708 }
700709
701710 bool useDeuteronNucleus () const
0 commit comments