Skip to content
Merged
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
19 changes: 13 additions & 6 deletions ALICE3/Tasks/alice3-multicharm.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 failure on line 1 in ALICE3/Tasks/alice3-multicharm.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.)

Check failure on line 1 in ALICE3/Tasks/alice3-multicharm.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/file-cpp]

Use lowerCamelCase or UpperCamelCase for names of C++ files. See the O2 naming conventions for details.

Check failure on line 1 in ALICE3/Tasks/alice3-multicharm.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Provide mandatory file documentation.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand All @@ -8,7 +8,7 @@
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
//

Check failure on line 11 in ALICE3/Tasks/alice3-multicharm.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \author is missing, incorrect or misplaced.

Check failure on line 11 in ALICE3/Tasks/alice3-multicharm.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \brief is missing, incorrect or misplaced.

Check failure on line 11 in ALICE3/Tasks/alice3-multicharm.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.
// *+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*
// Decay finder task for ALICE 3
// *+-+*+-+*+-+*+-+*+-+*+-+*+-+*+-+*
Expand Down Expand Up @@ -59,10 +59,10 @@
using namespace o2::framework;
using namespace o2::framework::expressions;

using multiCharmTracksPID = soa::Join<aod::MCharmCores, aod::MCharmPID>;

Check failure on line 62 in ALICE3/Tasks/alice3-multicharm.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/type]

Use UpperCamelCase for names of defined types (including concepts).
using multiCharmTracksFull = soa::Join<aod::MCharmCores, aod::MCharmPID, aod::MCharmExtra>;

Check failure on line 63 in ALICE3/Tasks/alice3-multicharm.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/type]

Use UpperCamelCase for names of defined types (including concepts).

struct alice3multicharm {

Check failure on line 65 in ALICE3/Tasks/alice3-multicharm.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/struct]

Use UpperCamelCase for names of structs.
HistogramRegistry histos{"histos", {}, OutputObjHandlingPolicy::AnalysisObject};
std::map<int, int> pdgToBin;

Expand All @@ -83,12 +83,10 @@

Configurable<float> picMinDCAxy{"picMinDCAxy", -1, "[0] in |DCAz| > [0]+[1]/pT"};
Configurable<float> picMinDCAz{"picMinDCAz", -1, "[0] in |DCAxy| > [0]+[1]/pT"};
Configurable<float> picMaxTofDiffInner{"picTofDiffInner", 1e+4, "|signal - expected| (ps)"};
Configurable<float> picMinPt{"picMinPt", -1, "Minimum pT for Xic pions"};

Configurable<float> piccMinDCAxy{"piccMinDCAxy", -1, "[0] in |DCAxy| > [0]+[1]/pT"};
Configurable<float> piccMinDCAz{"piccMinDCAz", -1, "[0] in |DCAz| > [0]+[1]/pT"};
Configurable<float> piccMaxTofDiffInner{"piccMaxTofDiffInner", 1e+4, "|signal - expected| (ps)"};
Configurable<float> piccMinPt{"piccMinPt", -1, "Minimum pT for Xicc pions"};

Configurable<float> xicMaxDauDCA{"xicMaxDauDCA", 1e+4, "DCA between Xic daughters (cm)"};
Expand Down Expand Up @@ -150,7 +148,7 @@
hMCharmBuilding->GetXaxis()->SetBinLabel(22, "xicMinDecayDistanceFromPV");

if (doprocessXiccPID || doprocessXiccExtra) {
auto hPdgCodes = histos.add<TH2>("PIDQA/hPdgCodes", "hPdgCodes", kTH2D, {{3, 0.5, 3.5}, {5, 0.5, 5.5}});
auto hPdgCodes = histos.add<TH2>("PIDQA/hPdgCodes", "hPdgCodes", kTH2D, {{3, 0.5, 3.5}, {7, 0.5, 7.5}});
hPdgCodes->GetXaxis()->SetBinLabel(1, "pi1c");
hPdgCodes->GetXaxis()->SetBinLabel(2, "pi2c");
hPdgCodes->GetXaxis()->SetBinLabel(3, "picc");
Expand All @@ -159,11 +157,14 @@
hPdgCodes->GetYaxis()->SetBinLabel(3, "pi");
hPdgCodes->GetYaxis()->SetBinLabel(4, "ka");
hPdgCodes->GetYaxis()->SetBinLabel(5, "pr");
hPdgCodes->GetYaxis()->SetBinLabel(6, "xi");
hPdgCodes->GetYaxis()->SetBinLabel(7, "other");
pdgToBin.insert({kElectron, 1});
pdgToBin.insert({kMuonMinus, 2});
pdgToBin.insert({kPiPlus, 3});
pdgToBin.insert({kKPlus, 4});
pdgToBin.insert({kProton, 5});
pdgToBin.insert({kXiMinus, 6});

histos.add("PIDQA/hInnerTofTimeDeltaPi1c", "hInnerTofTimeDeltaPi1c; Reco - expected pion (ps)", kTH1D, {axisTofTrackDelta});
histos.add("PIDQA/hInnerTofTimeDeltaPi2c", "hInnerTofTimeDeltaPi2c; Reco - expected pion (ps)", kTH1D, {axisTofTrackDelta});
Expand Down Expand Up @@ -194,6 +195,12 @@
histos.add("h3dXicc", "h3dXicc; Xicc pT (GeV/#it(c)); Xicc #eta; Xicc mass (GeV/#it(c)^{2})", kTH3D, {axisPt, axisEta, axisXiccMass});
}

int getBin(const std::map<int, int>& pdgToBin, int pdg)
{
auto it = pdgToBin.find(pdg);
return (it != pdgToBin.end()) ? it->second : 7;
}

template <typename TMCharmCands>
void genericProcessXicc(TMCharmCands xiccCands)
{
Expand Down Expand Up @@ -324,9 +331,9 @@
histos.fill(HIST("PIDQA/hRichNSigmaPicc"), xiccCand.piccPt(), xiccCand.piccRichNSigma());
}

histos.fill(HIST("PIDQA/hPdgCodes"), 1, pdgToBin.at(std::abs(xiccCand.pi1cPdgCode())));
histos.fill(HIST("PIDQA/hPdgCodes"), 2, pdgToBin.at(std::abs(xiccCand.pi2cPdgCode())));
histos.fill(HIST("PIDQA/hPdgCodes"), 3, pdgToBin.at(std::abs(xiccCand.piccPdgCode())));
histos.fill(HIST("PIDQA/hPdgCodes"), 1, getBin(pdgToBin, std::abs(xiccCand.pi1cPdgCode())));
histos.fill(HIST("PIDQA/hPdgCodes"), 2, getBin(pdgToBin, std::abs(xiccCand.pi2cPdgCode())));
histos.fill(HIST("PIDQA/hPdgCodes"), 3, getBin(pdgToBin, std::abs(xiccCand.piccPdgCode())));
}

if constexpr (requires { xiccCand.negPt(); }) { // if extra table
Expand Down
Loading