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
13 changes: 8 additions & 5 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 @@ -90,7 +90,7 @@
// 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 93 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 He3PDG = o2::constants::physics::Pdg::kHelium3;
constexpr float CommonInite = 0.0f;
Expand Down Expand Up @@ -167,7 +167,7 @@
int32_t collisionID = 0;
};

struct he3HadronFemto {

Check failure on line 170 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 @@ -393,7 +393,10 @@
if (std::abs(candidate.eta()) > settingCutEta) {
return false;
}
const int minTPCNClsFound = 90;const int minTPCNClsCrossedRows = 70;const float crossedRowsToFindableRatio = 0.8f;const float maxChi2NCl = 4.f;
const int minTPCNClsFound = 90;
const int minTPCNClsCrossedRows = 70;
const float crossedRowsToFindableRatio = 0.8f;
const float maxChi2NCl = 4.f;
if (candidate.itsNCls() < settingCutNCls ||
candidate.tpcNClsFound() < minTPCNClsFound ||
candidate.tpcNClsCrossedRows() < minTPCNClsCrossedRows ||
Expand All @@ -406,7 +409,7 @@

return true;
}

template <typename Ttrack>
float computeTPCNSigmaHadron(const Ttrack& candidate)
{
Expand Down Expand Up @@ -505,13 +508,13 @@

template <typename Ttrack, typename Tcollisions, typename Ttracks>
bool fillCandidateInfo(const Ttrack& trackHe3, const Ttrack& trackHad, const CollBracket& collBracket, const Tcollisions& collisions, He3HadCandidate& he3Hadcand, const Ttracks& /*trackTable*/, bool isMixedEvent)
{
{
const int numCoordinates = 3;
auto trackCovHe3 = getTrackParCov(trackHe3);
auto trackCovHad = getTrackParCov(trackHad);
if (!isMixedEvent) {
//auto trackCovHe3 = getTrackParCov(trackHe3);
//auto trackCovHad = getTrackParCov(trackHad);
// auto trackCovHe3 = getTrackParCov(trackHe3);
// auto trackCovHad = getTrackParCov(trackHad);
int nCand = CommonInite;
try {
nCand = mFitter.process(trackCovHe3, trackCovHad);
Expand Down
Loading