Skip to content

Commit e830079

Browse files
fmazzascFrancesco Mazzaschi
andauthored
[PWGLF] Step by step evaluation of Zorro (AliceO2Group#9313)
Co-authored-by: Francesco Mazzaschi <[email protected]>
1 parent 51e07a2 commit e830079

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

PWGLF/TableProducer/Nuspex/hyperRecoTask.cxx

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
//
1212
// Build hypertriton candidates from V0s and tracks
1313

14+
#include <memory>
15+
#include <string>
1416
#include <array>
17+
#include <vector>
18+
#include <algorithm>
1519

1620
#include "Framework/runDataProcessing.h"
1721
#include "Framework/AnalysisTask.h"
@@ -58,6 +62,7 @@ constexpr double betheBlochDefault[1][6]{{-1.e32, -1.e32, -1.e32, -1.e32, -1.e32
5862
static const std::vector<std::string> betheBlochParNames{"p0", "p1", "p2", "p3", "p4", "resolution"};
5963
static const std::vector<std::string> particleName{"He3"};
6064
std::shared_ptr<TH1> hEvents;
65+
std::shared_ptr<TH1> hEventsZorro;
6166
std::shared_ptr<TH1> hZvtx;
6267
std::shared_ptr<TH1> hCentFT0A;
6368
std::shared_ptr<TH1> hCentFT0C;
@@ -243,10 +248,14 @@ struct hyperRecoTask {
243248
hH4LMassBefSel = qaRegistry.add<TH1>("hH4LMassBefSel", ";M (GeV/#it{c}^{2}); ", HistType::kTH1D, {{60, 3.76, 3.84}});
244249
hH4LMassTracked = qaRegistry.add<TH1>("hH4LMassTracked", ";M (GeV/#it{c}^{2}); ", HistType::kTH1D, {{60, 3.76, 3.84}});
245250

246-
hEvents = qaRegistry.add<TH1>("hEvents", ";Events; ", HistType::kTH1D, {{3, -0.5, 2.5}});
251+
hEvents = qaRegistry.add<TH1>("hEvents", ";Events; ", HistType::kTH1D, {{2, -0.5, 1.5}});
247252
hEvents->GetXaxis()->SetBinLabel(1, "All");
248253
hEvents->GetXaxis()->SetBinLabel(2, "Selected");
249-
hEvents->GetXaxis()->SetBinLabel(3, "Zorro He events");
254+
255+
hEventsZorro = qaRegistry.add<TH1>("hEventsZorro", ";Events; ", HistType::kTH1D, {{2, -0.5, 1.5}});
256+
hEventsZorro->GetXaxis()->SetBinLabel(1, "Zorro before evsel");
257+
hEventsZorro->GetXaxis()->SetBinLabel(2, "Zorro after evsel");
258+
250259
if (doprocessMC) {
251260
hDecayChannel = qaRegistry.add<TH1>("hDecayChannel", ";Decay channel; ", HistType::kTH1D, {{2, -0.5, 1.5}});
252261
hDecayChannel->GetXaxis()->SetBinLabel(1, "2-body");
@@ -331,17 +340,27 @@ struct hyperRecoTask {
331340
initCCDB(bc);
332341
hEvents->Fill(0.);
333342

334-
if (!collision.sel8() || std::abs(collision.posZ()) > 10) {
343+
if (!collision.selection_bit(aod::evsel::kNoITSROFrameBorder)) {
335344
continue;
336345
}
337346

347+
bool zorroSelected = false;
338348
if (cfgSkimmedProcessing) {
339-
bool zorroSelected = zorro.isSelected(collision.template bc_as<aod::BCsWithTimestamps>().globalBC()); /// Just let Zorro do the accounting
349+
// accounting done after ITS border cut, to properly correct with the MC
350+
zorroSelected = zorro.isSelected(collision.template bc_as<aod::BCsWithTimestamps>().globalBC());
340351
if (zorroSelected) {
341-
hEvents->Fill(2.);
352+
hEventsZorro->Fill(0.);
342353
}
343354
}
344355

356+
if (!collision.selection_bit(aod::evsel::kIsTriggerTVX) || !collision.selection_bit(aod::evsel::kNoTimeFrameBorder) || std::abs(collision.posZ()) > 10) {
357+
continue;
358+
}
359+
360+
if (zorroSelected) {
361+
hEventsZorro->Fill(1.);
362+
}
363+
345364
goodCollision[collision.globalIndex()] = true;
346365
hEvents->Fill(1.);
347366
hZvtx->Fill(collision.posZ());

0 commit comments

Comments
 (0)