Skip to content

Commit

Permalink
PWGJE: Adding centrality selection
Browse files Browse the repository at this point in the history
  • Loading branch information
dajones2 committed Jan 30, 2025
1 parent e49653e commit d869220
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions PWGJE/Tasks/jetHadronRecoil.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ struct JetHadronRecoil {
Configurable<float> trackPtMax{"trackPtMax", 100.0, "maximum pT acceptance for tracks"};
Configurable<float> trackEtaMin{"trackEtaMin", -0.9, "minimum eta acceptance for tracks"};
Configurable<float> trackEtaMax{"trackEtaMax", 0.9, "maximum eta acceptance for tracks"};
Configurable<float> centralityMin{"centralityMin", -999.0, "minimum centrality"};
Configurable<float> centralityMax{"centralityMax", 999.0, "maximum centrality"};
Configurable<float> vertexZCut{"vertexZCut", 10.0f, "Accepted z-vertex range"};
Configurable<float> ptTTrefMin{"ptTTrefMin", 5, "reference minimum trigger track pt"};
Configurable<float> ptTTrefMax{"ptTTrefMax", 7, "reference maximum trigger track pt"};
Expand All @@ -72,7 +74,7 @@ struct JetHadronRecoil {

Filter jetCuts = aod::jet::r == nround(jetR.node() * 100.0f);
Filter trackCuts = (aod::jtrack::pt >= trackPtMin && aod::jtrack::pt < trackPtMax && aod::jtrack::eta > trackEtaMin && aod::jtrack::eta < trackEtaMax);
Filter eventTrackLevelCuts = nabs(aod::jcollision::posZ) < vertexZCut;
Filter eventCuts = (nabs(aod::jcollision::posZ) < vertexZCut && aod::jcollision::centrality >= centralityMin && aod::jcollision::centrality < centralityMax);

std::vector<double> ptBinningPart = {0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0,
15.0, 20.0, 25.0, 30.0, 35.0, 40.0, 45.0, 50.0, 55.0, 60.0,
Expand Down Expand Up @@ -103,14 +105,6 @@ struct JetHadronRecoil {
{"hSignalPt", "jet p_{T};p_{T,jet};entries", {HistType::kTH1F, {{250, -100, 150}}}},
{"hSignalTriggers", "trigger p_{T};p_{T,trig};entries", {HistType::kTH1F, {{150, 0, 150}}}},
{"hReferenceTriggers", "trigger p_{T};p_{T,trig};entries", {HistType::kTH1F, {{150, 0, 150}}}},
{"hSignalLeadingTrack", "leading track p_{T};p_{T,jet};#Delta#phi;leading track p_{T}", {HistType::kTH3F, {{250, -100, 150}, {100, 0, o2::constants::math::TwoPI}, {150, 0, 150}}}},
{"hReferenceLeadingTrack", "leading track p_{T};p_{T,jet};#Delta#phi;leading track p_{T}", {HistType::kTH3F, {{250, -100, 150}, {100, 0, o2::constants::math::TwoPI}, {150, 0, 150}}}},
{"hJetSignalMultiplicity", "jet multiplicity;N_{jets};entries", {HistType::kTH1F, {{10, 0, 10}}}},
{"hJetReferenceMultiplicity", "jet multiplicity;N_{jets};entries", {HistType::kTH1F, {{10, 0, 10}}}},
{"hJetSignalConstituentMultiplicity", "jet constituent multiplicity;p_{T,jet};#Delta#phi;N_{constituents}", {HistType::kTH3F, {{250, -100, 150}, {100, 0, o2::constants::math::TwoPI}, {50, 0, 50}}}},
{"hJetReferenceConstituentMultiplicity", "jet constituent multiplicity;p_{T,jet};#Delta#phi;N_{constituents}", {HistType::kTH3F, {{250, -100, 150}, {100, 0, o2::constants::math::TwoPI}, {50, 0, 50}}}},
{"hJetSignalConstituentPt", "jet constituent p_{T};p_{T,jet};#Delta#phi;p_{T,constituent}", {HistType::kTH3F, {{250, -100, 150}, {100, 0, o2::constants::math::TwoPI}, {150, 0, 150}}}},
{"hJetReferenceConstituentPt", "jet constituent p_{T};p_{T,jet};#Delta#phi;p_{T,constituent}", {HistType::kTH3F, {{250, -100, 150}, {100, 0, o2::constants::math::TwoPI}, {150, 0, 150}}}},
{"hSigEventTriggers", "N_{triggers};events", {HistType::kTH1F, {{10, 0, 10}}}},
{"hRefEventTriggers", "N_{triggers};events", {HistType::kTH1F, {{10, 0, 10}}}},
{"hJetPt", "jet p_{T};p_{T,jet};entries", {HistType::kTH1F, {{300, -100, 200}}}},
Expand Down Expand Up @@ -185,12 +179,12 @@ struct JetHadronRecoil {
}
if (isSigCol && track.pt() < ptTTsigMax && track.pt() > ptTTsigMin) {
phiTTAr.push_back(track.phi());
registry.fill(HIST("hSignalPt"), track.pt(), weight);
registry.fill(HIST("hSignalTriggers"), track.pt(), weight);
nTT++;
}
if (!isSigCol && track.pt() < ptTTrefMax && track.pt() > ptTTrefMin) {
phiTTAr.push_back(track.phi());
registry.fill(HIST("hReferencePt"), track.pt(), weight);
registry.fill(HIST("hReferenceTriggers"), track.pt(), weight);
nTT++;
}
registry.fill(HIST("hPtTrack"), track.pt(), weight);
Expand Down

0 comments on commit d869220

Please sign in to comment.