@@ -629,18 +629,18 @@ struct TreeCreatorElectronMLDDA {
629629 registry.fill (HIST (" V0/hTOFbeta_P_Pi" ), neg.p (), neg.beta ());
630630 registry.fill (HIST (" V0/hTPCdEdx_P_Pi" ), pos.p (), pos.tpcSignal ());
631631 registry.fill (HIST (" V0/hTOFbeta_P_Pi" ), pos.p (), pos.beta ());
632- if (dist01 (engine) < downscaling_pion && pos.tpcInnerParam () < max_pin_for_downscaling_pion) {
632+ if (dist01 (engine) < downscaling_pion || pos.tpcInnerParam () < max_pin_for_downscaling_pion) {
633633 fillTrackTable (collision, pos, static_cast <int >(o2::aod::pwgem::dilepton::PID_Label::kPion ), static_cast <int >(o2::aod::pwgem::dilepton::Track_Type::kSecondary ), false );
634634 }
635- if (dist01 (engine) < downscaling_pion && neg.tpcInnerParam () < max_pin_for_downscaling_pion) {
635+ if (dist01 (engine) < downscaling_pion || neg.tpcInnerParam () < max_pin_for_downscaling_pion) {
636636 fillTrackTable (collision, neg, static_cast <int >(o2::aod::pwgem::dilepton::PID_Label::kPion ), static_cast <int >(o2::aod::pwgem::dilepton::Track_Type::kSecondary ), false );
637637 }
638638 }
639639 }
640640 if (isProton (pos) && isPionTight (neg)) {
641641 registry.fill (HIST (" V0/hMassLambda" ), v0.mLambda ());
642642 if (v0cuts.cfg_min_mass_lambda < v0.mLambda () && v0.mLambda () < v0cuts.cfg_max_mass_lambda ) {
643- if (dist01 (engine) < downscaling_proton && pos.tpcInnerParam () < max_pin_for_downscaling_proton) {
643+ if (dist01 (engine) < downscaling_proton || pos.tpcInnerParam () < max_pin_for_downscaling_proton) {
644644 fillTrackTable (collision, pos, static_cast <int >(o2::aod::pwgem::dilepton::PID_Label::kProton ), static_cast <int >(o2::aod::pwgem::dilepton::Track_Type::kSecondary ), false );
645645 }
646646 registry.fill (HIST (" V0/hTPCdEdx_P_Pr" ), pos.p (), pos.tpcSignal ());
@@ -650,7 +650,7 @@ struct TreeCreatorElectronMLDDA {
650650 if (isPionTight (pos) && isProton (neg)) {
651651 registry.fill (HIST (" V0/hMassAntiLambda" ), v0.mAntiLambda ());
652652 if (v0cuts.cfg_min_mass_lambda < v0.mAntiLambda () && v0.mAntiLambda () < v0cuts.cfg_max_mass_lambda ) {
653- if (dist01 (engine) < downscaling_proton && neg.tpcInnerParam () < max_pin_for_downscaling_proton) {
653+ if (dist01 (engine) < downscaling_proton || neg.tpcInnerParam () < max_pin_for_downscaling_proton) {
654654 fillTrackTable (collision, neg, static_cast <int >(o2::aod::pwgem::dilepton::PID_Label::kProton ), static_cast <int >(o2::aod::pwgem::dilepton::Track_Type::kSecondary ), false );
655655 }
656656 registry.fill (HIST (" V0/hTPCdEdx_P_Pr" ), neg.p (), neg.tpcSignal ());
@@ -662,10 +662,10 @@ struct TreeCreatorElectronMLDDA {
662662 registry.fill (HIST (" V0/hMassGamma_Rxy" ), v0.v0radius (), v0.mGamma ());
663663 if (isElectron (pos) && isElectron (neg)) {
664664 if ((v0cuts.cfg_min_mass_photon < v0.mGamma () && v0.mGamma () < v0cuts.cfg_max_mass_photon )) {
665- if (dist01 (engine) < downscaling_electron && pos.tpcInnerParam () < max_pin_for_downscaling_electron) {
665+ if (dist01 (engine) < downscaling_electron || pos.tpcInnerParam () < max_pin_for_downscaling_electron) {
666666 fillTrackTable (collision, pos, static_cast <int >(o2::aod::pwgem::dilepton::PID_Label::kElectron ), static_cast <int >(o2::aod::pwgem::dilepton::Track_Type::kSecondary ), false );
667667 }
668- if (dist01 (engine) < downscaling_electron && neg.tpcInnerParam () < max_pin_for_downscaling_electron) {
668+ if (dist01 (engine) < downscaling_electron || neg.tpcInnerParam () < max_pin_for_downscaling_electron) {
669669 fillTrackTable (collision, neg, static_cast <int >(o2::aod::pwgem::dilepton::PID_Label::kElectron ), static_cast <int >(o2::aod::pwgem::dilepton::Track_Type::kSecondary ), false );
670670 }
671671 registry.fill (HIST (" V0/hTPCdEdx_P_El" ), neg.p (), neg.tpcSignal ());
@@ -756,7 +756,7 @@ struct TreeCreatorElectronMLDDA {
756756 if (cascadecuts.cfg_min_mass_Omega < cascade.mOmega () && cascade.mOmega () < cascadecuts.cfg_max_mass_Omega ) { // select Omega candidates
757757 registry.fill (HIST (" V0/hTPCdEdx_P_Ka" ), bachelor.p (), bachelor.tpcSignal ());
758758 registry.fill (HIST (" V0/hTOFbeta_P_Ka" ), bachelor.p (), bachelor.beta ());
759- if (dist01 (engine) < downscaling_kaon && bachelor.tpcInnerParam () < max_pin_for_downscaling_kaon) {
759+ if (dist01 (engine) < downscaling_kaon || bachelor.tpcInnerParam () < max_pin_for_downscaling_kaon) {
760760 fillTrackTable (collision, bachelor, static_cast <int >(o2::aod::pwgem::dilepton::PID_Label::kKaon ), static_cast <int >(o2::aod::pwgem::dilepton::Track_Type::kPrimary ), false );
761761 }
762762 }
@@ -782,12 +782,12 @@ struct TreeCreatorElectronMLDDA {
782782
783783 if ((dalitzcuts.cfg_min_mass_ee < v12.M () && v12.M () < dalitzcuts.cfg_max_mass_ee ) && (dalitzcuts.cfg_min_phiv_ee < phiv && phiv < dalitzcuts.cfg_max_phiv_ee )) { // ee from pi0 dalitz decay is found.
784784 if (isElectronTight (pos) && isElectron (neg)) {
785- if (dist01 (engine) < downscaling_electron_primary && neg.tpcInnerParam () < max_pin_for_downscaling_electron_primary) {
785+ if (dist01 (engine) < downscaling_electron_primary || neg.tpcInnerParam () < max_pin_for_downscaling_electron_primary) {
786786 fillTrackTable (collision, neg, static_cast <int >(o2::aod::pwgem::dilepton::PID_Label::kElectron ), static_cast <int >(o2::aod::pwgem::dilepton::Track_Type::kPrimary ), true ); // primary electron candidates
787787 }
788788 }
789789 if (isElectron (pos) && isElectronTight (neg)) {
790- if (dist01 (engine) < downscaling_electron_primary && pos.tpcInnerParam () < max_pin_for_downscaling_electron_primary) {
790+ if (dist01 (engine) < downscaling_electron_primary || pos.tpcInnerParam () < max_pin_for_downscaling_electron_primary) {
791791 fillTrackTable (collision, pos, static_cast <int >(o2::aod::pwgem::dilepton::PID_Label::kElectron ), static_cast <int >(o2::aod::pwgem::dilepton::Track_Type::kPrimary ), true ); // primary electron candidates
792792 }
793793 }
0 commit comments