3636#include " PWGJE/Core/JetFinder.h"
3737#include " PWGJE/Core/JetFindingUtilities.h"
3838#include " PWGJE/DataModel/Jet.h"
39-
4039#include " PWGJE/Core/JetDerivedDataUtilities.h"
4140
4241#include " EventFiltering/filterTables.h"
@@ -128,7 +127,9 @@ struct JetHadronRecoil {
128127 {" hReferencePt" , " jet p_{T};p_{T,jet};entries" , {HistType::kTH1F , {{500 , -100 , 400 }}}},
129128 {" hSignalPt" , " jet p_{T};p_{T,jet};entries" , {HistType::kTH1F , {{500 , -100 , 400 }}}},
130129 {" hSignalTriggers" , " trigger p_{T};p_{T,trig};entries" , {HistType::kTH1F , {{150 , 0 , 150 }}}},
130+ {" hSignalPtHard" , " jet p_{T} vs #hat{p};p_{T,jet};#frac{p_{T,trig}}{#hat{p}}" , {HistType::kTH2F , {{500 , -100 , 400 }, {20 , 0 , 5 }}}},
131131 {" hReferenceTriggers" , " trigger p_{T};p_{T,trig};entries" , {HistType::kTH1F , {{150 , 0 , 150 }}}},
132+ {" hReferencePtHard" , " jet p_{T} vs #hat{p};p_{T,jet};#frac{p_{T,trig}}{#hat{p}}" , {HistType::kTH2F , {{500 , -100 , 400 }, {20 , 0 , 5 }}}},
132133 {" hSigEventTriggers" , " N_{triggers};events" , {HistType::kTH1F , {{10 , 0 , 10 }}}},
133134 {" hRefEventTriggers" , " N_{triggers};events" , {HistType::kTH1F , {{10 , 0 , 10 }}}},
134135 {" hJetPt" , " jet p_{T};p_{T,jet};entries" , {HistType::kTH1F , {{500 , -100 , 400 }}}},
@@ -195,7 +196,9 @@ struct JetHadronRecoil {
195196 {
196197 bool isSigCol;
197198 std::vector<double > phiTTAr;
199+ std::vector<double > ptTTAr;
198200 double phiTT = 0 ;
201+ double ptTT = 0 ;
199202 int trigNumber = 0 ;
200203 int nTT = 0 ;
201204 double leadingPT = 0 ;
@@ -214,11 +217,13 @@ struct JetHadronRecoil {
214217 }
215218 if (isSigCol && track.pt () < ptTTsigMax && track.pt () > ptTTsigMin) {
216219 phiTTAr.push_back (track.phi ());
220+ ptTTAr.push_back (track.pt ());
217221 registry.fill (HIST (" hSignalTriggers" ), track.pt (), weight);
218222 nTT++;
219223 }
220224 if (!isSigCol && track.pt () < ptTTrefMax && track.pt () > ptTTrefMin) {
221225 phiTTAr.push_back (track.phi ());
226+ ptTTAr.push_back (track.pt ());
222227 registry.fill (HIST (" hReferenceTriggers" ), track.pt (), weight);
223228 nTT++;
224229 }
@@ -230,6 +235,7 @@ struct JetHadronRecoil {
230235 if (nTT > 0 ) {
231236 trigNumber = rand->Integer (nTT);
232237 phiTT = phiTTAr[trigNumber];
238+ ptTT = ptTTAr[trigNumber];
233239 if (isSigCol) {
234240 registry.fill (HIST (" hNtrig" ), 1.5 , weight);
235241 registry.fill (HIST (" hSigEventTriggers" ), nTT, weight);
@@ -279,6 +285,7 @@ struct JetHadronRecoil {
279285 registry.fill (HIST (" hSignalPtDPhi" ), dphi, jet.pt () - (rho * jet.area ()), weight);
280286 if (std::abs (dphi - o2::constants::math::PI) < 0.6 ) {
281287 registry.fill (HIST (" hSignalPt" ), jet.pt () - (rho * jet.area ()), weight);
288+ registry.fill (HIST (" hSignalPtHard" ), jet.pt () - (rho * jet.area ()), ptTT / pTHat, weight);
282289 }
283290 }
284291 if (!isSigCol) {
@@ -296,6 +303,7 @@ struct JetHadronRecoil {
296303 }
297304 if (std::abs (dphi - o2::constants::math::PI) < 0.6 ) {
298305 registry.fill (HIST (" hReferencePt" ), jet.pt () - (rhoReference * jet.area ()), weight);
306+ registry.fill (HIST (" hReferencePtHard" ), jet.pt () - (rhoReference * jet.area ()), ptTT / pTHat, weight);
299307 }
300308 }
301309 }
0 commit comments