@@ -80,9 +80,8 @@ struct TreeWriterTpcV0 {
8080 constexpr static o2::track::PID::ID PidProton{o2::track::PID::Proton};
8181
8282 // an arbitrary value of N sigma TOF assigned by TOF task to tracks which are not matched to TOF hits
83- constexpr static float NSigmaTofUnmatched{-999 .f };
84-
85- constexpr static float FloatEqualityTolerance{1 .e -3f };
83+ constexpr static float NSigmaTofUnmatched{-1e6f};
84+ constexpr static float NSigmaTofUnmatchedEqualityTolerance{1000 .f };
8685
8786 // / Configurables
8887 Configurable<float > nSigmaTofDauTrackPi{" nSigmaTofDauTrackPi" , 999 .f , " n-sigma TOF cut on the pion daughter tracks" };
@@ -444,8 +443,8 @@ struct TreeWriterTpcV0 {
444443 auto fillDaughterTrack = [&](const auto & mother, const TrksType::iterator& dauTrack, const V0Daughter& daughter) {
445444 const bool passTrackSelection = isTrackSelected (dauTrack, trackSelection);
446445 const bool passDownsamplig = downsampleTsalisCharged (fRndm , dauTrack.pt (), daughter.downsamplingTsalis , daughter.mass , sqrtSNN, daughter.maxPt4dwnsmplTsalis );
447- const bool passNSigmaTofCut = std::fabs (daughter.tofNSigma ) < daughter.nSigmaTofDauTrack || std::fabs (daughter.tofNSigma - NSigmaTofUnmatched) < FloatEqualityTolerance ;
448- const bool passMatchTofRequirement = !daughter.rejectNoTofDauTrack || std::fabs (daughter.tofNSigma - NSigmaTofUnmatched) > FloatEqualityTolerance ;
446+ const bool passNSigmaTofCut = std::fabs (daughter.tofNSigma ) < daughter.nSigmaTofDauTrack || std::fabs (daughter.tofNSigma - NSigmaTofUnmatched) < NSigmaTofUnmatchedEqualityTolerance ;
447+ const bool passMatchTofRequirement = !daughter.rejectNoTofDauTrack || std::fabs (daughter.tofNSigma - NSigmaTofUnmatched) > NSigmaTofUnmatchedEqualityTolerance ;
449448 if (passTrackSelection && passDownsamplig && passNSigmaTofCut && passMatchTofRequirement) {
450449 fillSkimmedV0Table<IsCorrectedDeDx>(mother, dauTrack, collision, daughter.tpcNSigma , daughter.tofNSigma , daughter.tpcExpSignal , daughter.id , runnumber, daughter.dwnSmplFactor , hadronicRate);
451450 }
@@ -533,8 +532,8 @@ struct TreeWriterTpcV0 {
533532 auto fillDaughterTrack = [&](const auto & mother, const TrksType::iterator& dauTrack, const V0Daughter& daughter, const aod::TracksQA& trackQAInstance, const bool existTrkQA) {
534533 const bool passTrackSelection = isTrackSelected (dauTrack, trackSelection);
535534 const bool passDownsamplig = downsampleTsalisCharged (fRndm , dauTrack.pt (), daughter.downsamplingTsalis , daughter.mass , sqrtSNN, daughter.maxPt4dwnsmplTsalis );
536- const bool passNSigmaTofCut = std::fabs (daughter.tofNSigma ) < daughter.nSigmaTofDauTrack || std::fabs (daughter.tofNSigma - NSigmaTofUnmatched) < FloatEqualityTolerance ;
537- const bool passMatchTofRequirement = !daughter.rejectNoTofDauTrack || std::fabs (daughter.tofNSigma - NSigmaTofUnmatched) > FloatEqualityTolerance ;
535+ const bool passNSigmaTofCut = std::fabs (daughter.tofNSigma ) < daughter.nSigmaTofDauTrack || std::fabs (daughter.tofNSigma - NSigmaTofUnmatched) < NSigmaTofUnmatchedEqualityTolerance ;
536+ const bool passMatchTofRequirement = !daughter.rejectNoTofDauTrack || std::fabs (daughter.tofNSigma - NSigmaTofUnmatched) > NSigmaTofUnmatchedEqualityTolerance ;
538537 if (passTrackSelection && passDownsamplig && passNSigmaTofCut && passMatchTofRequirement) {
539538 fillSkimmedV0TableWithTrQAGeneric<IsCorrectedDeDx, IsWithdEdx>(mother, dauTrack, trackQAInstance, existTrkQA, collision, daughter.tpcNSigma , daughter.tofNSigma , daughter.tpcExpSignal , daughter.id , runnumber, daughter.dwnSmplFactor , hadronicRate, bcGlobalIndex, bcTimeFrameId, bcBcInTimeFrame);
540539 }
0 commit comments