@@ -60,14 +60,6 @@ using MyTracks = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksCov,
6060using MyTrack = MyTracks::iterator;
6161
6262struct TreeCreatorElectronMLDDA {
63- // enum class EM_V0_Label : int { // Reconstructed V0
64- // kUndef = -1,
65- // kGamma = 0,
66- // kK0S = 1,
67- // kLambda = 2,
68- // kAntiLambda = 3,
69- // };
70-
7163 SliceCache cache;
7264 Produces<o2::aod::EMPrimaryTracks> emprimarytracks; // flat table containing collision + track information
7365
@@ -83,8 +75,8 @@ struct TreeCreatorElectronMLDDA {
8375 {" V0/hPCA" , " V0 distance between 2 legs" , {HistType::kTH1F , {{200 , 0 .f , 2 .f }}}},
8476 {" V0/hMassGamma" , " V0 mass gamma" , {HistType::kTH1F , {{100 , 0 , 0.1 }}}},
8577 {" V0/hMassK0Short" , " V0 mass K0S" , {HistType::kTH1F , {{200 , 0.4 , 0.6 }}}},
86- {" V0/hMassLambda" , " V0 mass Lambda" , {HistType::kTH1F , {{100 , 1.05 , 1.15 }}}},
87- {" V0/hMassAntiLambda" , " V0 mass AntiLambda" , {HistType::kTH1F , {{100 , 1.05 , 1.15 }}}},
78+ {" V0/hMassLambda" , " V0 mass Lambda" , {HistType::kTH1F , {{100 , 1.08 , 1.18 }}}},
79+ {" V0/hMassAntiLambda" , " V0 mass AntiLambda" , {HistType::kTH1F , {{100 , 1.08 , 1.18 }}}},
8880 {" hMvsPhiV" , " mee vs. phiv" , {HistType::kTH2F , {{72 , 0 , M_PI}, {100 , 0 , 0.1 }}}},
8981
9082 {" V0/hTPCdEdx_P_El" , " TPC dEdx vs. p;p^{ITS-TPC} (GeV/c);TPC dE/dx" , {HistType::kTH2F , {{500 , 0 , 5 }, {200 , 0 , 200 }}}},
@@ -99,20 +91,6 @@ struct TreeCreatorElectronMLDDA {
9991 {" V0/hTOFbeta_P_Ka" , " TOF beta vs. p;p^{ITS-TPC} (GeV/c);TOF #beta" , {HistType::kTH2F , {{500 , 0 , 5 }, {220 , 0 , 1.1 }}}},
10092 {" V0/hTOFbeta_P_Pr" , " TOF beta vs. p;p^{ITS-TPC} (GeV/c);TOF #beta" , {HistType::kTH2F , {{500 , 0 , 5 }, {220 , 0 , 1.1 }}}},
10193
102- // {"PrimaryTrack/hTPCdEdx_P", "TPC dEdx vs. p;p^{ITS-TPC} (GeV/c);TPC dE/dx", {HistType::kTH2F, {{500, 0, 5}, {200, 0, 200}}}},
103- // {"PrimaryTrack/hTOFbeta_P", "TOF beta vs. p;p^{ITS-TPC} (GeV/c);TOF #beta", {HistType::kTH2F, {{500, 0, 5}, {220, 0, 1.1}}}},
104- // {"PrimaryTrack/hITSClusterSize_P", "mean ITS cluster size vs. p;p^{ITS-TPC} (GeV/c);<ITS cluster size> #times cos(#lambda)", {HistType::kTH2F, {{500, 0.f, 5.f}, {150, 0.0, 15}}}},
105- // {"PrimaryTrack/hTPCNsigmaEl_P", "TPC n#sigma_{e} vs. p;p^{ITS-TPC} (GeV/c);n #sigma_{e}^{TPC}", {HistType::kTH2F, {{500, 0.f, 5.f}, {100, -5, +5}}}},
106- // {"PrimaryTrack/hTPCNsigmaMu_P", "TPC n#sigma_{#mu} vs. p;p^{ITS-TPC} (GeV/c);n #sigma_{#mu}^{TPC}", {HistType::kTH2F, {{500, 0.f, 5.f}, {100, -5, +5}}}},
107- // {"PrimaryTrack/hTPCNsigmaPi_P", "TPC n#sigma_{#pi} vs. p;p^{ITS-TPC} (GeV/c);n #sigma_{#pi}^{TPC}", {HistType::kTH2F, {{500, 0.f, 5.f}, {100, -5, +5}}}},
108- // {"PrimaryTrack/hTPCNsigmaKa_P", "TPC n#sigma_{K} vs. p;p^{ITS-TPC} (GeV/c);n #sigma_{K}^{TPC}", {HistType::kTH2F, {{500, 0.f, 5.f}, {100, -5, +5}}}},
109- // {"PrimaryTrack/hTPCNsigmaPr_P", "TPC n#sigma_{p} vs. p;p^{ITS-TPC} (GeV/c);n #sigma_{p}^{TPC}", {HistType::kTH2F, {{500, 0.f, 5.f}, {100, -5, +5}}}},
110- // {"PrimaryTrack/hTOFNsigmaEl_P", "TOF n#sigma_{e} vs. p;p^{ITS-TOF} (GeV/c);n #sigma_{e}^{TOF}", {HistType::kTH2F, {{500, 0.f, 5.f}, {100, -5, +5}}}},
111- // {"PrimaryTrack/hTOFNsigmaMu_P", "TOF n#sigma_{#mu} vs. p;p^{ITS-TOF} (GeV/c);n #sigma_{#mu}^{TOF}", {HistType::kTH2F, {{500, 0.f, 5.f}, {100, -5, +5}}}},
112- // {"PrimaryTrack/hTOFNsigmaPi_P", "TOF n#sigma_{#pi} vs. p;p^{ITS-TOF} (GeV/c);n #sigma_{#pi}^{TOF}", {HistType::kTH2F, {{500, 0.f, 5.f}, {100, -5, +5}}}},
113- // {"PrimaryTrack/hTOFNsigmaKa_P", "TOF n#sigma_{K} vs. p;p^{ITS-TOF} (GeV/c);n #sigma_{K}^{TOF}", {HistType::kTH2F, {{500, 0.f, 5.f}, {100, -5, +5}}}},
114- // {"PrimaryTrack/hTOFNsigmaPr_P", "TOF n#sigma_{p} vs. p;p^{ITS-TOF} (GeV/c);n #sigma_{p}^{TOF}", {HistType::kTH2F, {{500, 0.f, 5.f}, {100, -5, +5}}}},
115-
11694 {" Cascade/hRxy_Xi" , " R_{xy} of cascade vs. mass;m_{#Lambda#pi};R_{xy} (cm)" , {HistType::kTH2F , {{200 , 1.2 , 1.4 }, {200 , 0 , 20 .f }}}},
11795 {" Cascade/hRxy_Omega" , " R_{xy} of cascade vs. mass;m_{#LambdaK};R_{xy} (cm)" , {HistType::kTH2F , {{200 , 1.6 , 1.8 }, {200 , 0 , 20 .f }}}},
11896 {" Cascade/hCTau_Xi" , " c#tau vs. mass;m_{#Lambda#pi};c#tau (cm)" , {HistType::kTH2F , {{200 , 1.2 , 1.4 }, {200 , 0 , 20 .f }}}},
@@ -121,8 +99,7 @@ struct TreeCreatorElectronMLDDA {
12199 {" Cascade/hV0PCA" , " V0 distance between 2 legs" , {HistType::kTH1F , {{200 , 0 .f , 2 .f }}}},
122100 {" Cascade/hCosPA" , " cascade cosine of pointing angle" , {HistType::kTH1F , {{100 , 0.99 , 1 .f }}}},
123101 {" Cascade/hPCA" , " cascade distance between 2 legs" , {HistType::kTH1F , {{200 , 0 .f , 2 .f }}}},
124- {" Cascade/hMassLambda" , " V0 mass Lambda in cascade" , {HistType::kTH1F , {{100 , 1.05 , 1.15 }}}},
125- {" Cascade/hMassAntiLambda" , " V0 mass AntiLambda in cascade" , {HistType::kTH1F , {{100 , 1.05 , 1.15 }}}},
102+ {" Cascade/hMassLambda" , " V0 mass Lambda in cascade" , {HistType::kTH1F , {{100 , 1.08 , 1.18 }}}},
126103 {" Cascade/hMassXi" , " cascade mass #Xi" , {HistType::kTH1F , {{200 , 1.2 , 1.4 }}}},
127104 {" Cascade/hMassOmega" , " cascade mass #Omega" , {HistType::kTH1F , {{200 , 1.6 , 1.8 }}}},
128105 {" Cascade/hMassPt_Xi" , " cascade mass #Xi^{#pm};m_{#Lambda#pi} (GeV/c^{2});p_{T,#Lambda#pi} (GeV/c)" , {HistType::kTH2F , {{200 , 1.2 , 1.4 }, {100 , 0 , 10 }}}},
@@ -132,8 +109,6 @@ struct TreeCreatorElectronMLDDA {
132109 },
133110 };
134111
135- // Configurables
136-
137112 // CCDB options
138113 Configurable<std::string> ccdburl{" ccdb-url" , " http://alice-ccdb.cern.ch" , " url of the ccdb repository" };
139114 Configurable<std::string> grpPath{" grpPath" , " GLO/GRP/GRP" , " Path of the grp file" };
@@ -629,18 +604,18 @@ struct TreeCreatorElectronMLDDA {
629604 registry.fill (HIST (" V0/hTOFbeta_P_Pi" ), neg.p (), neg.beta ());
630605 registry.fill (HIST (" V0/hTPCdEdx_P_Pi" ), pos.p (), pos.tpcSignal ());
631606 registry.fill (HIST (" V0/hTOFbeta_P_Pi" ), pos.p (), pos.beta ());
632- if (dist01 (engine) < downscaling_pion || pos.tpcInnerParam () < max_pin_for_downscaling_pion) {
607+ if (dist01 (engine) < downscaling_pion || pos.tpcInnerParam () > max_pin_for_downscaling_pion) {
633608 fillTrackTable (collision, pos, static_cast <int >(o2::aod::pwgem::dilepton::PID_Label::kPion ), static_cast <int >(o2::aod::pwgem::dilepton::Track_Type::kSecondary ), false );
634609 }
635- if (dist01 (engine) < downscaling_pion || neg.tpcInnerParam () < max_pin_for_downscaling_pion) {
610+ if (dist01 (engine) < downscaling_pion || neg.tpcInnerParam () > max_pin_for_downscaling_pion) {
636611 fillTrackTable (collision, neg, static_cast <int >(o2::aod::pwgem::dilepton::PID_Label::kPion ), static_cast <int >(o2::aod::pwgem::dilepton::Track_Type::kSecondary ), false );
637612 }
638613 }
639614 }
640615 if (isProton (pos) && isPionTight (neg)) {
641616 registry.fill (HIST (" V0/hMassLambda" ), v0.mLambda ());
642617 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) {
618+ if (dist01 (engine) < downscaling_proton || pos.tpcInnerParam () > max_pin_for_downscaling_proton) {
644619 fillTrackTable (collision, pos, static_cast <int >(o2::aod::pwgem::dilepton::PID_Label::kProton ), static_cast <int >(o2::aod::pwgem::dilepton::Track_Type::kSecondary ), false );
645620 }
646621 registry.fill (HIST (" V0/hTPCdEdx_P_Pr" ), pos.p (), pos.tpcSignal ());
@@ -650,7 +625,7 @@ struct TreeCreatorElectronMLDDA {
650625 if (isPionTight (pos) && isProton (neg)) {
651626 registry.fill (HIST (" V0/hMassAntiLambda" ), v0.mAntiLambda ());
652627 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) {
628+ if (dist01 (engine) < downscaling_proton || neg.tpcInnerParam () > max_pin_for_downscaling_proton) {
654629 fillTrackTable (collision, neg, static_cast <int >(o2::aod::pwgem::dilepton::PID_Label::kProton ), static_cast <int >(o2::aod::pwgem::dilepton::Track_Type::kSecondary ), false );
655630 }
656631 registry.fill (HIST (" V0/hTPCdEdx_P_Pr" ), neg.p (), neg.tpcSignal ());
@@ -662,10 +637,10 @@ struct TreeCreatorElectronMLDDA {
662637 registry.fill (HIST (" V0/hMassGamma_Rxy" ), v0.v0radius (), v0.mGamma ());
663638 if (isElectron (pos) && isElectron (neg)) {
664639 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) {
640+ if (dist01 (engine) < downscaling_electron || pos.tpcInnerParam () > max_pin_for_downscaling_electron) {
666641 fillTrackTable (collision, pos, static_cast <int >(o2::aod::pwgem::dilepton::PID_Label::kElectron ), static_cast <int >(o2::aod::pwgem::dilepton::Track_Type::kSecondary ), false );
667642 }
668- if (dist01 (engine) < downscaling_electron || neg.tpcInnerParam () < max_pin_for_downscaling_electron) {
643+ if (dist01 (engine) < downscaling_electron || neg.tpcInnerParam () > max_pin_for_downscaling_electron) {
669644 fillTrackTable (collision, neg, static_cast <int >(o2::aod::pwgem::dilepton::PID_Label::kElectron ), static_cast <int >(o2::aod::pwgem::dilepton::Track_Type::kSecondary ), false );
670645 }
671646 registry.fill (HIST (" V0/hTPCdEdx_P_El" ), neg.p (), neg.tpcSignal ());
@@ -756,7 +731,7 @@ struct TreeCreatorElectronMLDDA {
756731 if (cascadecuts.cfg_min_mass_Omega < cascade.mOmega () && cascade.mOmega () < cascadecuts.cfg_max_mass_Omega ) { // select Omega candidates
757732 registry.fill (HIST (" V0/hTPCdEdx_P_Ka" ), bachelor.p (), bachelor.tpcSignal ());
758733 registry.fill (HIST (" V0/hTOFbeta_P_Ka" ), bachelor.p (), bachelor.beta ());
759- if (dist01 (engine) < downscaling_kaon || bachelor.tpcInnerParam () < max_pin_for_downscaling_kaon) {
734+ if (dist01 (engine) < downscaling_kaon || bachelor.tpcInnerParam () > max_pin_for_downscaling_kaon) {
760735 fillTrackTable (collision, bachelor, static_cast <int >(o2::aod::pwgem::dilepton::PID_Label::kKaon ), static_cast <int >(o2::aod::pwgem::dilepton::Track_Type::kPrimary ), false );
761736 }
762737 }
@@ -782,12 +757,12 @@ struct TreeCreatorElectronMLDDA {
782757
783758 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.
784759 if (isElectronTight (pos) && isElectron (neg)) {
785- if (dist01 (engine) < downscaling_electron_primary || neg.tpcInnerParam () < max_pin_for_downscaling_electron_primary) {
760+ if (dist01 (engine) < downscaling_electron_primary || neg.tpcInnerParam () > max_pin_for_downscaling_electron_primary) {
786761 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
787762 }
788763 }
789764 if (isElectron (pos) && isElectronTight (neg)) {
790- if (dist01 (engine) < downscaling_electron_primary || pos.tpcInnerParam () < max_pin_for_downscaling_electron_primary) {
765+ if (dist01 (engine) < downscaling_electron_primary || pos.tpcInnerParam () > max_pin_for_downscaling_electron_primary) {
791766 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
792767 }
793768 }
0 commit comments