Skip to content
Closed
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
2 changes: 1 addition & 1 deletion PWGLF/Tasks/Resonances/lambda1520_PbPb.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <Framework/AnalysisDataModel.h>
#include <Framework/HistogramRegistry.h>
#include <Framework/HistogramSpec.h>
#include <TLorentzVector.h>

Check failure on line 22 in PWGLF/Tasks/Resonances/lambda1520_PbPb.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 <TRandom.h>
#include <fairlogger/Logger.h>

Expand Down Expand Up @@ -358,7 +358,7 @@
void fillDataHistos(trackType const& trk1, trackType const& trk2, float mult, int occup = 100)
{

TLorentzVector p1, p2, p;

Check failure on line 361 in PWGLF/Tasks/Resonances/lambda1520_PbPb.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.
TRandom* rn = new TRandom();
float p_ptot = 0., k_ptot = 0.;

Expand All @@ -379,8 +379,8 @@
auto _pyKa = trkKa.py();
auto _pzKa = trkKa.pz();

p_ptot = TMath::Sqrt(_pxPr * _pxPr + _pyPr * _pyPr + _pzPr * _pzPr);

Check failure on line 382 in PWGLF/Tasks/Resonances/lambda1520_PbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
k_ptot = TMath::Sqrt(_pxKa * _pxKa + _pyKa * _pyKa + _pzKa * _pzKa);

Check failure on line 383 in PWGLF/Tasks/Resonances/lambda1520_PbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.

// Fill QA before track selection.
if (!mix) {
Expand Down Expand Up @@ -408,7 +408,7 @@
continue;
if (!selectionPIDProton(trkPr, p_ptot) || !selectionPIDKaon(trkKa, k_ptot))
continue;
if (isDeepAngle && TMath::ACos((trkPr.pt() * trkKa.pt() + _pzPr * _pzKa) / (p_ptot * k_ptot)) < cfgDeepAngle)

Check failure on line 411 in PWGLF/Tasks/Resonances/lambda1520_PbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
continue;

// Fill QA after track selection.
Expand Down Expand Up @@ -555,7 +555,7 @@
{

auto mult = collision.cent();
histos.fill(HIST("Event/h1d_ft0_mult_percentile"), mult);
histos.fill(HIST("Event/h1d_ft0_mult_percentile"), mult, 100);
fillDataHistos<false, true>(tracks, tracks, mult);

// get MC pT-spectra
Expand All @@ -571,7 +571,7 @@
if (!selTracks(track))
continue;

float p = TMath::Sqrt(track.px() * track.px() + track.py() * track.py() + track.pz() * track.pz());

Check failure on line 574 in PWGLF/Tasks/Resonances/lambda1520_PbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.

if (selectionPIDKaon(track, p) && std::abs(track.pdgCode()) == 321) {
histos.fill(HIST("QAChecks/h1d_ka_rec_pt"), track.pt());
Expand All @@ -583,19 +583,19 @@
}

for (auto const& part : resoParents) {
if (abs(part.pdgCode()) != lambda1520id) // // L* pdg_code = 3124

Check failure on line 586 in PWGLF/Tasks/Resonances/lambda1520_PbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
continue;
if (abs(part.y()) > 0.5) { // rapidity cut

Check failure on line 588 in PWGLF/Tasks/Resonances/lambda1520_PbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
continue;
}

bool pass1 = false;
bool pass2 = false;

if (abs(part.daughterPDG1()) == 2212 || abs(part.daughterPDG2()) == 2212) { // At least one decay to Proton

Check failure on line 595 in PWGLF/Tasks/Resonances/lambda1520_PbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
pass1 = true;
}
if (abs(part.daughterPDG1()) == 321 || abs(part.daughterPDG2()) == 321) { // At least one decay to Kaon

Check failure on line 598 in PWGLF/Tasks/Resonances/lambda1520_PbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
pass2 = true;
}

Expand Down
Loading