Skip to content

Commit a80da54

Browse files
authored
[PWGLF] Adjust MC label bins and update event selection logic (#15408)
1 parent d564df4 commit a80da54

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

PWGLF/Tasks/Resonances/lambda1520analysisinpp.cxx

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ struct Lambda1520analysisinpp {
262262
AxisSpec axisTPCXrow{binsTPCXrows, "#Xrows_{TPC}"};
263263
AxisSpec axisPIDQA{binsnSigma, "#sigma"};
264264
AxisSpec axisTPCSignal{binsnTPCSignal, ""};
265-
AxisSpec axisMClabel{6, -1.5f, 6.5f, "MC Label"};
265+
AxisSpec axisMClabel{9, -1.f, 8.f, "MC Label"};
266266
AxisSpec axisEtaPhi{binsEtaPhi, ""};
267267
AxisSpec axisPhi{350, 0, 7, "#Phi"};
268268
AxisSpec axisMultMix{configBkg.cfgMultPercentileBins, "Multiplicity Percentile"};
@@ -276,7 +276,7 @@ struct Lambda1520analysisinpp {
276276
histos.add("QAevent/hPairsCounterSameE", "total valid no. of pairs sameE", HistType::kTH1F, {{1, 0.5f, 1.5f}});
277277
histos.add("QAevent/hnTrksSameE", "n tracks per event SameE", HistType::kTH1F, {{1000, 0.0, 1000.0}});
278278
}
279-
// Test on Mixed event
279+
// Gen on Mixed event
280280
if (doprocessME) {
281281

282282
// Histograms for Mixed Event Pool characteristics
@@ -401,6 +401,7 @@ struct Lambda1520analysisinpp {
401401
// MC QA
402402
histos.add("Event/hMCEventIndices", "hMCEventIndices", kTH2D, {axisMult, idxMCAxis});
403403
if (doprocessMCGen) {
404+
histos.add("QA/Gen", "Gen histogram", kTH1D, {{10, 0, 10, "index"}});
404405
histos.add("QA/MC/h2GenEtaPt_beforeanycut", " #eta-#it{p}_{T} distribution of Generated #Lambda(1520); #eta; #it{p}_{T}; Counts;", HistType::kTHnSparseF, {axisEta, axisPtQA});
405406
histos.add("QA/MC/h2GenPhiRapidity_beforeanycut", " #phi-y distribution of Generated #Lambda(1520); #phi; y; Counts;", HistType::kTHnSparseF, {axisPhi, axisRap});
406407
histos.add("QA/MC/h2GenEtaPt_afterEtaRapCut", " #eta-#it{p}_{T} distribution of Generated #Lambda(1520); #eta; #it{p}_{T}; Counts;", HistType::kTHnSparseF, {axisEta, axisPtQA});
@@ -1071,6 +1072,8 @@ struct Lambda1520analysisinpp {
10711072
histos.fill(HIST("QAevent/hEventsMC"), 2);
10721073
}
10731074

1075+
colCuts.fillQA(collision);
1076+
10741077
fillHistograms<false, false, true, false>(collision, tracks, tracks);
10751078
}
10761079
PROCESS_SWITCH(Lambda1520analysisinpp, processMCRec, "Process Event for MC Rec without partition", false);
@@ -1136,47 +1139,60 @@ struct Lambda1520analysisinpp {
11361139
histos.fill(HIST("QA/MC/h2GenEtaPt_afterEtaRapCut"), part.eta(), part.pt());
11371140
histos.fill(HIST("QA/MC/h2GenPhiRapidity_afterEtaRapCut"), part.phi(), part.y());
11381141

1139-
// without any event selection
1140-
if (part.pdgCode() > 0)
1142+
histos.fill(HIST("QA/Gen"), 1);
1143+
if (part.pdgCode() > 0) // without any event selection
11411144
histos.fill(HIST("Result/MC/Genlambda1520pt"), 0, part.pt(), centrality);
11421145
else
11431146
histos.fill(HIST("Result/MC/Genantilambda1520pt"), 0, part.pt(), centrality);
11441147

1145-
if (inVtx10) // INEL10
1148+
if (inVtx10) // vtx10
11461149
{
1150+
histos.fill(HIST("QA/Gen"), 2);
11471151
if (part.pdgCode() > 0)
11481152
histos.fill(HIST("Result/MC/Genlambda1520pt"), 1, part.pt(), centrality);
11491153
else
11501154
histos.fill(HIST("Result/MC/Genantilambda1520pt"), 1, part.pt(), centrality);
11511155
}
1152-
if (inVtx10 && isSel8) // INEL>10, vtx10
1156+
if (inVtx10 && isSel8) // vtx10, sel8
11531157
{
1158+
histos.fill(HIST("QA/Gen"), 3);
11541159
if (part.pdgCode() > 0)
11551160
histos.fill(HIST("Result/MC/Genlambda1520pt"), 2, part.pt(), centrality);
11561161
else
11571162
histos.fill(HIST("Result/MC/Genantilambda1520pt"), 2, part.pt(), centrality);
11581163
}
11591164
if (inVtx10 && isTriggerTVX) // vtx10, TriggerTVX
11601165
{
1166+
histos.fill(HIST("QA/Gen"), 4);
11611167
if (part.pdgCode() > 0)
11621168
histos.fill(HIST("Result/MC/Genlambda1520pt"), 3, part.pt(), centrality);
11631169
else
11641170
histos.fill(HIST("Result/MC/Genantilambda1520pt"), 3, part.pt(), centrality);
11651171
}
1166-
if (isInAfterAllCuts) // after all event selection
1172+
if (inVtx10 && isTrueINELgt0) // vtx10, INEL>0
11671173
{
1174+
histos.fill(HIST("QA/Gen"), 5);
11681175
if (part.pdgCode() > 0)
11691176
histos.fill(HIST("Result/MC/Genlambda1520pt"), 4, part.pt(), centrality);
11701177
else
11711178
histos.fill(HIST("Result/MC/Genantilambda1520pt"), 4, part.pt(), centrality);
11721179
}
1173-
if (isInAfterAllCuts && isTrueINELgt0) // after all event selection
1180+
if (isInAfterAllCuts) // after all event selection
11741181
{
1182+
histos.fill(HIST("QA/Gen"), 6);
11751183
if (part.pdgCode() > 0)
11761184
histos.fill(HIST("Result/MC/Genlambda1520pt"), 5, part.pt(), centrality);
11771185
else
11781186
histos.fill(HIST("Result/MC/Genantilambda1520pt"), 5, part.pt(), centrality);
11791187
}
1188+
if (isInAfterAllCuts && isTrueINELgt0) // after all event selection && INEL>0
1189+
{
1190+
histos.fill(HIST("QA/Gen"), 7);
1191+
if (part.pdgCode() > 0)
1192+
histos.fill(HIST("Result/MC/Genlambda1520pt"), 6, part.pt(), centrality);
1193+
else
1194+
histos.fill(HIST("Result/MC/Genantilambda1520pt"), 6, part.pt(), centrality);
1195+
}
11801196
}
11811197

11821198
// QA for Trigger efficiency

0 commit comments

Comments
 (0)