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
34 changes: 17 additions & 17 deletions PWGLF/TableProducer/Nuspex/he3HadronFemto.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/TableProducer/Nuspex/he3HadronFemto.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 @@ -23,7 +23,7 @@
#include <TFile.h>
#include <TH2F.h>
#include <TPDGCode.h>
#include <TDatabasePDG.h>

Check failure on line 26 in PWGLF/TableProducer/Nuspex/he3HadronFemto.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/database]

Do not use TDatabasePDG directly. Use o2::constants::physics::Mass... or Service<o2::framework::O2DatabasePDG> instead.

#include <cmath>
#include <string>
Expand Down Expand Up @@ -83,13 +83,13 @@

namespace
{
constexpr double betheBlochDefault[1][6]{{-1.e32, -1.e32, -1.e32, -1.e32, -1.e32, -1.e32}};

Check failure on line 86 in PWGLF/TableProducer/Nuspex/he3HadronFemto.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/constexpr-constant]

Use UpperCamelCase for names of constexpr constants. Names of special constants may be prefixed with "k".
static const std::vector<std::string> betheBlochParNames{"p0", "p1", "p2", "p3", "p4", "resolution"};

// constexpr float he3Mass = o2::constants::physics::MassHelium3;
// constexpr float protonMass = o2::constants::physics::MassProton;
// constexpr float pionchargedMass = o2::constants::physics::MassPiPlus;
constexpr int Li4PDG = 1000030040;

Check failure on line 92 in PWGLF/TableProducer/Nuspex/he3HadronFemto.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/explicit-code]

Avoid hard-coded PDG codes. Use named values from PDG_t or o2::constants::physics::Pdg instead.
constexpr int ProtonPDG = PDG_t::kProton;
constexpr int PionPDG = PDG_t::kPiPlus;
constexpr int He3PDG = o2::constants::physics::Pdg::kHelium3;
Expand Down Expand Up @@ -171,7 +171,7 @@
int32_t collisionID = 0;
};

struct he3HadronFemto {

Check failure on line 174 in PWGLF/TableProducer/Nuspex/he3HadronFemto.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/struct]

Use UpperCamelCase for names of structs.

Produces<aod::he3HadronTable> outputDataTable;
Produces<aod::he3HadronTableMC> outputMcTable;
Expand Down Expand Up @@ -768,20 +768,20 @@
he3Hadcand.sharedClustersHad,
he3Hadcand.isBkgUS,
he3Hadcand.isBkgEM);
if (isMC) {
outputMcTable(
he3Hadcand.momHe3MC,
he3Hadcand.etaHe3MC,
he3Hadcand.phiHe3MC,
he3Hadcand.momHadMC,
he3Hadcand.etaHadMC,
he3Hadcand.phiHadMC,
he3Hadcand.l4PtMC,
he3Hadcand.l4MassMC,
he3Hadcand.isMotherLi4,
he3Hadcand.isHe3Primary,
he3Hadcand.isHadPrimary);
}
if (isMC) {
outputMcTable(
he3Hadcand.momHe3MC,
he3Hadcand.etaHe3MC,
he3Hadcand.phiHe3MC,
he3Hadcand.momHadMC,
he3Hadcand.etaHadMC,
he3Hadcand.phiHadMC,
he3Hadcand.l4PtMC,
he3Hadcand.l4MassMC,
he3Hadcand.isMotherLi4,
he3Hadcand.isHe3Primary,
he3Hadcand.isHadPrimary);
}
if (settingFillMultiplicity) {
outputMultiplicityTable(
collision.globalIndex(),
Expand Down Expand Up @@ -988,7 +988,7 @@
for (const auto& collision : collisions) {

mTrackPairs.clear();

if (!selectCollision</*isMC*/ true>(collision, bcs)) {
continue;
}
Expand Down Expand Up @@ -1018,11 +1018,11 @@
}
LOG(info) << "only pi-He3";

He3HadCandidate he3Hadcand;
He3HadCandidate he3Hadcand;
if (!fillCandidateInfo(heTrack, piTrack, collBracket, collisions, he3Hadcand, tracks, /*mix*/ false)) {
continue;
}

fillCandidateInfoMC(mctrackHe3, mctrackHad, he3Hadcand);
fillHistograms(he3Hadcand);
LOG(info) << "fillHistograms done";
Expand Down
Loading