@@ -82,6 +82,7 @@ struct JetBackgroundAnalysisTask {
8282 // histogram definitions
8383
8484 if (doprocessRho) {
85+ registry.add (" h2_leadingjet_pt_rho" , " ; #it{p}_{T, leading jet} (GeV/#it{c}); #it{rho} (GeV/area);" , {HistType::kTH2F , {{200 , 0 ., 200.0 }, {400 , 0.0 , 400.0 }}});
8586 registry.add (" h2_centrality_ntracks" , " ; centrality; N_{tracks};" , {HistType::kTH2F , {{1100 , 0 ., 110.0 }, {10000 , 0.0 , 10000.0 }}});
8687 registry.add (" h2_ntracks_rho" , " ; N_{tracks}; #it{rho} (GeV/area);" , {HistType::kTH2F , {{10000 , 0.0 , 10000.0 }, {400 , 0.0 , 400.0 }}});
8788 registry.add (" h2_ntracks_rhom" , " ; N_{tracks}; #it{rho}_{m} (GeV/area);" , {HistType::kTH2F , {{10000 , 0.0 , 10000.0 }, {100 , 0.0 , 100.0 }}});
@@ -90,9 +91,14 @@ struct JetBackgroundAnalysisTask {
9091 }
9192
9293 if (doprocessBkgFluctuationsData || doprocessBkgFluctuationsMCD) {
94+ registry.add (" h2_leadingjet_pt_rhorandomcone" , " ; #it{p}_{T, leading jet} (GeV/#it{c}); #it{rho} (GeV/area);" , {HistType::kTH2F , {{200 , 0 ., 200.0 }, {400 , 0.0 , 400.0 }}});
9395 registry.add (" h2_centrality_rhorandomcone" , " ; centrality; #it{p}_{T,random cone} - #it{area, random cone} * #it{rho} (GeV/c);" , {HistType::kTH2F , {{1100 , 0 ., 110 .}, bkgFluctuationsAxis}});
96+ registry.add (" h2_leadingjet_pt_rhorandomconerandomtrackdirection" , " ; #it{p}_{T, leading jet} (GeV/#it{c}); #it{rho} (GeV/area);" , {HistType::kTH2F , {{200 , 0 ., 200.0 }, {400 , 0.0 , 400.0 }}});
9497 registry.add (" h2_centrality_rhorandomconerandomtrackdirection" , " ; centrality; #it{p}_{T,random cone} - #it{area, random cone} * #it{rho} (GeV/c);" , {HistType::kTH2F , {{1100 , 0 ., 110 .}, bkgFluctuationsAxis}});
98+ registry.add (" h2_leadingjet_pt_rhorandomconewithoutleadingjet" , " ; #it{p}_{T, leading jet} (GeV/#it{c}); #it{rho} (GeV/area);" , {HistType::kTH2F , {{200 , 0 ., 200.0 }, {400 , 0.0 , 400.0 }}});
9599 registry.add (" h2_centrality_rhorandomconewithoutleadingjet" , " ; centrality; #it{p}_{T,random cone} - #it{area, random cone} * #it{rho} (GeV/c);" , {HistType::kTH2F , {{1100 , 0 ., 110 .}, bkgFluctuationsAxis}});
100+ registry.add (" h2_leadingjet_pt_rhorandomconerandomtrackdirectionwithoutoneleadingjets" , " ; #it{p}_{T, leading jet} (GeV/#it{c}); #it{rho} (GeV/area);" , {HistType::kTH2F , {{200 , 0 ., 200.0 }, {400 , 0.0 , 400.0 }}});
101+ registry.add (" h2_leadingjet_pt_rhorandomconerandomtrackdirectionwithouttwoleadingjets" , " ; #it{p}_{T, leading jet} (GeV/#it{c}); #it{rho} (GeV/area);" , {HistType::kTH2F , {{200 , 0 ., 200.0 }, {400 , 0.0 , 400.0 }}});
96102 registry.add (" h2_centrality_rhorandomconerandomtrackdirectionwithoutoneleadingjets" , " ; centrality; #it{p}_{T,random cone} - #it{area, random cone} * #it{rho} (GeV/c);" , {HistType::kTH2F , {{1100 , 0 ., 110 .}, bkgFluctuationsAxis}});
97103 registry.add (" h2_centrality_rhorandomconerandomtrackdirectionwithouttwoleadingjets" , " ; centrality; #it{p}_{T,random cone} - #it{area, random cone} * #it{rho} (GeV/c);" , {HistType::kTH2F , {{1100 , 0 ., 110 .}, bkgFluctuationsAxis}});
98104 }
@@ -128,6 +134,13 @@ struct JetBackgroundAnalysisTask {
128134 }
129135 }
130136 }
137+
138+ // Check if jets exist before accessing them
139+ std::cout << " bkg fluctuations jets size: " << jets.size () << std::endl;
140+ if (jets.size () > 0 ) {
141+ std::cout << " leading jet pt random cone: " << jets.iteratorAt (0 ).pt () << std::endl;
142+ registry.fill (HIST (" h2_leadingjet_pt_rhorandomcone" ), jets.iteratorAt (0 ).pt (), randomConePt - M_PI * randomConeR * randomConeR * collision.rho ());
143+ }
131144 registry.fill (HIST (" h2_centrality_rhorandomcone" ), collision.centFT0M (), randomConePt - M_PI * randomConeR * randomConeR * collision.rho ());
132145
133146 // randomised eta,phi for tracks, to assess part of fluctuations coming from statistically independently emitted particles
@@ -141,6 +154,9 @@ struct JetBackgroundAnalysisTask {
141154 }
142155 }
143156 }
157+ if (jets.size () > 0 ) {
158+ registry.fill (HIST (" h2_leadingjet_pt_rhorandomconerandomtrackdirection" ), jets.iteratorAt (0 ).pt (), randomConePt - M_PI * randomConeR * randomConeR * collision.rho ());
159+ }
144160 registry.fill (HIST (" h2_centrality_rhorandomconerandomtrackdirection" ), collision.centFT0M (), randomConePt - M_PI * randomConeR * randomConeR * collision.rho ());
145161
146162 // removing the leading jet from the random cone
@@ -169,6 +185,9 @@ struct JetBackgroundAnalysisTask {
169185 }
170186 }
171187 }
188+ if (jets.size () > 0 ) {
189+ registry.fill (HIST (" h2_leadingjet_pt_rhorandomconewithoutleadingjet" ), jets.iteratorAt (0 ).pt (), randomConePt - M_PI * randomConeR * randomConeR * collision.rho ());
190+ }
172191 registry.fill (HIST (" h2_centrality_rhorandomconewithoutleadingjet" ), collision.centFT0M (), randomConePt - M_PI * randomConeR * randomConeR * collision.rho ());
173192
174193 // randomised eta,phi for tracks, to assess part of fluctuations coming from statistically independently emitted particles, removing tracks from 2 leading jets
@@ -190,11 +209,15 @@ struct JetBackgroundAnalysisTask {
190209 }
191210 }
192211 }
212+ if (jets.size () > 0 ) {
213+ registry.fill (HIST (" h2_leadingjet_pt_rhorandomconerandomtrackdirectionwithoutoneleadingjets" ), jets.iteratorAt (0 ).pt (), randomConePtWithoutOneLeadJet - M_PI * randomConeR * randomConeR * collision.rho ());
214+ registry.fill (HIST (" h2_leadingjet_pt_rhorandomconerandomtrackdirectionwithouttwoleadingjets" ), jets.iteratorAt (0 ).pt (), randomConePtWithoutTwoLeadJet - M_PI * randomConeR * randomConeR * collision.rho ());
215+ }
193216 registry.fill (HIST (" h2_centrality_rhorandomconerandomtrackdirectionwithoutoneleadingjets" ), collision.centFT0M (), randomConePtWithoutOneLeadJet - M_PI * randomConeR * randomConeR * collision.rho ());
194217 registry.fill (HIST (" h2_centrality_rhorandomconerandomtrackdirectionwithouttwoleadingjets" ), collision.centFT0M (), randomConePtWithoutTwoLeadJet - M_PI * randomConeR * randomConeR * collision.rho ());
195218 }
196219
197- void processRho (soa::Filtered<soa::Join<aod::JetCollisions, aod::BkgChargedRhos>>::iterator const & collision, soa::Filtered<aod::JetTracks> const & tracks)
220+ void processRho (soa::Filtered<soa::Join<aod::JetCollisions, aod::BkgChargedRhos>>::iterator const & collision, soa::Filtered<aod::JetTracks> const & tracks, aod::ChargedJets const & jets )
198221 {
199222 if (!jetderiveddatautilities::selectCollision (collision, eventSelectionBits, skipMBGapEvents)) {
200223 return ;
@@ -208,6 +231,11 @@ struct JetBackgroundAnalysisTask {
208231 nTracks++;
209232 }
210233 }
234+ std::cout << " process rho jets size: " << jets.size () << std::endl;
235+ if (jets.size () > 0 ) {
236+ std::cout << " leading jet pt rho: " << jets.iteratorAt (0 ).pt () << std::endl;
237+ registry.fill (HIST (" h2_leadingjet_pt_rho" ), jets.iteratorAt (0 ).pt (), collision.rho ());
238+ }
211239 registry.fill (HIST (" h2_centrality_ntracks" ), collision.centFT0M (), nTracks);
212240 registry.fill (HIST (" h2_ntracks_rho" ), nTracks, collision.rho ());
213241 registry.fill (HIST (" h2_ntracks_rhom" ), nTracks, collision.rhoM ());
0 commit comments