Skip to content

Commit ba9a03c

Browse files
author
ariffero
committed
Test LorentzVector solution for MegaLinter
1 parent 7ee5101 commit ba9a03c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

PWGUD/Tasks/FwdMuonsUPC.cxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include "DataFormatsParameters/GRPECSObject.h"
2929
#include "PWGUD/DataModel/UDTables.h"
3030

31-
#include "TLorentzVector.h"
31+
#include "LorentzVector.h"
3232
#include "TSystem.h"
3333
#include "TMath.h"
3434
#include "TRandom3.h"
@@ -461,7 +461,7 @@ struct FwdMuonsUPC {
461461
{
462462
float rAbs = fwdTrack.rAtAbsorberEnd();
463463
float pDca = fwdTrack.pDca();
464-
TLorentzVector p;
464+
LorentzVector p;
465465
auto mMu = particleMass(13);
466466
p.SetXYZM(fwdTrack.px(), fwdTrack.py(), fwdTrack.pz(), mMu);
467467
float eta = p.Eta();
@@ -480,10 +480,10 @@ struct FwdMuonsUPC {
480480
}
481481

482482
// function to compute phi for azimuth anisotropy
483-
void computePhiAnis(TLorentzVector p1, TLorentzVector p2, int sign1, float& phiAverage, float& phiCharge)
483+
void computePhiAnis(LorentzVector p1, LorentzVector p2, int sign1, float& phiAverage, float& phiCharge)
484484
{
485485

486-
TLorentzVector tSum, tDiffAv, tDiffCh;
486+
LorentzVector tSum, tDiffAv, tDiffCh;
487487
tSum = p1 + p2;
488488
if (sign1 > 0) {
489489
tDiffCh = p1 - p2;
@@ -560,11 +560,11 @@ struct FwdMuonsUPC {
560560
return;
561561

562562
// form Lorentz vectors
563-
TLorentzVector p1, p2;
563+
LorentzVector p1, p2;
564564
auto mMu = particleMass(13);
565565
p1.SetXYZM(tr1.px(), tr1.py(), tr1.pz(), mMu);
566566
p2.SetXYZM(tr2.px(), tr2.py(), tr2.pz(), mMu);
567-
TLorentzVector p = p1 + p2;
567+
LorentzVector p = p1 + p2;
568568

569569
// cut on pair kinematics
570570
// select mass
@@ -688,11 +688,11 @@ struct FwdMuonsUPC {
688688
LOGF(debug, "PDG codes: %d | %d", McPart1.pdgCode(), McPart2.pdgCode());
689689

690690
// create Lorentz vectors
691-
TLorentzVector p1, p2;
691+
LorentzVector p1, p2;
692692
auto mMu = particleMass(13);
693693
p1.SetXYZM(McPart1.px(), McPart1.py(), McPart1.pz(), mMu);
694694
p2.SetXYZM(McPart2.px(), McPart2.py(), McPart2.pz(), mMu);
695-
TLorentzVector p = p1 + p2;
695+
LorentzVector p = p1 + p2;
696696

697697
// cut on pair kinematics
698698
// select mass
@@ -803,11 +803,11 @@ struct FwdMuonsUPC {
803803
return;
804804

805805
// form Lorentz vectors
806-
TLorentzVector p1, p2;
806+
LorentzVector p1, p2;
807807
auto mMu = particleMass(13);
808808
p1.SetXYZM(tr1.px(), tr1.py(), tr1.pz(), mMu);
809809
p2.SetXYZM(tr2.px(), tr2.py(), tr2.pz(), mMu);
810-
TLorentzVector p = p1 + p2;
810+
LorentzVector p = p1 + p2;
811811

812812
// cut on pair kinematics (reco candidates)
813813
// select mass
@@ -832,10 +832,10 @@ struct FwdMuonsUPC {
832832
computePhiAnis(p1, p2, tr1.sign(), phiAverage, phiCharge);
833833

834834
// gen particle
835-
TLorentzVector p1Mc, p2Mc;
835+
LorentzVector p1Mc, p2Mc;
836836
p1Mc.SetXYZM(McPart1.px(), McPart1.py(), McPart1.pz(), mMu);
837837
p2Mc.SetXYZM(McPart2.px(), McPart2.py(), McPart2.pz(), mMu);
838-
TLorentzVector pMc = p1Mc + p2Mc;
838+
LorentzVector pMc = p1Mc + p2Mc;
839839

840840
// compute gen phi for azimuth anisotropy
841841
float phiGenAverage = 0;

0 commit comments

Comments
 (0)