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

#include "TDatabasePDG.h"

Check warning on line 30 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/database]

Direct use of TDatabasePDG is not allowed. Use o2::constants::physics::Mass... or Service<o2::framework::O2DatabasePDG>.
#include "TLorentzVector.h"
#include "TSystem.h"
#include "TMath.h"
Expand Down Expand Up @@ -167,7 +167,7 @@
struct fwdMuonsUPC {

// a pdg object
TDatabasePDG* pdg = nullptr;

Check warning on line 170 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pdg/database]

Direct use of TDatabasePDG is not allowed. Use o2::constants::physics::Mass... or Service<o2::framework::O2DatabasePDG>.

using CandidatesFwd = soa::Join<o2::aod::UDCollisions, o2::aod::UDCollisionsSelsFwd>;
using ForwardTracks = soa::Join<o2::aod::UDFwdTracks, o2::aod::UDFwdTracksExtra>;
Expand Down Expand Up @@ -204,8 +204,8 @@
Configurable<float> highRapidity{"highRapidity", -2., "upper limit in rapidity histo"};
// phi of muon pairs
Configurable<int> nBinsPhi{"nBinsPhi", 600, "N bins in phi histo"};
Configurable<float> lowPhi{"lowPhi", -TMath::Pi(), "lower limit in phi histo"};

Check warning on line 207 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Consider using the PI constant (and its multiples and fractions) defined in o2::constants::math.
Configurable<float> highPhi{"highPhi", TMath::Pi(), "upper limit in phi histo"};

Check warning on line 208 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Consider using the PI constant (and its multiples and fractions) defined in o2::constants::math.
// pT of single muons
Configurable<int> nBinsPtSingle{"nBinsPtSingle", 500, "N bins in pT histo single muon"};
Configurable<float> lowPtSingle{"lowPtSingle", 0., "lower limit in pT histo single muon"};
Expand All @@ -216,8 +216,8 @@
Configurable<float> highEtaSingle{"highEtaSingle", -2., "upper limit in eta histo single muon"};
// phi of single muons
Configurable<int> nBinsPhiSingle{"nBinsPhiSingle", 600, "N bins in phi histo single muon"};
Configurable<float> lowPhiSingle{"lowPhiSingle", -TMath::Pi(), "lower limit in phi histo single muon"};

Check warning on line 219 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Consider using the PI constant (and its multiples and fractions) defined in o2::constants::math.
Configurable<float> highPhiSingle{"highPhiSingle", TMath::Pi(), "upper limit in phi histo single muon"};

Check warning on line 220 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Consider using the PI constant (and its multiples and fractions) defined in o2::constants::math.
// ZDC
Configurable<int> nBinsZDCen{"nBinsZDCen", 200, "N bins in ZN energy"};
Configurable<float> lowEnZN{"lowEnZN", -50., "lower limit in ZN energy histo"};
Expand Down Expand Up @@ -557,9 +557,9 @@
computePhiAnis(p1, p2, tr1.sign(), phiAverage, phiCharge);

// zdc info
if (TMath::Abs(zdc.timeA) < 10)

Check warning on line 560 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
registry.fill(HIST("hTimeZNA"), zdc.timeA);
if (TMath::Abs(zdc.timeC) < 10)

Check warning on line 562 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
registry.fill(HIST("hTimeZNC"), zdc.timeC);
registry.fill(HIST("hEnergyZN"), zdc.enA, zdc.enC);

Expand All @@ -568,9 +568,9 @@
bool neutron_C = false;
int znClass = -1;

if (TMath::Abs(zdc.timeA) < 2)

Check warning on line 571 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
neutron_A = true;
if (TMath::Abs(zdc.timeC) < 2)

Check warning on line 573 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root-entity]

Consider replacing ROOT entities with equivalents from standard C++ or from O2.
neutron_C = true;

if (std::isinf(zdc.timeC))
Expand Down Expand Up @@ -699,14 +699,14 @@
// store the event to save it into a tree
if (McPart1.pdgCode() < 0) {
dimuGen(p.M(), p.Pt(), p.Rapidity(), p.Phi(),
phiAverage, phiCharge,
p1.Pt(), p1.PseudoRapidity(), p1.Phi(),
p2.Pt(), p2.PseudoRapidity(), p2.Phi());
phiAverage, phiCharge,
p1.Pt(), p1.PseudoRapidity(), p1.Phi(),
p2.Pt(), p2.PseudoRapidity(), p2.Phi());
} else {
dimuGen(p.M(), p.Pt(), p.Rapidity(), p.Phi(),
phiAverage, phiCharge,
p2.Pt(), p2.PseudoRapidity(), p2.Phi(),
p1.Pt(), p1.PseudoRapidity(), p1.Phi());
phiAverage, phiCharge,
p2.Pt(), p2.PseudoRapidity(), p2.Phi(),
p1.Pt(), p1.PseudoRapidity(), p1.Phi());
}
}

Expand Down
Loading