Skip to content

Commit 3d3c880

Browse files
authored
Corrections for systematic uncertainties
Corrections for both the pT extrapolation to 0 and the influence of strange decay particles and exclusion of not needed processes
1 parent b1eff01 commit 3d3c880

1 file changed

Lines changed: 10 additions & 20 deletions

File tree

PWGLF/Tasks/GlobalEventProperties/studyPnch.cxx

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ struct StudyPnch {
162162
histos.add("hMultiplicityMCrec", "hMultiplicityMCrec", kTH1F, {axisMult}, true);
163163
histos.add("hMultiplicityMCgen", "hMultiplicityMCgen", kTH1F, {axisMult}, true);
164164
histos.add("hResponseMatrix", "hResponseMatrix", kTH2F, {axisMult, axisMult}, true);
165-
}
166-
if (isPtincrease || isPtdecrease) {
167165
histos.add("hMultiplicityMCgenPtCut", "hMultiplicityMCgenPtCut", kTH1F, {axisMult}, true);
168166
histos.add("hResponseMatrixPtCut", "hResponseMatrixPtCut", kTH2F, {axisMult, axisMult}, true);
169167
}
@@ -360,7 +358,7 @@ struct StudyPnch {
360358
template <typename countTrk, typename McColType>
361359
float countTracksPtCut(countTrk const& tracks, McColType const& McCol)
362360
{
363-
auto nTrk = 0.0;
361+
float nTrk = 0.0;
364362
for (const auto& track : tracks) {
365363
if (!isGenTrackSelected(track)) {
366364
continue;
@@ -429,26 +427,18 @@ struct StudyPnch {
429427
}
430428
auto recTracksPart = RecTracks.sliceBy(perCollision, RecCol.globalIndex());
431429
auto multrec = countNTracksMcCol(recTracksPart, RecCol);
432-
if (multrec > 0) {
433-
histos.fill(HIST("hMultiplicityMCrec"), multrec);
434-
}
430+
histos.fill(HIST("hMultiplicityMCrec"), multrec);
435431
float multgen = countGenTracks(GenParticles, RecCol);
436-
if (multgen > 0 && multrec > 0) {
437-
histos.fill(HIST("hMultiplicityMCgen"), multgen);
438-
histos.fill(HIST("hResponseMatrix"), multrec, multgen);
439-
}
440-
if (isPtincrease || isPtdecrease) {
441-
float nTrkPtCut = countTracksPtCut(GenParticles, RecCol);
442-
multgen = multgen + nTrkPtCut;
443-
histos.fill(HIST("hMultiplicityMCgenPtCut"), multgen);
444-
histos.fill(HIST("hResponseMatrixPtCut"), multrec, multgen);
445-
}
432+
histos.fill(HIST("hMultiplicityMCgen"), multgen);
433+
histos.fill(HIST("hResponseMatrix"), multrec, multgen);
434+
float nTrkPtCut = countTracksPtCut(GenParticles, RecCol);
435+
nTrkPtCut = multgen + nTrkPtCut;
436+
histos.fill(HIST("hMultiplicityMCgenPtCut"), nTrkPtCut);
437+
histos.fill(HIST("hResponseMatrixPtCut"), multrec, nTrkPtCut);
446438
if (isApplyStrangenessSysUncert) {
447439
auto nSubtractStrange = countStrangeTracksMcCol(recTracksPart, RecCol);
448-
if (multrec > 0) {
449-
histos.fill(HIST("hMultiplicityMCSubStrDecay"), nSubtractStrange);
450-
histos.fill(HIST("hResponseMatrixSubStrDecay"), nSubtractStrange, multgen);
451-
}
440+
histos.fill(HIST("hMultiplicityMCSubStrDecay"), nSubtractStrange);
441+
histos.fill(HIST("hResponseMatrixSubStrDecay"), nSubtractStrange, multgen);
452442
}
453443
}
454444
}

0 commit comments

Comments
 (0)