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
4 changes: 3 additions & 1 deletion PWGLF/Tasks/Nuspex/LFNucleiBATask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2163,7 +2163,7 @@
if (evselOptions.removeTFBorder && !event.selection_bit(aod::evsel::kNoTimeFrameBorder))
return;
}
if (event.centFT0M() < cfgMultCutLow || event.centFT0M() > cfgMultCutHigh) {
if (event.centFT0M() <= cfgMultCutLow || event.centFT0M() > cfgMultCutHigh) {
return;
}
histos.fill(HIST("event/eventSelection"), 7);
Expand Down Expand Up @@ -2200,7 +2200,7 @@

tracks.copyIndexBindings(tracksWithITS);

for (auto& track : tracksWithITS) {

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

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
if constexpr (!IsFilteredData) {
if (!track.isGlobalTrackWoDCA() && filterOptions.enableIsGlobalTrack) {
continue;
Expand Down Expand Up @@ -2246,19 +2246,19 @@
float shiftPtNeg = 0.f;

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

Check failure on line 2249 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 (enablePtShiftHe && !fShiftPtantiHe) {
fShiftPtantiHe = new TF1("fShiftPtantiHe", "[0] * TMath::Exp([1] + [2] * x) + [3] + [4] * x", 0.f, 8.f);

Check failure on line 2255 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 2261 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 @@ -2276,7 +2276,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 2279 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 Expand Up @@ -2616,7 +2616,7 @@
if constexpr (IsFilteredData) {
isPhysPrim = track.isPhysicalPrimary();
isProdByGen = track.producedByGenerator();
isWeakDecay = track.getProcess() == 4;

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

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
pdgCode = track.pdgCode();
} else {
if (!track.has_mcParticle()) {
Expand All @@ -2624,7 +2624,7 @@
}
isPhysPrim = track.mcParticle().isPhysicalPrimary();
isProdByGen = track.mcParticle().producedByGenerator();
isWeakDecay = track.mcParticle().getProcess() == 4;

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

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
pdgCode = track.mcParticle().pdgCode();
}

Expand Down Expand Up @@ -3118,7 +3118,7 @@
if constexpr (IsFilteredData) {
isPhysPrim = track.isPhysicalPrimary();
isProdByGen = track.producedByGenerator();
isWeakDecay = track.getProcess() == 4;

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

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
pdgCode = track.pdgCode();
genPt = std::sqrt(std::pow(track.px(), 2) + std::pow(track.py(), 2));

Expand All @@ -3128,7 +3128,7 @@
}
isPhysPrim = track.mcParticle().isPhysicalPrimary();
isProdByGen = track.mcParticle().producedByGenerator();
isWeakDecay = track.mcParticle().getProcess() == 4;

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

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
pdgCode = track.mcParticle().pdgCode();
genPt = track.mcParticle().pt();

Expand Down Expand Up @@ -4519,6 +4519,7 @@
}
histos.fill(HIST("tracks/deuteron/h1DeuteronSpectra"), DPt);
histos.fill(HIST("tracks/deuteron/h2DeuteronYvsPt"), track.rapidity(o2::track::PID::getMass2Z(o2::track::PID::Deuteron)), DPt);
histos.fill(HIST("tracks/deuteron/h2DeuteronEtavsPt"), track.eta(), DPt);
histos.fill(HIST("tracks/deuteron/h2DeuteronVspNSigmaITSDe_wTPCpid"), track.p(), nITSDe);

if (outFlagOptions.enablePIDplot)
Expand All @@ -4531,6 +4532,7 @@
}
histos.fill(HIST("tracks/deuteron/h1antiDeuteronSpectra"), antiDPt);
histos.fill(HIST("tracks/deuteron/h2antiDeuteronYvsPt"), track.rapidity(o2::track::PID::getMass2Z(o2::track::PID::Deuteron)), antiDPt);
histos.fill(HIST("tracks/deuteron/h2antiDeuteronEtavsPt"), track.eta(), antiDPt);
histos.fill(HIST("tracks/deuteron/h2antiDeuteronVspNSigmaITSDe_wTPCpid"), track.p(), nITSDe);

if (outFlagOptions.enablePIDplot)
Expand Down Expand Up @@ -5961,7 +5963,7 @@
spectraGen.fill(HIST("histGenVetxZ"), mcCollision.posZ());
if (mcCollision.centFT0M() < cfgMultCutLow || mcCollision.centFT0M() > cfgMultCutHigh)
return;
for (auto& mcParticleGen : mcParticles) {

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

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
if (mcParticleGen.y() > kinemOptions.cfgRapidityCutHigh || mcParticleGen.y() < kinemOptions.cfgRapidityCutLow) {
continue;
}
Expand Down
Loading