Skip to content

Commit ed1eae6

Browse files
PWGJE - random cone add randomised eta,phi without leading jets (#7684)
* PWGJE - trackEfficiency quick fix * PWGJE - random cone add randomised eta,phi without leading jets * clang fixes
1 parent b256183 commit ed1eae6

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

PWGJE/Tasks/jetfinderQA.cxx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ struct JetFinderQATask {
211211
registry.add("h2_centrality_rhorandomcone", "; centrality; #it{p}_{T,random cone} - #it{area, random cone} * #it{rho} (GeV/c);", {HistType::kTH2F, {{1100, 0., 110.}, {800, -400.0, 400.0}}});
212212
registry.add("h2_centrality_rhorandomconerandomtrackdirection", "; centrality; #it{p}_{T,random cone} - #it{area, random cone} * #it{rho} (GeV/c);", {HistType::kTH2F, {{1100, 0., 110.}, {800, -400.0, 400.0}}});
213213
registry.add("h2_centrality_rhorandomconewithoutleadingjet", "; centrality; #it{p}_{T,random cone} - #it{area, random cone} * #it{rho} (GeV/c);", {HistType::kTH2F, {{1100, 0., 110.}, {800, -400.0, 400.0}}});
214+
registry.add("h2_centrality_rhorandomconerandomtrackdirectionwithoutoneleadingjets", "; centrality; #it{p}_{T,random cone} - #it{area, random cone} * #it{rho} (GeV/c);", {HistType::kTH2F, {{1100, 0., 110.}, {800, -400.0, 400.0}}});
215+
registry.add("h2_centrality_rhorandomconerandomtrackdirectionwithouttwoleadingjets", "; centrality; #it{p}_{T,random cone} - #it{area, random cone} * #it{rho} (GeV/c);", {HistType::kTH2F, {{1100, 0., 110.}, {800, -400.0, 400.0}}});
214216
}
215217

216218
if (doprocessJetsMCP || doprocessJetsMCPWeighted) {
@@ -363,6 +365,17 @@ struct JetFinderQATask {
363365
return true;
364366
}
365367

368+
template <typename T, typename U>
369+
bool trackIsInJet(T const& track, U const& jet)
370+
{
371+
for (auto const& constituentId : jet.tracksIds()) {
372+
if (constituentId == track.globalIndex()) {
373+
return true;
374+
}
375+
}
376+
return false;
377+
}
378+
366379
template <typename T>
367380
void fillHistograms(T const& jet, float centrality, float occupancy, float weight = 1.0)
368381
{
@@ -648,6 +661,26 @@ struct JetFinderQATask {
648661
}
649662

650663
registry.fill(HIST("h2_centrality_rhorandomconewithoutleadingjet"), collision.centrality(), randomConePt - M_PI * randomConeR * randomConeR * collision.rho());
664+
665+
// randomised eta,phi for tracks, to assess part of fluctuations coming from statistically independently emitted particles, removing tracks from 2 leading jets
666+
double randomConePtWithoutOneLeadJet = 0;
667+
double randomConePtWithoutTwoLeadJet = 0;
668+
for (auto const& track : tracks) {
669+
if (jetderiveddatautilities::selectTrack(track, trackSelection)) {
670+
float dPhi = RecoDecay::constrainAngle(randomNumber.Uniform(0.0, 2 * M_PI) - randomConePhi, static_cast<float>(-M_PI)); // ignores actual phi of track
671+
float dEta = randomNumber.Uniform(trackEtaMin, trackEtaMax) - randomConeEta; // ignores actual eta of track
672+
if (TMath::Sqrt(dEta * dEta + dPhi * dPhi) < randomConeR) {
673+
if (!trackIsInJet(track, jets.iteratorAt(0))) {
674+
randomConePtWithoutOneLeadJet += track.pt();
675+
if (!trackIsInJet(track, jets.iteratorAt(1))) {
676+
randomConePtWithoutTwoLeadJet += track.pt();
677+
}
678+
}
679+
}
680+
}
681+
}
682+
registry.fill(HIST("h2_centrality_rhorandomconerandomtrackdirectionwithoutoneleadingjets"), collision.centrality(), randomConePtWithoutOneLeadJet - M_PI * randomConeR * randomConeR * collision.rho());
683+
registry.fill(HIST("h2_centrality_rhorandomconerandomtrackdirectionwithouttwoleadingjets"), collision.centrality(), randomConePtWithoutTwoLeadJet - M_PI * randomConeR * randomConeR * collision.rho());
651684
}
652685

653686
void processJetsData(soa::Filtered<JetCollisions>::iterator const& collision, soa::Join<aod::ChargedJets, aod::ChargedJetConstituents> const& jets, JetTracks const&)

PWGJE/Tasks/trackEfficiency.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ struct TrackEfficiencyJets {
207207
if (doprocessParticles || doprocessParticlesWeighted) {
208208
AxisSpec centAxis = {121, -10., 111., "centrality (%)"};
209209
registry.add("h_mccollisions", "event status;event status;entries", {HistType::kTH1F, {{4, 0.0, 4.0}}});
210-
registry.add("h2_centrality_mccollisions", "centrality vs mccollisions; centrality; collisions", {HistType::kTH1F, {centAxis, {4, 0.0, 4.0}}});
210+
registry.add("h2_centrality_mccollisions", "centrality vs mccollisions; centrality; collisions", {HistType::kTH2F, {centAxis, {4, 0.0, 4.0}}});
211211
}
212212
if (doprocessTracksWeighted) {
213213
registry.add("h_collisions_weighted", "event status;event status;entries", {HistType::kTH1F, {{4, 0.0, 4.0}}});

0 commit comments

Comments
 (0)