@@ -183,7 +183,8 @@ struct TreeCreatorElectronMLDDA {
183183
184184 Configurable<float > cfg_min_cospa{" cfg_min_cospa" , 0.9998 , " min cospa for v0" };
185185 Configurable<float > cfg_max_dcadau{" cfg_max_dcadau" , 0.1 , " max distance between 2 legs for v0" };
186- Configurable<float > cfg_min_qt_strangeness{" cfg_min_qt_strangeness" , 0.015 , " min qt for Lambda and K0S" };
186+ Configurable<float > cfg_min_qt_strangeness{" cfg_min_qt_strangeness" , 0.02 , " min qt for Lambda and K0S" };
187+ Configurable<float > cfg_min_qt_k0s{" cfg_min_qt_k0s" , 0.11 , " min qt for K0S" };
187188
188189 Configurable<float > cfg_min_cr2findable_ratio_tpc{" cfg_min_cr2findable_ratio_tpc" , 0.8 , " min. TPC Ncr/Nf ratio" };
189190 Configurable<float > cfg_max_frac_shared_clusters_tpc{" cfg_max_frac_shared_clusters_tpc" , 0.7 , " max fraction of shared clusters in TPC" };
@@ -797,28 +798,30 @@ struct TreeCreatorElectronMLDDA {
797798 registry.fill (HIST (" V0/hAP" ), v0.alpha (), v0.qtarm ());
798799
799800 if (v0cuts.cfg_min_qt_strangeness < v0.qtarm ()) {
800- if (!(v0cuts.cfg_min_mass_lambda_veto < v0.mLambda () && v0.mLambda () < v0cuts.cfg_max_mass_lambda_veto ) && !(v0cuts.cfg_min_mass_lambda_veto < v0.mAntiLambda () && v0.mAntiLambda () < v0cuts.cfg_max_mass_lambda_veto )) {
801- if ((isPionTight (pos) && isSelectedV0LegTight (collision, pos)) && (isPion (neg) && isSelectedV0Leg (collision, neg))) {
802- if (!tightv0cuts.requireTOF_for_tagging || pos.hasTOF ()) {
803- registry.fill (HIST (" V0/hMassK0Short" ), v0.mK0Short ());
804- if (v0cuts.cfg_min_mass_k0s < v0.mK0Short () && v0.mK0Short () < v0cuts.cfg_max_mass_k0s ) {
805- registry.fill (HIST (" V0/hTPCdEdx_P_Pi" ), neg.tpcInnerParam (), neg.tpcSignal ());
806- registry.fill (HIST (" V0/hTOFbeta_P_Pi" ), neg.tpcInnerParam (), neg.beta ());
807- fillTrackTable (collision, neg, static_cast <uint8_t >(o2::aod::pwgem::dilepton::ml::PID_Label::kPion ));
801+ if (v0cuts.cfg_min_qt_k0s < v0.qtarm ()) {
802+ if (!(v0cuts.cfg_min_mass_lambda_veto < v0.mLambda () && v0.mLambda () < v0cuts.cfg_max_mass_lambda_veto ) && !(v0cuts.cfg_min_mass_lambda_veto < v0.mAntiLambda () && v0.mAntiLambda () < v0cuts.cfg_max_mass_lambda_veto )) {
803+ if ((isPionTight (pos) && isSelectedV0LegTight (collision, pos)) && (isPion (neg) && isSelectedV0Leg (collision, neg))) {
804+ if (!tightv0cuts.requireTOF_for_tagging || pos.hasTOF ()) {
805+ registry.fill (HIST (" V0/hMassK0Short" ), v0.mK0Short ());
806+ if (v0cuts.cfg_min_mass_k0s < v0.mK0Short () && v0.mK0Short () < v0cuts.cfg_max_mass_k0s ) {
807+ registry.fill (HIST (" V0/hTPCdEdx_P_Pi" ), neg.tpcInnerParam (), neg.tpcSignal ());
808+ registry.fill (HIST (" V0/hTOFbeta_P_Pi" ), neg.tpcInnerParam (), neg.beta ());
809+ fillTrackTable (collision, neg, static_cast <uint8_t >(o2::aod::pwgem::dilepton::ml::PID_Label::kPion ));
810+ }
808811 }
809812 }
810- }
811- if ( isPion (pos) && isSelectedV0Leg (collision, pos) && isPionTight (neg) && isSelectedV0LegTight (collision, neg)) {
812- if (!tightv0cuts. requireTOF_for_tagging || neg. hasTOF ()) {
813- registry. fill ( HIST ( " V0/hMassK0Short " ), v0.mK0Short ());
814- if (v0cuts. cfg_min_mass_k0s < v0. mK0Short () && v0. mK0Short () < v0cuts. cfg_max_mass_k0s ) {
815- registry.fill (HIST (" V0/hTPCdEdx_P_Pi " ), pos.tpcInnerParam (), pos.tpcSignal ());
816- registry. fill ( HIST ( " V0/hTOFbeta_P_Pi " ) , pos. tpcInnerParam (), pos. beta ( ));
817- fillTrackTable (collision, pos, static_cast < uint8_t >(o2::aod::pwgem::dilepton::ml::PID_Label:: kPion ));
813+ if ( isPion (pos) && isSelectedV0Leg (collision, pos) && isPionTight (neg) && isSelectedV0LegTight (collision, neg)) {
814+ if (!tightv0cuts. requireTOF_for_tagging || neg. hasTOF ( )) {
815+ registry. fill ( HIST ( " V0/hMassK0Short " ), v0. mK0Short ());
816+ if (v0cuts. cfg_min_mass_k0s < v0. mK0Short () && v0.mK0Short () < v0cuts. cfg_max_mass_k0s ) {
817+ registry. fill ( HIST ( " V0/hTPCdEdx_P_Pi " ), pos. tpcInnerParam (), pos. tpcSignal ());
818+ registry.fill (HIST (" V0/hTOFbeta_P_Pi " ), pos.tpcInnerParam (), pos.beta ());
819+ fillTrackTable (collision , pos, static_cast < uint8_t >(o2::aod::pwgem::dilepton::ml::PID_Label:: kPion ));
820+ }
818821 }
819822 }
820- }
821- } // end of K0S
823+ } // end of K0S
824+ }
822825
823826 if (!(v0cuts.cfg_min_mass_k0s_veto < v0.mK0Short () && v0.mK0Short () < v0cuts.cfg_max_mass_k0s_veto )) {
824827 if (isProton (pos) && isSelectedV0Leg (collision, pos) && isPionTight (neg) && isSelectedV0LegTight (collision, neg)) {
@@ -842,6 +845,8 @@ struct TreeCreatorElectronMLDDA {
842845 }
843846 } // end of AntiLambda
844847 }
848+
849+
845850 } // end of stangeness
846851
847852 if (isElectronTight (pos) && isSelectedV0LegTight (collision, pos) && isElectron (neg) && isSelectedV0Leg (collision, neg)) {
0 commit comments