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
20 changes: 10 additions & 10 deletions PWGUD/Tasks/FwdMuonsUPC.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "DataFormatsParameters/GRPECSObject.h"
#include "PWGUD/DataModel/UDTables.h"

#include "TLorentzVector.h"

Check failure on line 31 in PWGUD/Tasks/FwdMuonsUPC.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 "TSystem.h"
#include "TMath.h"
#include "TRandom3.h"
Expand Down Expand Up @@ -234,7 +234,7 @@
// my track type
// 0 = MCH-MID-MFT
// 1 = MCH-MID
Configurable<int> myTrackType{"myTrackType",3,"My track type"};
Configurable<int> myTrackType{"myTrackType", 3, "My track type"};

void init(InitContext&)
{
Expand Down Expand Up @@ -461,13 +461,13 @@
{
float rAbs = fwdTrack.rAtAbsorberEnd();
float pDca = fwdTrack.pDca();
TLorentzVector p;

Check failure on line 464 in PWGUD/Tasks/FwdMuonsUPC.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.
auto mMu = particleMass(13);
p.SetXYZM(fwdTrack.px(), fwdTrack.py(), fwdTrack.pz(), mMu);
float eta = p.Eta();
float pt = p.Pt();
float pDcaMax = rAbs < kRAbsMid ? kPDca1 : kPDca2;
LOGF(info,"eta min = %f",kEtaMin);
LOGF(info, "eta min = %f", kEtaMin);
if (eta < kEtaMin || eta > kEtaMax)
return false;
if (pt < kPtMin)
Expand All @@ -480,10 +480,10 @@
}

// function to compute phi for azimuth anisotropy
void computePhiAnis(TLorentzVector p1, TLorentzVector p2, int sign1, float& phiAverage, float& phiCharge)

Check failure on line 483 in PWGUD/Tasks/FwdMuonsUPC.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.
{

TLorentzVector tSum, tDiffAv, tDiffCh;

Check failure on line 486 in PWGUD/Tasks/FwdMuonsUPC.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.
tSum = p1 + p2;
if (sign1 > 0) {
tDiffCh = p1 - p2;
Expand Down Expand Up @@ -539,17 +539,17 @@
return;

// MFT-MID match selection (if MFT is requested by the trackType)
if(myTrackType==0){
if (myTrackType == 0) {
// if MFT is requested check that the tracks is inside the MFT acceptance
kEtaMin = -3.6;
kEtaMax = -2.5;

int nMFT = 0;
if(tr1.chi2MatchMCHMFT() > 0 && tr1.chi2MatchMCHMFT() < 30)
if (tr1.chi2MatchMCHMFT() > 0 && tr1.chi2MatchMCHMFT() < 30)
nMFT++;
if(tr2.chi2MatchMCHMFT() > 0 && tr2.chi2MatchMCHMFT() < 30)
if (tr2.chi2MatchMCHMFT() > 0 && tr2.chi2MatchMCHMFT() < 30)
nMFT++;
if(nMFT != 2)
if (nMFT != 2)
return;
}

Expand All @@ -560,11 +560,11 @@
return;

// form Lorentz vectors
TLorentzVector p1, p2;

Check failure on line 563 in PWGUD/Tasks/FwdMuonsUPC.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.
auto mMu = particleMass(13);
p1.SetXYZM(tr1.px(), tr1.py(), tr1.pz(), mMu);
p2.SetXYZM(tr2.px(), tr2.py(), tr2.pz(), mMu);
TLorentzVector p = p1 + p2;

Check failure on line 567 in PWGUD/Tasks/FwdMuonsUPC.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.

// cut on pair kinematics
// select mass
Expand Down Expand Up @@ -688,11 +688,11 @@
LOGF(debug, "PDG codes: %d | %d", McPart1.pdgCode(), McPart2.pdgCode());

// create Lorentz vectors
TLorentzVector p1, p2;

Check failure on line 691 in PWGUD/Tasks/FwdMuonsUPC.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.
auto mMu = particleMass(13);
p1.SetXYZM(McPart1.px(), McPart1.py(), McPart1.pz(), mMu);
p2.SetXYZM(McPart2.px(), McPart2.py(), McPart2.pz(), mMu);
TLorentzVector p = p1 + p2;

Check failure on line 695 in PWGUD/Tasks/FwdMuonsUPC.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.

// cut on pair kinematics
// select mass
Expand Down Expand Up @@ -782,17 +782,17 @@
return;

// MFT-MID match selection (if MFT is requested by the trackType)
if(myTrackType==0){
if (myTrackType == 0) {
// if MFT is requested check that the tracks is inside the MFT acceptance
kEtaMin = -3.6;
kEtaMax = -2.5;

int nMFT = 0;
if(tr1.chi2MatchMCHMFT() > 0 && tr1.chi2MatchMCHMFT() < 30)
if (tr1.chi2MatchMCHMFT() > 0 && tr1.chi2MatchMCHMFT() < 30)
nMFT++;
if(tr2.chi2MatchMCHMFT() > 0 && tr2.chi2MatchMCHMFT() < 30)
if (tr2.chi2MatchMCHMFT() > 0 && tr2.chi2MatchMCHMFT() < 30)
nMFT++;
if(nMFT != 2)
if (nMFT != 2)
return;
}

Expand All @@ -803,11 +803,11 @@
return;

// form Lorentz vectors
TLorentzVector p1, p2;

Check failure on line 806 in PWGUD/Tasks/FwdMuonsUPC.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.
auto mMu = particleMass(13);
p1.SetXYZM(tr1.px(), tr1.py(), tr1.pz(), mMu);
p2.SetXYZM(tr2.px(), tr2.py(), tr2.pz(), mMu);
TLorentzVector p = p1 + p2;

Check failure on line 810 in PWGUD/Tasks/FwdMuonsUPC.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.

// cut on pair kinematics (reco candidates)
// select mass
Expand Down
Loading