Skip to content

Commit 7714f35

Browse files
authored
Add histogram to fill MC events with zero reco events
1 parent 2540c2c commit 7714f35

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

PWGLF/Tasks/GlobalEventProperties/heavyionMultiplicity.cxx

Lines changed: 10 additions & 3 deletions
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","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,10 +917,15 @@ 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.;
920-
auto numcontributors = -999;
921-
for (const auto& RecCol : RecCols) {
927+
auto numcontributors = -999;
928+
for (const auto& RecCol : RecCols) {
922929
if (!isEventSelected(RecCol)) {
923930
continue;
924931
}

0 commit comments

Comments
 (0)