Skip to content
Open
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
22 changes: 18 additions & 4 deletions PWGLF/Tasks/Nuspex/hadronnucleicorrelation.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 PWGLF/Tasks/Nuspex/hadronnucleicorrelation.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 @@ -269,7 +269,7 @@
}
registry.add("hMult", "multiplicity", {HistType::kTH1D, {{200, 0.f, 200.f, "N_{ch}"}}});

if (doQA) {
if (doQA && (doprocessSameEvent || doprocessSameEventEvSel || doprocessMC)) {
// Track QA
registryQa.add("QA/hVtxZ_trk", "#it{z}_{vtx}", {HistType::kTH1D, {{150, -15.f, 15.f, "#it{z}_{vtx} (cm)"}}});
registryQa.add("QA/hTPCnClusters", "N TPC Clusters; N TPC Clusters", {HistType::kTH1D, {{200, 0.f, 200.f}}});
Expand Down Expand Up @@ -428,8 +428,10 @@
registry.addClone("Generated/hQADeuterons", "Generated/hQAAntiDeuterons");

const AxisSpec ptAxisGen = {100, 0.f, 10.f, "#it{p}_{T} GeV/#it{c}"};
registry.add("Generated/hDeuteronsVsPt", "hDeuteronsVsPt;", {HistType::kTH1D, {ptAxisGen}});
registry.add("Generated/hAntiDeuteronsVsPt", "hAntiDeuteronsVsPt;", {HistType::kTH1D, {ptAxisGen}});
registry.add("Generated/hDeuteronsVsPt", "hDeuteronsVsPt", {HistType::kTH1D, {ptAxisGen}});
registry.add("Generated/hAntiDeuteronsVsPt", "hAntiDeuteronsVsPt", {HistType::kTH1D, {ptAxisGen}});
registry.add("Generated/hProtonsVsPt", "hProtonsVsPt", {HistType::kTH1D, {ptAxisGen}});
registry.add("Generated/hAntiProtonsVsPt", "hAntiProtonsVsPt", {HistType::kTH1D, {ptAxisGen}});
}
}

Expand Down Expand Up @@ -1840,9 +1842,15 @@
case PDG_t::kProton:
registry.fill(HIST("Generated/hQAProtons"), binPosition);
return true;
case -PDG_t::kProton:
case PDG_t::kProtonBar:
registry.fill(HIST("Generated/hQAAntiProtons"), binPosition);
return true;
case PDG_t::kNeutron:
registry.fill(HIST("Generated/hQANeutrons"), binPosition);
return true;
case PDG_t::kNeutronBar:
registry.fill(HIST("Generated/hQAAntiNeutrons"), binPosition);
return true;
case o2::constants::physics::Pdg::kDeuteron:
registry.fill(HIST("Generated/hQADeuterons"), binPosition);
return true;
Expand All @@ -1864,6 +1872,12 @@

if (std::abs(particle.y()) < yRap) {
switch (particle.pdgCode()) {
case PDG_t::kProton:
registry.fill(HIST("Generated/hProtonsVsPt"), particle.pt());
break;
case -PDG_t::kProton:
registry.fill(HIST("Generated/hAntiProtonsVsPt"), particle.pt());
break;
case o2::constants::physics::Pdg::kDeuteron:
registry.fill(HIST("Generated/hDeuteronsVsPt"), particle.pt());
break;
Expand Down
Loading