@@ -183,7 +183,6 @@ struct Dilepton {
183183 Configurable<float > cfg_min_phiv{" cfg_min_phiv" , 0.0 , " min phiv (constant)" };
184184 Configurable<float > cfg_max_phiv{" cfg_max_phiv" , 3.2 , " max phiv (constant)" };
185185 Configurable<bool > cfg_apply_detadphi{" cfg_apply_detadphi" , false , " flag to apply deta-dphi elliptic cut at PV" };
186- Configurable<bool > cfg_apply_detadphiposition{" cfg_apply_detadphiposition" , false , " flag to apply deta-dphi elliptic cut at certain radius" };
187186 Configurable<float > cfg_min_deta{" cfg_min_deta" , 0.02 , " min deta between 2 electrons (elliptic cut)" };
188187 Configurable<float > cfg_min_dphi{" cfg_min_dphi" , 0.2 , " min dphi between 2 electrons (elliptic cut)" };
189188 Configurable<float > cfg_min_opang{" cfg_min_opang" , 0.0 , " min opening angle" };
@@ -219,7 +218,6 @@ struct Dilepton {
219218 Configurable<float > cfg_max_its_cluster_size{" cfg_max_its_cluster_size" , 16 .f , " max ITS cluster size" };
220219 Configurable<float > cfg_min_rel_diff_pin{" cfg_min_rel_diff_pin" , -1e+10 , " min rel. diff. between pin and ppv" };
221220 Configurable<float > cfg_max_rel_diff_pin{" cfg_max_rel_diff_pin" , +1e+10 , " max rel. diff. between pin and ppv" };
222- Configurable<float > cfgRefR{" cfgRefR" , 1.2 , " reference R (in m) for extrapolation" }; // https://cds.cern.ch/record/1419204
223221
224222 Configurable<int > cfg_pid_scheme{" cfg_pid_scheme" , static_cast <int >(DielectronCut::PIDSchemes::kTPChadrejORTOFreq ), " pid scheme [kTOFreq : 0, kTPChadrej : 1, kTPChadrejORTOFreq : 2, kTPConly : 3, kTOFif : 4, kPIDML : 5, kTPChadrejORTOFreq_woTOFif : 6]" };
225223 Configurable<float > cfg_min_TPCNsigmaEl{" cfg_min_TPCNsigmaEl" , -2.0 , " min. TPC n sigma for electron inclusion" };
@@ -558,7 +556,6 @@ struct Dilepton {
558556 if (cfgAnalysisType == static_cast <int >(o2::aod::pwgem::dilepton::utils::pairutil::DileptonAnalysisType::kQC )) {
559557 fRegistry .add (" Pair/same/uls/hs" , " dilepton" , kTHnSparseD , {axis_mass, axis_pt, axis_dca, axis_y}, true );
560558 fRegistry .add (" Pair/same/uls/hDeltaEtaDeltaPhi" , " #Delta#eta-#Delta#varphi between 2 tracks;#Delta#varphi (rad.);#Delta#eta;" , kTH2D , {{180 , -M_PI, M_PI}, {400 , -2 , +2 }}, true );
561- fRegistry .add (" Pair/same/uls/hDeltaEtaDeltaPhiPosition" , " #Delta#eta-#Delta#varphi^{*} between 2 tracks;#Delta#varphi^{*} (rad.);#Delta#eta;" , kTH2D , {{180 , -M_PI, M_PI}, {400 , -2 , +2 }}, true );
562559
563560 if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron ) {
564561 fRegistry .add (" Pair/same/uls/hMvsPhiV" , " m_{ee} vs. #varphi_{V};#varphi_{V} (rad.);m_{ee} (GeV/c^{2})" , kTH2D , {{90 , 0 , M_PI}, {100 , 0 .0f , 1 .0f }}, true ); // phiv is only for dielectron
@@ -679,7 +676,7 @@ struct Dilepton {
679676 fDielectronCut .SetPairDCARange (dielectroncuts.cfg_min_pair_dca3d , dielectroncuts.cfg_max_pair_dca3d ); // in sigma
680677 fDielectronCut .SetMaxMeePhiVDep ([&](float phiv) { return dielectroncuts.cfg_phiv_intercept + phiv * dielectroncuts.cfg_phiv_slope ; }, dielectroncuts.cfg_min_phiv , dielectroncuts.cfg_max_phiv );
681678 fDielectronCut .ApplyPhiV (dielectroncuts.cfg_apply_phiv );
682- fDielectronCut .SetMindEtadPhi (dielectroncuts.cfg_apply_detadphi , dielectroncuts. cfg_apply_detadphiposition , dielectroncuts.cfg_min_deta , dielectroncuts.cfg_min_dphi );
679+ fDielectronCut .SetMindEtadPhi (dielectroncuts.cfg_apply_detadphi , false , dielectroncuts.cfg_min_deta , dielectroncuts.cfg_min_dphi );
683680 fDielectronCut .SetPairOpAng (dielectroncuts.cfg_min_opang , dielectroncuts.cfg_max_opang );
684681 fDielectronCut .SetRequireDifferentSides (dielectroncuts.cfg_require_diff_sides );
685682
@@ -876,7 +873,7 @@ struct Dilepton {
876873 }
877874
878875 if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron ) {
879- if (!cut.IsSelectedPair (t1, t2, d_bz, dielectroncuts. cfgRefR )) {
876+ if (!cut.IsSelectedPair (t1, t2, d_bz, 0 )) {
880877 return false ;
881878 }
882879 } else if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDimuon ) {
@@ -928,21 +925,12 @@ struct Dilepton {
928925 float dphi = t1.sign () * v1.Pt () > t2.sign () * v2.Pt () ? v1.Phi () - v2.Phi () : v2.Phi () - v1.Phi ();
929926 o2::math_utils::bringToPMPi (dphi);
930927
931- float phiPosition1 = t1.phi () + std::asin (t1.sign () * 0.30282 * (d_bz * 0.1 ) * dielectroncuts.cfgRefR / (2 .f * t1.pt ()));
932- float phiPosition2 = t2.phi () + std::asin (t2.sign () * 0.30282 * (d_bz * 0.1 ) * dielectroncuts.cfgRefR / (2 .f * t2.pt ()));
933-
934- phiPosition1 = RecoDecay::constrainAngle (phiPosition1, 0 , 1 ); // 0-2pi
935- phiPosition2 = RecoDecay::constrainAngle (phiPosition2, 0 , 1 ); // 0-2pi
936- float dphiPosition = t1.sign () * v1.Pt () > t2.sign () * v2.Pt () ? phiPosition1 - phiPosition2 : phiPosition2 - phiPosition1;
937- o2::math_utils::bringToPMPi (dphiPosition);
938-
939928 float phiv = o2::aod::pwgem::dilepton::utils::pairutil::getPhivPair (t1.px (), t1.py (), t1.pz (), t2.px (), t2.py (), t2.pz (), t1.sign (), t2.sign (), d_bz);
940929 float opAng = o2::aod::pwgem::dilepton::utils::pairutil::getOpeningAngle (t1.px (), t1.py (), t1.pz (), t2.px (), t2.py (), t2.pz ());
941930
942931 if (t1.sign () * t2.sign () < 0 ) { // ULS
943932 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" uls/hs" ), v12.M (), v12.Pt (), pair_dca, v12.Rapidity (), weight);
944933 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" uls/hDeltaEtaDeltaPhi" ), dphi, deta, weight);
945- fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" uls/hDeltaEtaDeltaPhiPosition" ), dphiPosition, deta, weight);
946934 if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron ) {
947935 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" uls/hMvsPhiV" ), phiv, v12.M (), weight);
948936 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" uls/hMvsOpAng" ), opAng, v12.M (), weight);
@@ -955,7 +943,6 @@ struct Dilepton {
955943 } else if (t1.sign () > 0 && t2.sign () > 0 ) { // LS++
956944 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lspp/hs" ), v12.M (), v12.Pt (), pair_dca, v12.Rapidity (), weight);
957945 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lspp/hDeltaEtaDeltaPhi" ), dphi, deta, weight);
958- fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lspp/hDeltaEtaDeltaPhiPosition" ), dphiPosition, deta, weight);
959946 if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron ) {
960947 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lspp/hMvsPhiV" ), phiv, v12.M (), weight);
961948 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lspp/hMvsOpAng" ), opAng, v12.M (), weight);
@@ -968,7 +955,6 @@ struct Dilepton {
968955 } else if (t1.sign () < 0 && t2.sign () < 0 ) { // LS--
969956 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lsmm/hs" ), v12.M (), v12.Pt (), pair_dca, v12.Rapidity (), weight);
970957 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lsmm/hDeltaEtaDeltaPhi" ), dphi, deta, weight);
971- fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lsmm/hDeltaEtaDeltaPhiPosition" ), dphiPosition, deta, weight);
972958 if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron ) {
973959 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lsmm/hMvsPhiV" ), phiv, v12.M (), weight);
974960 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lsmm/hMvsOpAng" ), opAng, v12.M (), weight);
@@ -1421,7 +1407,7 @@ struct Dilepton {
14211407 }
14221408
14231409 if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron ) {
1424- if (!cut.IsSelectedPair (t1, t2, d_bz, dielectroncuts. cfgRefR )) {
1410+ if (!cut.IsSelectedPair (t1, t2, d_bz, 0.0 )) {
14251411 return false ;
14261412 }
14271413 } else if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDimuon ) {
0 commit comments