@@ -201,6 +201,7 @@ struct TreeCreatorElectronMLDDA {
201201 Configurable<float > cfg_min_dcaxy_v0leg{" cfg_min_dcaxy_v0leg" , 0.1 , " min dca XY to PV for v0 legs in cm" };
202202 Configurable<bool > cfg_includeITSsa{" cfg_includeITSsa" , false , " Flag to include ITSsa tracks" };
203203 Configurable<float > cfg_max_pt_itssa{" cfg_max_pt_itssa" , 0.15 , " mix pt for ITSsa track" };
204+ Configurable<float > cfg_min_qt_strangeness{" cfg_min_qt_strangeness" , 0.015 , " min qt for Lambda and K0S" };
204205
205206 Configurable<float > cfg_min_TPCNsigmaEl{" cfg_min_TPCNsigmaEl" , -5 , " min n sigma e in TPC" };
206207 Configurable<float > cfg_max_TPCNsigmaEl{" cfg_max_TPCNsigmaEl" , +5 , " max n sigma e in TPC" };
@@ -761,43 +762,45 @@ struct TreeCreatorElectronMLDDA {
761762 registry.fill (HIST (" V0/hCosPA" ), v0.v0cosPA ());
762763 registry.fill (HIST (" V0/hAP" ), v0.alpha (), v0.qtarm ());
763764
764- 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 )) {
765- if (isPionTight (pos) && isPion (neg)) {
766- registry.fill (HIST (" V0/hMassK0Short" ), v0.mK0Short ());
767- if (v0cuts.cfg_min_mass_k0s < v0.mK0Short () && v0.mK0Short () < v0cuts.cfg_max_mass_k0s ) {
768- registry.fill (HIST (" V0/hTPCdEdx_P_Pi" ), neg.tpcInnerParam (), neg.tpcSignal ());
769- registry.fill (HIST (" V0/hTOFbeta_P_Pi" ), neg.tpcInnerParam (), neg.beta ());
770- fillTrackTable (collision, neg, static_cast <uint8_t >(o2::aod::pwgem::dilepton::ml::PID_Label::kPion ));
765+ if (v0cuts.cfg_min_qt_strangeness < v0.qtarm ()) {
766+ 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 )) {
767+ if (isPionTight (pos) && isPion (neg)) {
768+ registry.fill (HIST (" V0/hMassK0Short" ), v0.mK0Short ());
769+ if (v0cuts.cfg_min_mass_k0s < v0.mK0Short () && v0.mK0Short () < v0cuts.cfg_max_mass_k0s ) {
770+ registry.fill (HIST (" V0/hTPCdEdx_P_Pi" ), neg.tpcInnerParam (), neg.tpcSignal ());
771+ registry.fill (HIST (" V0/hTOFbeta_P_Pi" ), neg.tpcInnerParam (), neg.beta ());
772+ fillTrackTable (collision, neg, static_cast <uint8_t >(o2::aod::pwgem::dilepton::ml::PID_Label::kPion ));
773+ }
771774 }
772- }
773- if ( isPion (pos) && isPionTight (neg)) {
774- registry. fill ( HIST ( " V0/hMassK0Short " ), v0.mK0Short ());
775- if (v0cuts. cfg_min_mass_k0s < v0. mK0Short () && v0. mK0Short () < v0cuts. cfg_max_mass_k0s ) {
776- registry.fill (HIST (" V0/hTPCdEdx_P_Pi " ), pos.tpcInnerParam (), pos.tpcSignal ());
777- registry. fill ( HIST ( " V0/hTOFbeta_P_Pi " ) , pos. tpcInnerParam (), pos. beta ( ));
778- fillTrackTable (collision, pos, static_cast < uint8_t >(o2::aod::pwgem::dilepton::ml::PID_Label:: kPion ));
775+ if ( isPion (pos) && isPionTight (neg)) {
776+ registry. fill ( HIST ( " V0/hMassK0Short " ), v0. mK0Short ());
777+ if (v0cuts. cfg_min_mass_k0s < v0. mK0Short () && v0.mK0Short () < v0cuts. cfg_max_mass_k0s ) {
778+ registry. fill ( HIST ( " V0/hTPCdEdx_P_Pi " ), pos. tpcInnerParam (), pos. tpcSignal ());
779+ registry.fill (HIST (" V0/hTOFbeta_P_Pi " ), pos.tpcInnerParam (), pos.beta ());
780+ fillTrackTable (collision , pos, static_cast < uint8_t >(o2::aod::pwgem::dilepton::ml::PID_Label:: kPion ));
781+ }
779782 }
780783 }
781- }
782784
783- if (!(v0cuts.cfg_min_mass_k0s_veto < v0.mK0Short () && v0.mK0Short () < v0cuts.cfg_max_mass_k0s_veto )) {
784- if (isProton (pos) && isPionTight (neg)) {
785- registry.fill (HIST (" V0/hMassLambda" ), v0.mLambda ());
786- if (v0cuts.cfg_min_mass_lambda < v0.mLambda () && v0.mLambda () < v0cuts.cfg_max_mass_lambda ) {
787- fillTrackTable (collision, pos, static_cast <uint8_t >(o2::aod::pwgem::dilepton::ml::PID_Label::kProton ));
788- registry.fill (HIST (" V0/hTPCdEdx_P_Pr" ), pos.tpcInnerParam (), pos.tpcSignal ());
789- registry.fill (HIST (" V0/hTOFbeta_P_Pr" ), pos.tpcInnerParam (), pos.beta ());
785+ if (!(v0cuts.cfg_min_mass_k0s_veto < v0.mK0Short () && v0.mK0Short () < v0cuts.cfg_max_mass_k0s_veto )) {
786+ if (isProton (pos) && isPionTight (neg)) {
787+ registry.fill (HIST (" V0/hMassLambda" ), v0.mLambda ());
788+ if (v0cuts.cfg_min_mass_lambda < v0.mLambda () && v0.mLambda () < v0cuts.cfg_max_mass_lambda ) {
789+ fillTrackTable (collision, pos, static_cast <uint8_t >(o2::aod::pwgem::dilepton::ml::PID_Label::kProton ));
790+ registry.fill (HIST (" V0/hTPCdEdx_P_Pr" ), pos.tpcInnerParam (), pos.tpcSignal ());
791+ registry.fill (HIST (" V0/hTOFbeta_P_Pr" ), pos.tpcInnerParam (), pos.beta ());
792+ }
790793 }
791- }
792- if ( isPionTight (pos) && isProton (neg)) {
793- registry. fill ( HIST ( " V0/hMassAntiLambda " ), v0.mAntiLambda ());
794- if (v0cuts. cfg_min_mass_lambda < v0. mAntiLambda () && v0. mAntiLambda () < v0cuts. cfg_max_mass_lambda ) {
795- fillTrackTable (collision , neg, static_cast < uint8_t >(o2::aod::pwgem::dilepton::ml::PID_Label:: kProton ));
796- registry.fill (HIST (" V0/hTPCdEdx_P_Pr " ), neg.tpcInnerParam (), neg.tpcSignal ());
797- registry. fill ( HIST ( " V0/hTOFbeta_P_Pr " ), neg. tpcInnerParam (), neg. beta ());
794+ if ( isPionTight (pos) && isProton (neg)) {
795+ registry. fill ( HIST ( " V0/hMassAntiLambda " ), v0. mAntiLambda ());
796+ if (v0cuts. cfg_min_mass_lambda < v0. mAntiLambda () && v0.mAntiLambda () < v0cuts. cfg_max_mass_lambda ) {
797+ fillTrackTable (collision, neg, static_cast < uint8_t >(o2::aod::pwgem::dilepton::ml::PID_Label:: kProton ));
798+ registry. fill ( HIST ( " V0/hTPCdEdx_P_Pr " ) , neg. tpcInnerParam (), neg. tpcSignal ( ));
799+ registry.fill (HIST (" V0/hTOFbeta_P_Pr " ), neg.tpcInnerParam (), neg.beta ());
800+ }
798801 }
799802 }
800- }
803+ } // end of stangeness
801804
802805 if (isElectronTight (pos) && isElectron (neg)) {
803806 registry.fill (HIST (" V0/hMassGamma" ), v0.mGamma ());
0 commit comments