@@ -88,7 +88,7 @@ struct ConfSigmaPlusBits : o2::framework::ConfigurableGroup {
8888 std::string prefix = std::string(" SigmaPlusBits" );
8989 KINK_DEFAULT_BITS
9090 o2::framework::Configurable<std::vector<float >> chaDauTpcProton{" chaDauTpcProton" , {5 .f }, " Maximum |nsigma_Proton| TPC for charged daughter tracks" };
91- o2::framework::Configurable<std::vector<float >> chaDauTpctofProton{ " chaDauTpctofProton " , {5 .f }, " Maximum combined |nsigma_Proton| (TPC+TOF) for charged daughter tracks" };
91+ o2::framework::Configurable<std::vector<float >> chaDauTofProton{ " chaDauTofProton " , {5 .f }, " Maximum combined |nsigma_Proton| (TPC+TOF) for charged daughter tracks" };
9292 o2::framework::Configurable<float > pidThres{" pidThres" , 0 .75f , " Momentum threshold for using TOF/combined pid for daughter tracks (GeV/c)" };
9393};
9494
@@ -146,7 +146,7 @@ enum KinkSeles {
146146
147147 kChaDaughTpcPion ,
148148 kChaDaughTpcProton ,
149- kChaDaughTpctofProton ,
149+ kChaDaughTofProton ,
150150
151151 kAlphaAPMin ,
152152 kAlphaAPMax ,
@@ -167,7 +167,7 @@ const std::unordered_map<KinkSeles, std::string> kinkSelsToStrings = {
167167 {kMothDcaPvMax , " mothDcaPvMax" },
168168 {kChaDaughTpcPion , " chaDauTpcPion" },
169169 {kChaDaughTpcProton , " chaDauTpcProton" },
170- {kChaDaughTpctofProton , " chaDauTpctofProton " },
170+ {kChaDaughTofProton , " chaDauTofProton " },
171171 {kAlphaAPMin , " alphaAPMin" },
172172 {kAlphaAPMax , " alphaAPMax" },
173173 {kQtAPMin , " qtAPMin" },
@@ -205,7 +205,7 @@ class KinkSelection : public BaseSelection<float, o2::aod::femtodatatypes::KinkM
205205 mMassSigmaPlusUpperLimit = filter.massMaxSigmaPlus .value ;
206206 mPidThreshold = config.pidThres .value ;
207207 this ->addSelection (config.chaDauTpcProton .value , kChaDaughTpcProton , limits::kAbsUpperLimit , true , true );
208- this ->addSelection (config.chaDauTpctofProton .value , kChaDaughTpctofProton , limits::kUpperLimit , true , true );
208+ this ->addSelection (config.chaDauTofProton .value , kChaDaughTofProton , limits::kUpperLimit , true , true );
209209 }
210210
211211 this ->addSelection (config.kinkTopoDcaMax .value , kKinkTopoDcaMax , limits::kUpperLimit , true , true );
@@ -279,7 +279,9 @@ class KinkSelection : public BaseSelection<float, o2::aod::femtodatatypes::KinkM
279279 this ->evaluateObservable (kChaDaughTpcProton , chaDaughter.tpcNSigmaPr ());
280280 } else {
281281 if (chaDaughter.hasTOF ()) {
282- this ->evaluateObservable (kChaDaughTpctofProton , std::hypot (chaDaughter.tpcNSigmaPr (), chaDaughter.tofNSigmaPr ()));
282+ this ->evaluateObservable (kChaDaughTofProton , std::abs (chaDaughter.tofNSigmaPr ()));
283+ } else {
284+ this ->evaluateObservable (kChaDaughTofProton , 999 .f );
283285 }
284286 }
285287 }
0 commit comments