Skip to content

Commit cccdb03

Browse files
lhusovaLucia Anna Tarasovicova
andauthored
[PWGLF] PWGLF new histograms in derivedcascadeanalysis.cxx (#18488)
Co-authored-by: Lucia Anna Tarasovicova <lucia.anna.husova@cern.ch>
1 parent 349206a commit cccdb03

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎PWGLF/Tasks/Strangeness/derivedcascadeanalysis.cxx‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,6 +1209,19 @@ struct Derivedcascadeanalysis {
12091209
}
12101210
});
12111211
}
1212+
void fillHistOccupancyCheckMC(double pt, double mass, float occup, float centrality, bool isPos)
1213+
{
1214+
static_for<0, 9>([&](auto i) {
1215+
constexpr int In = i.value;
1216+
if (centrality < CentralityIntervals[In + 1] && centrality > CentralityIntervals[In]) {
1217+
if (isPos) {
1218+
histos.fill(HIST("InvMassAfterSelCent") + HIST(CentIndex[In]) + HIST("/hPositiveCascadeMCTruth"), pt, mass, occup);
1219+
} else {
1220+
histos.fill(HIST("InvMassAfterSelCent") + HIST(CentIndex[In]) + HIST("/hNegativeCascadeMCTruth"), pt, mass, occup);
1221+
}
1222+
}
1223+
});
1224+
}
12121225
void fillHistPtDepSelectionStudy(double pt, double mass, double sel, uint64_t selectionCheckMask, bool isPos)
12131226
{
12141227
static_for<0, 11>([&](auto i) {
@@ -1625,6 +1638,9 @@ struct Derivedcascadeanalysis {
16251638

16261639
if (qaFlags.doOccupancyCheck) {
16271640
fillHistOccupancyCheck(recoPt, invmass, occupancy, centrality, isPositive);
1641+
if (isTrueMCCascadeDecay) {
1642+
fillHistOccupancyCheckMC(ptmc, invmass, occupancy, centrality, isPositive);
1643+
}
16281644
}
16291645
if (isPositive) {
16301646
histos.fill(HIST("InvMassAfterSel/hPositiveCascade"), recoPt, invmass, centrality);

0 commit comments

Comments
 (0)