Skip to content

Commit 0526708

Browse files
abmodakalibuild
andauthored
[PWGLF] Add histogram to fill MC events with zero reco events (#14030)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent e24ea06 commit 0526708

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

PWGLF/Tasks/GlobalEventProperties/heavyionMultiplicity.cxx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,9 @@ struct HeavyionMultiplicity {
311311
auto hstat = histos.get<TH1>(HIST("MCEventHist"));
312312
auto* x = hstat->GetXaxis();
313313
x->SetBinLabel(1, "All MC events");
314-
x->SetBinLabel(2, "MC events with atleast one reco event");
314+
x->SetBinLabel(2, "MC events with reco event after event selection");
315+
x->SetBinLabel(3, "MC events with no reco events");
316+
histos.add("hImpactParameterGenwithNoreco", "Impact parameter of generated MC events, with no recoevent", kTH1F, {impactParAxis});
315317
histos.add("hImpactParameterGen", "Impact parameter of generated MC events", kTH1F, {impactParAxis});
316318
histos.add("hImpactParameterRec", "Impact parameter of selected MC events", kTH1F, {impactParAxis});
317319
histos.add("hImpactParvsCentrRec", "Impact parameter of selected MC events vs centrality", kTH2F, {axisCent, impactParAxis});
@@ -915,6 +917,11 @@ struct HeavyionMultiplicity {
915917
histos.fill(HIST("MCEventHist"), 1);
916918
histos.fill(HIST("hImpactParameterGen"), mcCollision.impactParameter());
917919

920+
if (RecCols.size() == 0) {
921+
histos.fill(HIST("MCEventHist"), 3);
922+
histos.fill(HIST("hImpactParameterGenwithNoreco"), mcCollision.impactParameter());
923+
}
924+
918925
bool atLeastOne = false;
919926
auto centrality = -999.;
920927
auto numcontributors = -999;

0 commit comments

Comments
 (0)