From 0b28018e882f9d1a7ceaf110965a389437756535 Mon Sep 17 00:00:00 2001 From: Marvin Hemmer Date: Fri, 22 Sep 2023 16:15:16 +0200 Subject: [PATCH] [PWGEM-10] createEMReducedEvent add bin to check for sel8 and MinNGamma - added an extra bin to the event histogram to check if all three min number of gamma candiadates and the sel8 condidations are met at the same time. Right now we can only see if either sel8 is selected or if the minimum nuber of photons for each of the methods are there. But there could be the case where we have no overlap between the events statisfying each of the conditions. --- PWGEM/PhotonMeson/TableProducer/createEMReducedEvent.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PWGEM/PhotonMeson/TableProducer/createEMReducedEvent.cxx b/PWGEM/PhotonMeson/TableProducer/createEMReducedEvent.cxx index 4a60a969040..08c4a10a19c 100644 --- a/PWGEM/PhotonMeson/TableProducer/createEMReducedEvent.cxx +++ b/PWGEM/PhotonMeson/TableProducer/createEMReducedEvent.cxx @@ -55,13 +55,14 @@ struct createEMReducedEvent { void init(o2::framework::InitContext&) { - auto hEventCounter = registry.add("hEventCounter", "hEventCounter", kTH1I, {{6, 0.5f, 6.5f}}); + auto hEventCounter = registry.add("hEventCounter", "hEventCounter", kTH1I, {{7, 0.5f, 7.5f}}); hEventCounter->GetXaxis()->SetBinLabel(1, "all"); hEventCounter->GetXaxis()->SetBinLabel(2, "has > minN_PCM"); hEventCounter->GetXaxis()->SetBinLabel(3, "has > minN_PHOS"); hEventCounter->GetXaxis()->SetBinLabel(4, "has > minN_EMC"); hEventCounter->GetXaxis()->SetBinLabel(5, "has > minN_any"); hEventCounter->GetXaxis()->SetBinLabel(6, "sel8"); + hEventCounter->GetXaxis()->SetBinLabel(7, "sel8 & minN"); registry.add("hNGammas_PCM", ";#it{N}_{#gamma,PCM};#it{count}", kTH1I, {{21, -0.5, 20.5}}); registry.add("hNGammas_PHOS", ";#it{N}_{#gamma,PHOS};#it{count}", kTH1I, {{21, -0.5, 20.5}}); registry.add("hNGammas_EMC", ";#it{N}_{#gamma,EMC};#it{count}", kTH1I, {{21, -0.5, 20.5}}); @@ -126,6 +127,9 @@ struct createEMReducedEvent { if (collision.sel8()) { registry.fill(HIST("hEventCounter"), 6); } + if (collision.sel8() && ng_emc >= minN_EMC && ng_phos >= minN_PHOS && ng_pcm >= minN_PCM) { + registry.fill(HIST("hEventCounter"), 7); + } // store event selection decisions uint64_t tag = collision.selection_raw();