@@ -181,7 +181,7 @@ struct Dilepton {
181181 Configurable<bool > cfg_require_diff_sides{" cfg_require_diff_sides" , false , " flag to require 2 tracks are from different sides." };
182182
183183 Configurable<bool > cfg_apply_cuts_from_prefilter{" cfg_apply_cuts_from_prefilter" , false , " flag to apply phiv cut inherited from prefilter" };
184- Configurable<uint16_t > cfg_prefilter_bits{" cfg_prefilter_bits" , 0 , " prefilter bits [kNone : 0, kMee : 1, kPhiV : 2, kSplitOrMergedTrackLS : 4, kSplitOrMergedTrackULS : 8] Please consider logical-OR among them." }; // see PairUtilities.h
184+ Configurable<uint16_t > cfg_prefilter_bits{" cfg_prefilter_bits" , 0 , " prefilter bits [kNone : 0, kMee : 1, kPhiV : 2, kSplitOrMergedTrackLS : 4, kSplitOrMergedTrackULS : 8, kSplitOrMergedTrackLSGeom : 16, kSplitOrMergedTrackULSGeom : 32 ] Please consider logical-OR among them." }; // see PairUtilities.h
185185
186186 Configurable<float > cfg_min_pt_track{" cfg_min_pt_track" , 0.2 , " min pT for single track" };
187187 Configurable<float > cfg_max_pt_track{" cfg_max_pt_track" , 1e+10 , " max pT for single track" };
@@ -531,11 +531,11 @@ struct Dilepton {
531531
532532 if (cfgAnalysisType == static_cast <int >(o2::aod::pwgem::dilepton::utils::pairutil::DileptonAnalysisType::kQC )) {
533533 fRegistry .add (" Pair/same/uls/hs" , " dilepton" , kTHnSparseD , {axis_mass, axis_pt, axis_dca}, true );
534- fRegistry .add (" Pair/same/uls/hsDeltaP " , " difference of p between 2 tracks;|p_{T,1} - p_{T,2}|/|p_{T,1} + p_{T,2}|; #Delta#eta;#Delta# varphi (rad.);" , kTHnSparseD , {{20 , 0 , 1 }, {100 , -1 , +1 }, { 180 , -M_PI, M_PI }}, true );
534+ fRegistry .add (" Pair/same/uls/hDeltaEtaDeltaPhi " , " difference of p between 2 tracks;#Delta#varphi (rad.);#Delta#eta; " , kTH2D , {{180 , -M_PI, M_PI }, {100 , -1 , +1 }}, true );
535535 fRegistry .add (" Pair/same/uls/hGeomDeltaZRDeltaPhi" , Form (" difference in z-r#varphi plane between 2 tracks at r = %2.1f cm;r#Delta#varphi (cm);#Deltaz (cm);" , dielectroncuts.cfg_x_to_go .value ), kTH2D , {{200 , -100 , 100 }, {200 , -10 , 10 }}, true );
536536 if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron ) {
537537 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
538- fRegistry .add (" Pair/same/uls/hMvsOpAng" , " m_{ee} vs. angle between 2 tracks;#omega (rad.);m_{ee} (GeV/c^{2})" , kTH2D , {{100 , 0 , 2.0 }, {20 , 0 .0f , 3.2 }}, true );
538+ fRegistry .add (" Pair/same/uls/hMvsOpAng" , " m_{ee} vs. angle between 2 tracks;#omega (rad.);m_{ee} (GeV/c^{2})" , kTH2D , {{90 , 0 , M_PI }, {100 , 0 .0f , 1 . 0f }}, true );
539539 fRegistry .add (" Pair/same/uls/hDCA1vsDCA2" , " DCA of leg1 vs. DCA of leg2;DCA1(#sigma);DCA2 (#sigma)" , kTH2D , {{100 , 0 , 10.0 }, {100 , 0 , 10 }}, true );
540540 }
541541 fRegistry .addClone (" Pair/same/uls/" , " Pair/same/lspp/" );
@@ -910,7 +910,6 @@ struct Dilepton {
910910 }
911911
912912 if (cfgAnalysisType == static_cast <int >(o2::aod::pwgem::dilepton::utils::pairutil::DileptonAnalysisType::kQC )) {
913- float dpt = fabs (v1.Pt () - v2.Pt ()) / fabs (v1.Pt () + v2.Pt ());
914913 float deta = t1.sign () * v1.Pt () > t2.sign () * v2.Pt () ? v1.Eta () - v2.Eta () : v2.Eta () - v1.Eta ();
915914 float dphi = t1.sign () * v1.Pt () > t2.sign () * v2.Pt () ? v1.Phi () - v2.Phi () : v2.Phi () - v1.Phi ();
916915 o2::math_utils::bringToPMPi (dphi);
@@ -920,23 +919,23 @@ struct Dilepton {
920919
921920 if (t1.sign () * t2.sign () < 0 ) { // ULS
922921 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" uls/hs" ), v12.M (), v12.Pt (), pair_dca, weight);
923- fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" uls/hsDeltaP " ), dpt , deta, dphi , weight);
922+ fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" uls/hDeltaEtaDeltaPhi " ), dphi , deta, weight);
924923 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" uls/hGeomDeltaZRDeltaPhi" ), rdphi_geom, dz_geom, weight);
925924 if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron ) {
926925 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" uls/hMvsPhiV" ), phiv, v12.M (), weight);
927926 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" uls/hMvsOpAng" ), opAng, v12.M (), weight);
928927 }
929928 } else if (t1.sign () > 0 && t2.sign () > 0 ) { // LS++
930929 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lspp/hs" ), v12.M (), v12.Pt (), pair_dca, weight);
931- fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lspp/hsDeltaP " ), dpt , deta, dphi , weight);
930+ fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lspp/hDeltaEtaDeltaPhi " ), dphi , deta, weight);
932931 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lspp/hGeomDeltaZRDeltaPhi" ), rdphi_geom, dz_geom, weight);
933932 if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron ) {
934933 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lspp/hMvsPhiV" ), phiv, v12.M (), weight);
935934 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lspp/hMvsOpAng" ), opAng, v12.M (), weight);
936935 }
937936 } else if (t1.sign () < 0 && t2.sign () < 0 ) { // LS--
938937 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lsmm/hs" ), v12.M (), v12.Pt (), pair_dca, weight);
939- fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lsmm/hsDeltaP " ), dpt , deta, dphi , weight);
938+ fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lsmm/hDeltaEtaDeltaPhi " ), dphi , deta, weight);
940939 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lsmm/hGeomDeltaZRDeltaPhi" ), rdphi_geom, dz_geom, weight);
941940 if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron ) {
942941 fRegistry .fill (HIST (" Pair/" ) + HIST (event_pair_types[ev_id]) + HIST (" lsmm/hMvsPhiV" ), phiv, v12.M (), weight);
@@ -1139,7 +1138,9 @@ struct Dilepton {
11391138 ifnode ((dielectroncuts.cfg_prefilter_bits.node() & static_cast<uint16_t>(1 << int (o2::aod::pwgem::dilepton::utils::pairutil::DileptonPrefilterBit::kMee ))) > static_cast<uint16_t>(0 ), (o2::aod::emprimaryelectron::pfbpi0 & static_cast <uint16_t >(1 << int (o2::aod::pwgem::dilepton::utils::pairutil::DileptonPrefilterBit::kMee ))) <= static_cast<uint16_t>(0 ), true) &&
11401139 ifnode((dielectroncuts.cfg_prefilter_bits.node() & static_cast<uint16_t>(1 << int (o2::aod::pwgem::dilepton::utils::pairutil::DileptonPrefilterBit::kPhiV ))) > static_cast<uint16_t>(0 ), (o2::aod::emprimaryelectron::pfbpi0 & static_cast <uint16_t >(1 << int (o2::aod::pwgem::dilepton::utils::pairutil::DileptonPrefilterBit::kPhiV ))) <= static_cast<uint16_t>(0 ), true) &&
11411140 ifnode((dielectroncuts.cfg_prefilter_bits.node() & static_cast<uint16_t>(1 << int (o2::aod::pwgem::dilepton::utils::pairutil::DileptonPrefilterBit::kSplitOrMergedTrackLS ))) > static_cast<uint16_t>(0 ), (o2::aod::emprimaryelectron::pfbpi0 & static_cast <uint16_t >(1 << int (o2::aod::pwgem::dilepton::utils::pairutil::DileptonPrefilterBit::kSplitOrMergedTrackLS ))) <= static_cast<uint16_t>(0 ), true) &&
1142- ifnode((dielectroncuts.cfg_prefilter_bits.node() & static_cast<uint16_t>(1 << int (o2::aod::pwgem::dilepton::utils::pairutil::DileptonPrefilterBit::kSplitOrMergedTrackULS ))) > static_cast<uint16_t>(0 ), (o2::aod::emprimaryelectron::pfbpi0 & static_cast <uint16_t >(1 << int (o2::aod::pwgem::dilepton::utils::pairutil::DileptonPrefilterBit::kSplitOrMergedTrackULS ))) <= static_cast<uint16_t>(0 ), true),
1141+ ifnode((dielectroncuts.cfg_prefilter_bits.node() & static_cast<uint16_t>(1 << int (o2::aod::pwgem::dilepton::utils::pairutil::DileptonPrefilterBit::kSplitOrMergedTrackULS ))) > static_cast<uint16_t>(0 ), (o2::aod::emprimaryelectron::pfbpi0 & static_cast <uint16_t >(1 << int (o2::aod::pwgem::dilepton::utils::pairutil::DileptonPrefilterBit::kSplitOrMergedTrackULS ))) <= static_cast<uint16_t>(0 ), true) &&
1142+ ifnode((dielectroncuts.cfg_prefilter_bits.node() & static_cast<uint16_t>(1 << int (o2::aod::pwgem::dilepton::utils::pairutil::DileptonPrefilterBit::kSplitOrMergedTrackLSGeom ))) > static_cast<uint16_t>(0 ), (o2::aod::emprimaryelectron::pfbpi0 & static_cast <uint16_t >(1 << int (o2::aod::pwgem::dilepton::utils::pairutil::DileptonPrefilterBit::kSplitOrMergedTrackLSGeom ))) <= static_cast<uint16_t>(0 ), true) &&
1143+ ifnode((dielectroncuts.cfg_prefilter_bits.node() & static_cast<uint16_t>(1 << int (o2::aod::pwgem::dilepton::utils::pairutil::DileptonPrefilterBit::kSplitOrMergedTrackULSGeom ))) > static_cast<uint16_t>(0 ), (o2::aod::emprimaryelectron::pfbpi0 & static_cast <uint16_t >(1 << int (o2::aod::pwgem::dilepton::utils::pairutil::DileptonPrefilterBit::kSplitOrMergedTrackULSGeom ))) <= static_cast<uint16_t>(0 ), true),
11431144 o2::aod::emprimaryelectron::pfbpi0 >= static_cast<uint16_t>(0 ));
11441145
11451146 Partition<FilteredMyElectrons> positive_electrons = o2::aod::emprimaryelectron::sign > int8_t (0 );
0 commit comments