Skip to content

Commit 8a658ab

Browse files
mapalharesalibuild
andauthored
[PWGLF] Added cfgEvtSel kNoSameBunchPileup and kIsGoodZvtxFT0vsPV (#14594)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 790b864 commit 8a658ab

File tree

1 file changed

+38
-4
lines changed

1 file changed

+38
-4
lines changed

PWGLF/TableProducer/Nuspex/hyperRecoTask.cxx

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ struct hyperRecoTask {
179179
Configurable<LabeledArray<double>> cfgBetheBlochParams{"cfgBetheBlochParams", {betheBlochDefault[0], 1, 6, particleName, betheBlochParNames}, "TPC Bethe-Bloch parameterisation for He3"};
180180
Configurable<bool> cfgCompensatePIDinTracking{"cfgCompensatePIDinTracking", true, "If true, divide tpcInnerParam by the electric charge"};
181181
Configurable<int> cfgMaterialCorrection{"cfgMaterialCorrection", static_cast<int>(o2::base::Propagator::MatCorrType::USEMatCorrNONE), "Type of material correction"};
182+
Configurable<bool> cfgEvSelkNoSameBunchPileup{"cfgEvSelkNoSameBunchPileup", false, "Rejects collisions which are associated with the same found-by-T0 bunch crossing"};
183+
Configurable<bool> cfgEvSelkIsGoodZvtxFT0vsPV{"cfgEvSelkIsGoodZvtxFT0vsPV", false, "Verifies the consistency between the primary vertex z position from tracking and the z position of the PV from FT0 timing"};
182184

183185
// CCDB options
184186
Configurable<double> d_bz_input{"d_bz", -999, "bz field, -999 is automatic"};
@@ -256,9 +258,11 @@ struct hyperRecoTask {
256258
hH4LMassBefSel = qaRegistry.add<TH1>("hH4LMassBefSel", ";M (GeV/#it{c}^{2}); ", HistType::kTH1D, {{60, 3.76, 3.84}});
257259
hH4LMassTracked = qaRegistry.add<TH1>("hH4LMassTracked", ";M (GeV/#it{c}^{2}); ", HistType::kTH1D, {{60, 3.76, 3.84}});
258260

259-
hEvents = qaRegistry.add<TH1>("hEvents", ";Events; ", HistType::kTH1D, {{2, -0.5, 1.5}});
261+
hEvents = qaRegistry.add<TH1>("hEvents", ";Events; ", HistType::kTH1D, {{4, -0.5, 3.5}});
260262
hEvents->GetXaxis()->SetBinLabel(1, "All");
261-
hEvents->GetXaxis()->SetBinLabel(2, "Selected");
263+
hEvents->GetXaxis()->SetBinLabel(2, "sel8");
264+
hEvents->GetXaxis()->SetBinLabel(3, "kNoSameBunchPileup");
265+
hEvents->GetXaxis()->SetBinLabel(4, "kIsGoodZvtxFT0vsPV");
262266

263267
hEventsZorro = qaRegistry.add<TH1>("hEventsZorro", ";Events; ", HistType::kTH1D, {{2, -0.5, 1.5}});
264268
hEventsZorro->GetXaxis()->SetBinLabel(1, "Zorro before evsel");
@@ -365,12 +369,27 @@ struct hyperRecoTask {
365369
continue;
366370
}
367371

372+
hEvents->Fill(1.);
373+
368374
if (zorroSelected) {
369375
hEventsZorro->Fill(1.);
370376
}
371377

378+
if (cfgEvSelkNoSameBunchPileup) {
379+
if (!collision.selection_bit(aod::evsel::kNoSameBunchPileup)) {
380+
continue;
381+
}
382+
hEvents->Fill(2.);
383+
}
384+
385+
if (cfgEvSelkIsGoodZvtxFT0vsPV) {
386+
if (!collision.selection_bit(aod::evsel::kIsGoodZvtxFT0vsPV)) {
387+
continue;
388+
}
389+
hEvents->Fill(3.);
390+
}
391+
372392
goodCollision[collision.globalIndex()] = true;
373-
hEvents->Fill(1.);
374393
hZvtx->Fill(collision.posZ());
375394
hCentFT0A->Fill(collision.centFT0A());
376395
hCentFT0C->Fill(collision.centFT0C());
@@ -391,11 +410,26 @@ struct hyperRecoTask {
391410
if (!collision.selection_bit(aod::evsel::kIsTriggerTVX) || !collision.selection_bit(aod::evsel::kNoTimeFrameBorder) || std::abs(collision.posZ()) > 10)
392411
continue;
393412

413+
hEvents->Fill(1.);
414+
415+
if (cfgEvSelkNoSameBunchPileup) {
416+
if (!collision.selection_bit(aod::evsel::kNoSameBunchPileup)) {
417+
continue;
418+
}
419+
hEvents->Fill(2.);
420+
}
421+
422+
if (cfgEvSelkIsGoodZvtxFT0vsPV) {
423+
if (!collision.selection_bit(aod::evsel::kIsGoodZvtxFT0vsPV)) {
424+
continue;
425+
}
426+
hEvents->Fill(3.);
427+
}
428+
394429
if (collision.has_mcCollision()) {
395430
isSurvEvSelCollision[collision.mcCollisionId()] = true;
396431
}
397432
goodCollision[collision.globalIndex()] = true;
398-
hEvents->Fill(1.);
399433
hZvtx->Fill(collision.posZ());
400434
hCentFT0A->Fill(collision.centFT0A());
401435
hCentFT0C->Fill(collision.centFT0C());

0 commit comments

Comments
 (0)