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
1 change: 0 additions & 1 deletion PWGLF/Tasks/Resonances/f1protoncorrelation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include <Math/GenVector/Boost.h>
#include <Math/Vector4D.h>
#include <TLorentzVector.h>

Check failure on line 34 in PWGLF/Tasks/Resonances/f1protoncorrelation.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 <TMath.h>
#include <TObjString.h>

Expand All @@ -39,7 +39,7 @@

#include <algorithm>
#include <array>
#include <iostream>

Check failure on line 42 in PWGLF/Tasks/Resonances/f1protoncorrelation.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[include-iostream]

Do not include iostream. Use O2 logging instead.
#include <iterator>
#include <random>
#include <sstream>
Expand Down Expand Up @@ -262,7 +262,7 @@
// PID dispatchers
inline bool passPionPID(int pidMode,
const aod::F1Tracks::iterator& f1track,
const TLorentzVector& pion,

Check failure on line 265 in PWGLF/Tasks/Resonances/f1protoncorrelation.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.
float maxMomPi) const
{
// pidMode:
Expand All @@ -289,7 +289,7 @@
}
inline bool passKaonPID(int pidMode,
const aod::F1Tracks::iterator& f1track,
const TLorentzVector& kaon,

Check failure on line 292 in PWGLF/Tasks/Resonances/f1protoncorrelation.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.
float maxMomK) const
{
// pidMode:
Expand Down Expand Up @@ -338,7 +338,7 @@
}
inline bool passProtonPID(int pidMode,
const aod::ProtonTracks::iterator& ptrack,
const TLorentzVector& proton,

Check failure on line 341 in PWGLF/Tasks/Resonances/f1protoncorrelation.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.
float pMin,
float pMax,
float pTofThr) const
Expand Down Expand Up @@ -453,7 +453,7 @@

/// Magnetic field to be provided in Tesla
static constexpr float tmpRadiiTPC[9] = {85., 105., 125., 145., 165., 185., 205., 225., 245.};
float PhiAtSpecificRadiiTPC(const TLorentzVector part1, const TLorentzVector part2, float charge1 = 0, int charge2 = 0, float magfield1 = 0.0, float magfield2 = 0.0)

Check failure on line 456 in PWGLF/Tasks/Resonances/f1protoncorrelation.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.
{
float pt1 = part1.Pt();
float phi1 = part1.Phi();
Expand Down Expand Up @@ -484,9 +484,9 @@
}

// get kstar
TLorentzVector trackSum, PartOneCMS, PartTwoCMS, trackRelK;

Check failure on line 487 in PWGLF/Tasks/Resonances/f1protoncorrelation.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.
float getkstar(const TLorentzVector part1,

Check failure on line 488 in PWGLF/Tasks/Resonances/f1protoncorrelation.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.
const TLorentzVector part2)

Check failure on line 489 in PWGLF/Tasks/Resonances/f1protoncorrelation.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.
{
// const TLorentzVector trackSum = part1 + part2;
trackSum = part1 + part2;
Expand All @@ -506,7 +506,7 @@
return 0.5 * trackRelK.P();
}

float getmT(const TLorentzVector part1, const TLorentzVector part2)

Check failure on line 509 in PWGLF/Tasks/Resonances/f1protoncorrelation.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.
{
trackSum = part1 + part2;
float kT = 0.5 * trackSum.Pt();
Expand Down Expand Up @@ -944,7 +944,6 @@
const float maxMomPi = maxMomentumPion;
const float maxMomK = maxMomentumKaon;


// const float pTofPiMin = momentumTOFPionMin;
// const float pTofPiMax = momentumTOFPionMax;
// const float pTofKMin = momentumTOFKaonMin;
Expand Down
Loading