@@ -160,6 +160,8 @@ struct HfTaskElectronWeakBoson {
160160 const AxisSpec axisM02{100 , 0 , 1 , " M02" };
161161 const AxisSpec axisdPhi{100 , -0.5 , 0.5 , " dPhi" };
162162 const AxisSpec axisdEta{100 , -0.5 , 0.5 , " dEta" };
163+ const AxisSpec axisdR{20 , 0.0 , 0.2 , " dR" };
164+ const AxisSpec axisNcell{50 , 0.0 , 50.0 , " Ncell" };
163165 const AxisSpec axisPhi{350 , 0 , 7 , " Phi" };
164166 const AxisSpec axisEop{200 , 0 , 2 , " Eop" };
165167 const AxisSpec axisChi2{250 , 0.0 , 25.0 , " #chi^{2}" };
@@ -184,7 +186,8 @@ struct HfTaskElectronWeakBoson {
184186 registry.add (" hPt" , " track pt" , kTH1F , {axisPt});
185187 registry.add (" hTPCNsigma" , " TPC electron Nsigma" , kTH2F , {{axisPt}, {axisNsigma}});
186188 registry.add (" hEnergy" , " EMC cluster energy" , kTH1F , {axisE});
187- registry.add (" hTrMatch" , " Track EMC Match" , kTH2F , {{axisdPhi}, {axisdEta}});
189+ registry.add (" hEnergyNcell" , " EMC cluster energy and cell" , kTH2F , {{axisE}, {axisNcell}});
190+ registry.add (" hTrMatchR" , " Track EMC Match in radius" , kTH2F , {{axisPt}, {axisdR}});
188191 registry.add (" hTrMatch_mim" , " Track EMC Match minimu minimumm" , kTH2F , {{axisdPhi}, {axisdEta}});
189192 registry.add (" hMatchPhi" , " Match in Phi" , kTH2F , {{axisPhi}, {axisPhi}});
190193 registry.add (" hMatchEta" , " Match in Eta" , kTH2F , {{axisEta}, {axisEta}});
@@ -198,6 +201,7 @@ struct HfTaskElectronWeakBoson {
198201 registry.add (" hInvMassZeeLs" , " invariant mass for Z LS pair" , kTH2F , {{axisPt}, {axisInvMassZ}});
199202 registry.add (" hInvMassZeeUls" , " invariant mass for Z ULS pair" , kTH2F , {{axisPt}, {axisInvMassZ}});
200203 registry.add (" hTHnElectrons" , " electron info" , HistType::kTHnSparseF , {axisPt, axisNsigma, axisM02, axisEop, axisIsoEnergy, axisIsoTrack});
204+ registry.add (" hTHnTrMatch" , " Track EMC Match" , HistType::kTHnSparseF , {axisPt, axisdPhi, axisdEta});
201205
202206 // hisotgram for EMCal trigger
203207 registry.add (" hEMCalTrigger" , " EMCal trigger" , kTH1F , {axisTrigger});
@@ -298,7 +302,7 @@ struct HfTaskElectronWeakBoson {
298302 registry.fill (HIST (" hEMCalTrigger" ), isTriggered ? 1 : 0 );
299303
300304 // Skip event if not triggered and we're processing skimmed data
301- if (!isTriggered && cfgSkimmedProcessing ) {
305+ if (!isTriggered) {
302306 return ;
303307 }
304308 }
@@ -397,13 +401,16 @@ struct HfTaskElectronWeakBoson {
397401 dPhiMin = dPhi;
398402 dEtaMin = dEta;
399403 }
400- registry.fill (HIST (" hTrMatch " ), dPhi, dEta);
404+ registry.fill (HIST (" hTHnTrMatch " ), match. track_as <TrackEle>(). pt ( ), dPhi, dEta);
401405 registry.fill (HIST (" hEMCtime" ), timeEmc);
402406 registry.fill (HIST (" hEnergy" ), energyEmc);
403407
404- if (r > rMatchMax)
408+ if (std::abs (dPhi) > rMatchMax || std::abs (dEta) > rMatchMax)
405409 continue ;
406410
411+ registry.fill (HIST (" hTrMatchR" ), match.track_as <TrackEle>().pt (), r);
412+ registry.fill (HIST (" hEnergyNcell" ), energyEmc, match.emcalcluster_as <SelectedClusters>().nCells ());
413+
407414 const auto & cluster = match.emcalcluster_as <SelectedClusters>();
408415
409416 double eop = energyEmc / match.track_as <TrackEle>().p ();
0 commit comments