Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions PWGHF/TableProducer/candidateSelectorOmegac0ToOmegaPi.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check warning on line 1 in PWGHF/TableProducer/candidateSelectorOmegac0ToOmegaPi.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Provide mandatory file documentation.

Check warning on line 1 in PWGHF/TableProducer/candidateSelectorOmegac0ToOmegaPi.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/workflow-file]

Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand All @@ -12,7 +12,7 @@
/// \file candidateSelectorToOmegaPi.cxx
/// \brief Omegac0 → Omega Pi selection task
/// \author Federica Zanone <federica.zanone@cern.ch>, Heidelberg University
/// \author Ruiqi Yin <ruiqi.yin@cern.ch>, Fudan University

Check warning on line 15 in PWGHF/TableProducer/candidateSelectorOmegac0ToOmegaPi.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.

#include "CommonConstants/PhysicsConstants.h"
#include "Framework/AnalysisTask.h"
Expand All @@ -30,7 +30,7 @@
using namespace o2::framework;
using namespace o2::analysis;

enum pidInfoStored {

Check warning on line 33 in PWGHF/TableProducer/candidateSelectorOmegac0ToOmegaPi.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/enum]

Use UpperCamelCase for names of enumerators and their values.
kPiFromLam = 0,
kPrFromLam,
kKaFromCasc,
Expand Down Expand Up @@ -156,6 +156,7 @@
HistogramRegistry registry{"registry"}; // for QA of selections

OutputObj<TH1D> hInvMassCharmBaryon{TH1D("hInvMassCharmBaryon", "Charm baryon invariant mass;inv mass;entries", 500, 2.3, 3.1)};
OutputObj<TH1D> hPtCharmBaryon{TH1D("hPtCharmBaryon", "Charm baryon transverse momentum before sel;Pt;entries", 8000, 0., 80)};

void init(InitContext const&)
{
Expand Down Expand Up @@ -192,6 +193,7 @@
registry.add("hStatusCheck", "Check consecutive selections status;status;entries", {HistType::kTH1D, {{12, 0., 12.}}});

// for QA of the selections (bin 0 -> candidates that did not pass the selection, bin 1 -> candidates that passed the selection)
registry.add("hSelPtOmegac", "hSelPtOmegac;status;entries", {HistType::kTH1D, {axisSel}});
registry.add("hSelSignDec", "hSelSignDec;status;entries", {HistType::kTH1D, {axisSel}});
registry.add("hSelEtaPosV0Dau", "hSelEtaPosV0Dau;status;entries", {HistType::kTH1D, {axisSel}});
registry.add("hSelEtaNegV0Dau", "hSelEtaNegV0Dau;status;entries", {HistType::kTH1D, {axisSel}});
Expand Down Expand Up @@ -425,6 +427,15 @@
}
}

// Omegac Pt selection
hPtCharmBaryon->Fill(std::abs(candidate.kfptOmegac()));
if (std::abs(candidate.kfptOmegac()) < ptCandMin || std::abs(candidate.kfptOmegac()) > ptCandMax) {
resultSelections = false;
registry.fill(HIST("hSelPtOmegac"), 0);
} else {
registry.fill(HIST("hSelPtOmegac"), 1);
}

// v0&Casc&Omegac ldl selection
if ((candidate.v0ldl() < v0LdlMin) || (candidate.cascldl() < cascLdlMin) || (candidate.omegacldl() > omegacLdlMax)) {
resultSelections = false;
Expand Down
9 changes: 8 additions & 1 deletion PWGHF/TableProducer/treeCreatorOmegacToOmegaPi.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check warning on line 1 in PWGHF/TableProducer/treeCreatorOmegacToOmegaPi.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/workflow-file]

Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand Down Expand Up @@ -207,6 +207,7 @@
Produces<o2::aod::HfToOmegaPiEvs> rowEv;

Configurable<float> zPvCut{"zPvCut", 10., "Cut on absolute value of primary vertex z coordinate"};
Configurable<bool> keepOnlyMcSignal{"keepOnlyMcSignal", true, "Fill MC tree only with signal candidates"};

using MyTrackTable = soa::Join<aod::Tracks, aod::TrackSelection, aod::TracksExtra>;
using MyEventTable = soa::Join<aod::Collisions, aod::EvSels>;
Expand Down Expand Up @@ -425,7 +426,13 @@
// Filling candidate properties
rowCandidateLite.reserve(candidates.size());
for (const auto& candidate : candidates) {
fillKfCandidate(candidate, candidate.flagMcMatchRec(), candidate.originRec(), candidate.collisionMatched());
if (keepOnlyMcSignal) {
if (candidate.originRec() != 0) {
fillKfCandidate(candidate, candidate.flagMcMatchRec(), candidate.originRec(), candidate.collisionMatched());
}
} else {
fillKfCandidate(candidate, candidate.flagMcMatchRec(), candidate.originRec(), candidate.collisionMatched());
}
}
}
PROCESS_SWITCH(HfTreeCreatorOmegac0ToOmegaPi, processKFMcFull, "Process KF MC", false);
Expand Down
Loading