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
6 changes: 5 additions & 1 deletion PWGLF/Tasks/Nuspex/LFNucleiBATask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "EventFiltering/ZorroSummary.h"
#include "CCDB/BasicCCDBManager.h"
#include <string>
#include <TLorentzVector.h>

Check failure on line 26 in PWGLF/Tasks/Nuspex/LFNucleiBATask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
#include <TF1.h>
#include "ReconstructionDataFormats/Track.h"
#include "Framework/runDataProcessing.h"
Expand Down Expand Up @@ -112,6 +112,7 @@
} kinemOptions;

Configurable<bool> isPVContributorCut{"isPVContributorCut", false, "Flag to enable isPVContributor cut."};
Configurable<bool> initITSPID{"initITSPID", false, "Flag to init the ITS PID response"};

struct : ConfigurableGroup {
Configurable<float> nsigmaTPCPr{"nsigmaTPCPr", 3.f, "Value of the Nsigma TPC cut for protons"};
Expand Down Expand Up @@ -206,11 +207,11 @@
Configurable<bool> enableCentrality{"enableCentrality", true, "Flag to enable centrality 3D histos)"};

// PDG codes and masses used in this analysis
static constexpr int PDGPion = 211;

Check failure on line 210 in PWGLF/Tasks/Nuspex/LFNucleiBATask.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.
static constexpr int PDGKaon = 321;

Check failure on line 211 in PWGLF/Tasks/Nuspex/LFNucleiBATask.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.
static constexpr int PDGProton = 2212;

Check failure on line 212 in PWGLF/Tasks/Nuspex/LFNucleiBATask.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.
static constexpr int PDGDeuteron = 1000010020;

Check failure on line 213 in PWGLF/Tasks/Nuspex/LFNucleiBATask.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.
static constexpr int PDGTriton = 1000010030;

Check failure on line 214 in PWGLF/Tasks/Nuspex/LFNucleiBATask.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.
static constexpr int PDGHelium = 1000020030;
static constexpr int PDGAlpha = 1000020040;
static constexpr float MassProtonVal = 0.938272088f;
Expand Down Expand Up @@ -241,8 +242,11 @@
}
}

void init(o2::framework::InitContext&)
void init(o2::framework::InitContext& context)
{
if (initITSPID) {
o2::aod::ITSResponse::setParameters(context);
}
if (skimmingOptions.applySkimming) {
zorroSummary.setObject(zorro.getZorroSummary());
}
Expand Down Expand Up @@ -2215,19 +2219,19 @@
float shiftPtNeg = 0.f;

if (enablePtShift && !fShiftPtHe) {
fShiftPtHe = new TF1("fShiftPtHe", "[0] * TMath::Exp([1] + [2] * x) + [3] + [4] * x", 0.f, 8.f);

Check failure on line 2222 in PWGLF/Tasks/Nuspex/LFNucleiBATask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
auto par = (std::vector<float>)parShiftPtHe;
fShiftPtHe->SetParameters(par[0], par[1], par[2], par[3], par[4]);
}

if (enablePtShift && !fShiftPtantiHe) {
fShiftPtantiHe = new TF1("fShiftPtantiHe", "[0] * TMath::Exp([1] + [2] * x) + [3] + [4] * x", 0.f, 8.f);

Check failure on line 2228 in PWGLF/Tasks/Nuspex/LFNucleiBATask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
auto par = (std::vector<float>)parShiftPtantiHe;
fShiftPtantiHe->SetParameters(par[0], par[1], par[2], par[3], par[4]);
}

if (enablePtShiftAntiD && !fShiftAntiD) {
fShiftAntiD = new TF1("fShiftAntiD", "[0] * TMath::Exp([1] + [2] * x) + [3] + [4] * x", 0.f, 8.f);

Check failure on line 2234 in PWGLF/Tasks/Nuspex/LFNucleiBATask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
auto par = (std::vector<float>)parShiftPtAntiD;
fShiftAntiD->SetParameters(par[0], par[1], par[2], par[3], par[4]);
}
Expand All @@ -2245,7 +2249,7 @@
}

if (enablePtShiftD && !fShiftD) {
fShiftD = new TF1("fShiftD", "[0] * TMath::Exp([1] + [2] * x) + [3] + [4] * x", 0.f, 8.f);

Check failure on line 2252 in PWGLF/Tasks/Nuspex/LFNucleiBATask.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
auto par = (std::vector<float>)parShiftPtD;
fShiftD->SetParameters(par[0], par[1], par[2], par[3], par[4]);
}
Expand Down
Loading