@@ -194,6 +194,9 @@ struct JetSpectraEseTask {
194194 static constexpr EventPlaneFiller PsiFillerEP = {true , true };
195195 static constexpr EventPlaneFiller PsiFillerEse = {true , false };
196196 static constexpr EventPlaneFiller PsiFillerFalse = {false , false };
197+ TRandom3* fRndm = new TRandom3(0 );
198+ static constexpr int NumSubSmpl = 10 ;
199+ std::array<std::shared_ptr<THnSparse>, NumSubSmpl> hSameSub;
197200
198201 void init (o2::framework::InitContext&)
199202 {
@@ -246,10 +249,23 @@ struct JetSpectraEseTask {
246249 registry.add (" eventQA/hCentPhi" , " centrality vs #rho(#varphi); centrality; #rho(#varphi) " , {HistType::kTH2F , {{centAxis}, {210 , -10.0 , 200.0 }}});
247250 registry.add (" eventQA/hdPhiRhoPhi" , " #varphi vs #rho(#varphi); #varphi - #Psi_{EP,2}; #rho(#varphi) " , {HistType::kTH2F , {{40 , -o2::constants::math::PI, o2::constants::math::PI}, {210 , -10.0 , 200.0 }}});
248251
249- // lead dphi - Psi2 EP hist
250252 registry.add (" h3CentLeadjetdPhi" , " ;Centrality;#phi_{lead jet} - #Psi_{2};#it{q}_{2}" , {HistType::kTH3F , {{centAxis}, {dphiAxis}, {eseAxis}}});
251253 registry.add (" h3CenttrPhiPsi2" , " ;Centrality;#phi_{track} - #Psi_{2};#it{q}_{2}" , {HistType::kTH3F , {{centAxis}, {dphiAxis}, {eseAxis}}});
252- registry.add (" thn_jethad_corr_same" , " jet-had; centrality; #it{p}_{T,lead jet} - #rho_{local} * area_{jet} (GeV/#it{c}); #it{p}_{T,sublead jet} - #rho_{local} * area_{jet} (GeV/#it{c}); #it{p}_{T,track} (GeV/#it{c}); #Delta#eta; #Delta#phi; #Delta#phi to EP; #it{q}_{2}" , {HistType::kTHnSparseF , {{centAxis}, {jetPtAxis}, {jetPtAxis}, {trackPtAxis}, {detaAxis}, {dphiAxis}, {dPhiAxis}, {eseAxis}}});
254+
255+ std::vector<o2::framework::AxisSpec> axes = {
256+ {centAxis},
257+ {jetPtAxis},
258+ {jetPtAxis},
259+ {trackPtAxis},
260+ {detaAxis},
261+ {dphiAxis},
262+ {dPhiAxis},
263+ {eseAxis}};
264+ registry.add (" thn_jethad_corr_same" , " jet-had; centrality; #it{p}_{T,lead jet} - #rho_{local} * area_{jet} (GeV/#it{c}); #it{p}_{T,sublead jet} - #rho_{local} * area_{jet} (GeV/#it{c}); #it{p}_{T,track} (GeV/#it{c}); #Delta#eta; #Delta#phi; #Delta#phi to EP; #it{q}_{2}" , {HistType::kTHnSparseF , axes});
265+ for (int i = 0 ; i < NumSubSmpl; ++i) {
266+ std::string n = fmt::format (" subsamples/thn_jethad_corr_same_subsample{}" , i);
267+ hSameSub[i] = registry.add <THnSparse>(n, " same;..." , o2::framework::HistType::kTHnSparseF , axes);
268+ }
253269 registry.add (" hNtrig" , " " , {HistType::kTHnSparseF , {{centAxis}, {jetPtAxis}, {dPhiAxis}, {eseAxis}}});
254270
255271 registry.add (" trackQA/before/hTrackPt" , " " , {HistType::kTH2F , {{centAxis}, {trackPtAxis}}});
@@ -415,6 +431,9 @@ struct JetSpectraEseTask {
415431 registry.fill (HIST (" eventQA/hRho" ), centrality, collision.rho ());
416432 registry.fill (HIST (" eventQA/hCentralityAnalyzed" ), centrality);
417433
434+ float lRndm = NumSubSmpl * fRndm ->Rndm ();
435+ auto lRndInd = static_cast <int >(lRndm);
436+
418437 using JetIter = typename TJets::iterator;
419438 JetIter leadingJet;
420439 JetIter subleadingJet;
@@ -491,6 +510,7 @@ struct JetSpectraEseTask {
491510 auto dphi = RecoDecay::constrainAngle (track.phi () - leadJet.phi (), -o2::constants::math::PIHalf);
492511 registry.fill (HIST (" h3CenttrPhiPsi2" ), centrality, RecoDecay::constrainAngle (track.phi () - psi.psi2 , -o2::constants::math::PI), qPerc[0 ]);
493512 registry.fill (HIST (" thn_jethad_corr_same" ), centrality, dijetEv.lead , dijetEv.sub , track.pt (), deta, dphi, leaddPhi, qPerc[0 ]);
513+ hSameSub[lRndInd]->Fill (centrality, dijetEv.lead , dijetEv.sub , track.pt (), deta, dphi, leaddPhi, qPerc[0 ]);
494514 }
495515 }
496516
0 commit comments