Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 14 additions & 17 deletions PWGJE/Tasks/jetSpectraCharged.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -937,8 +937,7 @@ struct JetSpectraCharged {
if (!isAcceptedJet<aod::JetTracks>(jet)) {
continue;
}
float jetweight = jet.eventWeight();
fillJetAreaSubHistograms(jet, centrality, collision.rho(), jetweight);
fillJetAreaSubHistograms(jet, centrality, collision.rho(), eventWeight);
}
}
PROCESS_SWITCH(JetSpectraCharged, processSpectraAreaSubMCDWeighted, "jet spectra with rho-area subtraction for MCD", false);
Expand Down Expand Up @@ -1091,45 +1090,45 @@ struct JetSpectraCharged {
}
}

float eventWeight = mccollision.weight();
for (auto const& jet : jets) {
if (!jetfindingutilities::isInEtaAcceptance(jet, jetEtaMin, jetEtaMax, trackEtaMin, trackEtaMax)) {
continue;
}
if (!isAcceptedJet<aod::JetParticles>(jet, mcLevelIsParticleLevel)) {
continue;
}
float jetweight = jet.eventWeight();
registry.fill(HIST("h2_jet_pt_part_eventselection"), jet.pt(), 1.0, jetweight); // INEL
registry.fill(HIST("h2_jet_pt_part_eventselection"), jet.pt(), 1.0, eventWeight); // INEL

if (!passesZvtxCut) {
continue;
}
registry.fill(HIST("h2_jet_pt_part_eventselection"), jet.pt(), 2.0, jetweight); // zvtx
registry.fill(HIST("h2_jet_pt_part_eventselection"), jet.pt(), 2.0, eventWeight); // zvtx

if (!hasRecoColl) {
continue;
}
registry.fill(HIST("h2_jet_pt_part_eventselection"), jet.pt(), 3.0, jetweight); // noRecoColl
registry.fill(HIST("h2_jet_pt_part_eventselection"), jet.pt(), 3.0, eventWeight); // noRecoColl

if (!passesSplitCollCut) {
continue;
}
registry.fill(HIST("h2_jet_pt_part_eventselection"), jet.pt(), 4.0, jetweight); // splitColl
registry.fill(HIST("h2_jet_pt_part_eventselection"), jet.pt(), 4.0, eventWeight); // splitColl

if (!hasSel8Coll) {
continue;
}
registry.fill(HIST("h2_jet_pt_part_eventselection"), jet.pt(), 5.0, jetweight); // recoEvtSel
registry.fill(HIST("h2_jet_pt_part_eventselection"), jet.pt(), 5.0, eventWeight); // recoEvtSel

if (!centralityIsGood) {
continue;
}
registry.fill(HIST("h2_jet_pt_part_eventselection"), jet.pt(), 6.0, jetweight); // centralitycut
registry.fill(HIST("h2_jet_pt_part_eventselection"), jet.pt(), 6.0, eventWeight); // centralitycut

if (!occupancyIsGood) {
continue;
}
registry.fill(HIST("h2_jet_pt_part_eventselection"), jet.pt(), 7.0, jetweight); // occupancycut
registry.fill(HIST("h2_jet_pt_part_eventselection"), jet.pt(), 7.0, eventWeight); // occupancycut
}
}
PROCESS_SWITCH(JetSpectraCharged, processCrossSectionEfficiencyWeighted, "jet spectra QC for MC particle level with step-by-step cuts (weighted)", false);
Expand Down Expand Up @@ -1179,15 +1178,14 @@ struct JetSpectraCharged {
if (!isAcceptedJet<aod::JetParticles>(jet, mcLevelIsParticleLevel)) {
continue;
}
float jetweight = jet.eventWeight();
double pTHat = 10. / (std::pow(jetweight, 1.0 / pTHatExponent));
double pTHat = 10. / (std::pow(eventWeight, 1.0 / pTHatExponent));
int Nmax = 21;
for (int N = 1; N < Nmax; N++) {
if (jet.pt() < N * 0.25 * pTHat && jet.r() == round(selectedJetsRadius * 100.0f)) {
registry.fill(HIST("h2_jet_ptcut_part"), jet.pt(), N * 0.25, jetweight);
registry.fill(HIST("h2_jet_ptcut_part"), jet.pt(), N * 0.25, eventWeight);
}
}
fillMCPHistograms(jet, jetweight);
fillMCPHistograms(jet, eventWeight);
}
}
PROCESS_SWITCH(JetSpectraCharged, processSpectraMCPWeighted, "jet spectra for MC particle level weighted", false);
Expand All @@ -1214,8 +1212,7 @@ struct JetSpectraCharged {
if (!isAcceptedJet<aod::JetParticles>(jet, mcLevelIsParticleLevel)) {
continue;
}
float jetweight = jet.eventWeight();
fillMCPAreaSubHistograms(jet, mccollision.rho(), jetweight);
fillMCPAreaSubHistograms(jet, mccollision.rho(), eventWeight);
}
}
PROCESS_SWITCH(JetSpectraCharged, processSpectraAreaSubMCPWeighted, "jet spectra with area-based subtraction for MC particle level", false);
Expand Down Expand Up @@ -1300,7 +1297,7 @@ struct JetSpectraCharged {
if (!isAcceptedJet<aod::JetTracks>(mcdjet)) {
continue;
}
fillMatchedHistograms<ChargedMCDMatchedJetsWeighted::iterator, ChargedMCPMatchedJetsWeighted>(mcdjet, mcdjet.eventWeight());
fillMatchedHistograms<ChargedMCDMatchedJetsWeighted::iterator, ChargedMCPMatchedJetsWeighted>(mcdjet, eventWeight);
}
}
PROCESS_SWITCH(JetSpectraCharged, processJetsMatchedWeighted, "matched mcp and mcd jets with weighted events", false);
Expand Down
Loading