@@ -358,7 +358,7 @@ struct SingleTrackQCMC {
358358 }
359359 if (cfgFillQA) {
360360 fRegistry .add (" Track/PromptLF/positive/hEtaPhi_MatchMCHMID" , " #eta vs. #varphi of matched MCHMID" , o2::framework::HistType::kTH2F , {{180 , 0 , 2 .f * M_PI}, {80 , -4 , -2 }}, false );
361- fRegistry .add (" Track/PromptLF/positive/hdEtadPhi " , " #Delta#eta vs. #Delta#varphi between MFT-MCH-MID and MCH-MID;#varphi_{sa} - #varphi_ {gl} (rad.);#eta_{ sa} - #eta_{ gl}" , o2::framework::HistType::kTH2F , {{ 90 , -M_PI / 4 , M_PI / 4 }, {100 , -0.5 , +0.5 }}, false );
361+ fRegistry .add (" Track/PromptLF/positive/hsDelta " , " diff. between GL and associated SA;p_{T}^ {gl} (GeV/c);(p_{T}^{ sa} - p_{T}^{ gl})/p_{T}^{gl};#Delta#eta;#Delta#varphi (rad.); " , o2::framework::HistType::kTHnSparseF , {axis_pt, { 100 , -0.5 , + 0.5 }, {100 , -0.5 , +0.5 }, { 90 , -M_PI / 4 , M_PI / 4 }}, false );
362362 fRegistry .add (" Track/PromptLF/positive/hQoverPt" , " q/pT;q/p_{T} (GeV/c)^{-1}" , o2::framework::HistType::kTH1F , {{1000 , -5 , 5 }}, false );
363363 fRegistry .add (" Track/PromptLF/positive/hTrackType" , " track type" , o2::framework::HistType::kTH1F , {{6 , -0 .5f , 5.5 }}, false );
364364 fRegistry .add (" Track/PromptLF/positive/hDCAxy" , " DCAxy;DCA_{xy} (cm)" , o2::framework::HistType::kTH1F , {{100 , 0 .f , 1 .0f }}, false );
@@ -377,12 +377,12 @@ struct SingleTrackQCMC {
377377 fRegistry .add (" Track/PromptLF/positive/hChi2_Pt" , " chi2;p_{T,#mu} (GeV/c);chi2/ndf" , o2::framework::HistType::kTH2F , {{200 , 0 , 10 }, {200 , 0 .0f , 20 }}, false );
378378 fRegistry .add (" Track/PromptLF/positive/hChi2MFT_Pt" , " chi2MFT;p_{T,#mu} (GeV/c);chi2/ndf" , o2::framework::HistType::kTH2F , {{200 , 0 , 10 }, {200 , 0 .0f , 20 }}, false );
379379 fRegistry .add (" Track/PromptLF/positive/hChi2MatchMCHMID_Pt" , " chi2 match MCH-MID;p_{T,#mu} (GeV/c);chi2/ndf" , o2::framework::HistType::kTH2F , {{200 , 0 , 10 }, {200 , 0 .0f , 20 }}, false );
380- fRegistry .add (" Track/PromptLF/positive/hChi2MatchMCHMFT_Pt" , " chi2 match MCH-MFT;p_{T,#mu} (GeV/c);chi2/ndf" , o2::framework::HistType::kTH2F , {{200 , 0 , 10 }, {100 , 0 .0f , 50 }}, false );
380+ fRegistry .add (" Track/PromptLF/positive/hChi2MatchMCHMFT_Pt" , " chi2 match MCH-MFT;p_{T,#mu} (GeV/c);chi2/ndf" , o2::framework::HistType::kTH2F , {{200 , 0 , 10 }, {200 , 0 .0f , 100 }}, false );
381381 fRegistry .add (" Track/PromptLF/positive/hMFTClusterMap" , " MFT cluster map" , o2::framework::HistType::kTH1F , {{1024 , -0.5 , 1023.5 }}, false );
382382 fRegistry .add (" Track/PromptLF/positive/hPtGen_DeltaPtOverPtGen" , " muon p_{T} resolution;p_{T}^{gen} (GeV/c);(p_{T}^{rec} - p_{T}^{gen})/p_{T}^{gen}" , o2::framework::HistType::kTH2F , {{200 , 0 , 10 }, {200 , -1 .0f , 1 .0f }}, true );
383383 fRegistry .add (" Track/PromptLF/positive/hPtGen_DeltaEta" , " muon #eta resolution;p_{T}^{gen} (GeV/c);#eta^{rec} - #eta^{gen}" , o2::framework::HistType::kTH2F , {{200 , 0 , 10 }, {100 , -0 .05f , 0 .05f }}, true );
384384 fRegistry .add (" Track/PromptLF/positive/hPtGen_DeltaPhi" , " muon #varphi resolution;p_{T}^{gen} (GeV/c);#varphi^{rec} - #varphi^{gen} (rad.)" , o2::framework::HistType::kTH2F , {{200 , 0 , 10 }, {100 , -0 .05f , 0 .05f }}, true );
385- fRegistry .add (" Track/PromptLF/positive/hdR_Chi2MatchMCHMFT" , " dr vs. matching chi2 MCH-MFT;chi2 match MCH-MFT;#DeltaR;" , o2::framework::HistType::kTH2F , {{200 , 0 , 50 }, {200 , 0 , 0.5 }}, false );
385+ fRegistry .add (" Track/PromptLF/positive/hdR_Chi2MatchMCHMFT" , " dr vs. matching chi2 MCH-MFT;chi2 match MCH-MFT;#DeltaR;" , o2::framework::HistType::kTH2F , {{200 , 0 . 0f , 100 }, {200 , 0 , 0.5 }}, false );
386386 }
387387 fRegistry .addClone (" Track/PromptLF/positive/" , " Track/PromptLF/negative/" );
388388 fRegistry .addClone (" Track/PromptLF/" , " Track/NonPromptLF/" );
@@ -741,6 +741,7 @@ struct SingleTrackQCMC {
741741 float dca_xy = o2::aod::pwgem::dilepton::utils::emtrackutil::fwdDcaXYinSigma (track);
742742 float deta = track.etaMatchedMCHMID () - track.eta ();
743743 float dphi = track.phiMatchedMCHMID () - track.phi ();
744+ float reldpt = (track.ptMatchedMCHMID () - track.pt ()) / track.pt ();
744745 o2::math_utils::bringToPMPi (dphi);
745746
746747 float weight = 1 .f ;
@@ -756,7 +757,7 @@ struct SingleTrackQCMC {
756757 }
757758 if (cfgFillQA) {
758759 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" positive/hEtaPhi_MatchMCHMID" ), track.phiMatchedMCHMID (), track.etaMatchedMCHMID (), weight);
759- fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" positive/hdEtadPhi " ), dphi, deta, weight);
760+ fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" positive/hsDelta " ), track. pt (), reldpt, deta, dphi , weight);
760761 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" positive/hQoverPt" ), track.sign () / track.pt ());
761762 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" positive/hTrackType" ), track.trackType ());
762763 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" positive/hDCAxy" ), std::sqrt (std::pow (track.fwdDcaX (), 2 ) + std::pow (track.fwdDcaY (), 2 )));
@@ -789,7 +790,7 @@ struct SingleTrackQCMC {
789790 }
790791 if (cfgFillQA) {
791792 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" negative/hEtaPhi_MatchMCHMID" ), track.phiMatchedMCHMID (), track.etaMatchedMCHMID (), weight);
792- fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" negative/hdEtadPhi " ), dphi, deta, weight);
793+ fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" negative/hsDelta " ), track. pt (), reldpt, deta, dphi , weight);
793794 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" negative/hQoverPt" ), track.sign () / track.pt ());
794795 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" negative/hTrackType" ), track.trackType ());
795796 fRegistry .fill (HIST (" Track/" ) + HIST (lepton_source_types[lepton_source_id]) + HIST (" negative/hDCAxy" ), std::sqrt (std::pow (track.fwdDcaX (), 2 ) + std::pow (track.fwdDcaY (), 2 )));
@@ -1055,6 +1056,9 @@ struct SingleTrackQCMC {
10551056 if (cfgEventGeneratorType >= 0 && mccollision_from_track.getSubGeneratorId () != cfgEventGeneratorType) {
10561057 continue ;
10571058 }
1059+ if (cfgRequireTrueAssociation && (mctrack.emmceventId () != collision.emmceventId ())) {
1060+ continue ;
1061+ }
10581062
10591063 if (dielectroncuts.cfg_pid_scheme == static_cast <int >(DielectronCut::PIDSchemes::kPIDML )) {
10601064 if (!cut.template IsSelectedTrack <false >(track)) {
@@ -1074,6 +1078,9 @@ struct SingleTrackQCMC {
10741078 if (cfgEventGeneratorType >= 0 && mccollision_from_track.getSubGeneratorId () != cfgEventGeneratorType) {
10751079 continue ;
10761080 }
1081+ if (cfgRequireTrueAssociation && (mctrack.emmceventId () != collision.emmceventId ())) {
1082+ continue ;
1083+ }
10771084 if (!cut.template IsSelectedTrack <false >(track)) {
10781085 continue ;
10791086 }
0 commit comments