Skip to content

Commit 91a41c9

Browse files
authored
[PWGLF] added QC histo and configurable eta gap (#10047)
1 parent 0b63ff4 commit 91a41c9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ struct AntinucleiInJets {
8888
Configurable<double> minJetPt{"minJetPt", 10.0, "Minimum pt of the jet"};
8989
Configurable<double> rJet{"rJet", 0.3, "Jet resolution parameter R"};
9090
Configurable<double> zVtx{"zVtx", 10.0, "Maximum zVertex"};
91+
Configurable<double> deltaEtaEdge{"deltaEtaEdge", 0.05, "eta gap from the edge"};
9192

9293
// track parameters
9394
Configurable<bool> requirePvContributor{"requirePvContributor", false, "require that the track is a PV contributor"};
@@ -156,6 +157,7 @@ struct AntinucleiInJets {
156157
registryQC.add("nJetsInAcceptance", "nJetsInAcceptance", HistType::kTH1F, {{50, 0, 50, "#it{n}_{Jet}"}});
157158
registryQC.add("nJetsSelectedHighPt", "nJetsSelectedHighPt", HistType::kTH1F, {{50, 0, 50, "#it{n}_{Jet}"}});
158159
registryQC.add("jetEffectiveArea", "jetEffectiveArea", HistType::kTH1F, {{2000, 0, 2, "Area/#piR^{2}"}});
160+
registryQC.add("jetPtDifference", "jetPtDifference", HistType::kTH1F, {{200, -1, 1, "#Deltap_{T}^{jet}"}});
159161
}
160162

161163
// event counter MC
@@ -451,7 +453,7 @@ struct AntinucleiInJets {
451453
for (auto& jet : jets) { // o2-linter: disable=[const-ref-in-for-loop]
452454

453455
// jet must be fully contained in the acceptance
454-
if ((std::fabs(jet.eta()) + rJet) > (maxEta - 0.05))
456+
if ((std::fabs(jet.eta()) + rJet) > (maxEta - deltaEtaEdge))
455457
continue;
456458

457459
// jet pt must be larger than threshold
@@ -676,13 +678,17 @@ struct AntinucleiInJets {
676678
for (auto& jet : jets) { // o2-linter: disable=[const-ref-in-for-loop]
677679

678680
// jet must be fully contained in the acceptance
679-
if ((std::fabs(jet.eta()) + rJet) > (maxEta - 0.05))
681+
if ((std::fabs(jet.eta()) + rJet) > (maxEta - deltaEtaEdge))
680682
continue;
681683
njetsInAcc++;
682684
registryQC.fill(HIST("sumPtJetCone"), jet.pt());
685+
double ptJetBeforeSub = jet.pt();
683686

684687
// jet pt must be larger than threshold
685688
fastjet::PseudoJet jetMinusBkg = backgroundSub.doRhoAreaSub(jet, rhoPerp, rhoMPerp);
689+
double ptJetAfterSub = jet.pt();
690+
registryQC.fill(HIST("jetPtDifference"), ptJetAfterSub - ptJetBeforeSub);
691+
686692
if (getCorrectedPt(jetMinusBkg.pt()) < minJetPt)
687693
continue;
688694
njetsHighPt++;

0 commit comments

Comments
 (0)