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
4 changes: 2 additions & 2 deletions PWGLF/Tasks/Nuspex/nuclei_in_jets.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
registryMC.add("antiproton_eta_pt_ue", "antiproton_eta_pt_ue", HistType::kTH2F, {{200, 0.0, 10.0, "#it{p}_{T} (GeV/#it{c})"}, {20, -1.0, 1.0, "#it{#eta}"}});

// Bethe-Bloch
TF1 *bbClsSize = new TF1("bbClsSize", BetheBloch, 0.1, 10, 9);
TF1* bbClsSize = new TF1("bbClsSize", BetheBloch, 0.1, 10, 9);
bbClsSize->SetParameter(0, bbPar0);
bbClsSize->SetParameter(1, bbPar1);
bbClsSize->SetParameter(2, bbPar2);
Expand Down Expand Up @@ -382,7 +382,7 @@
if (px == 0 && py != 0) {

uy = -(pz * pz) / py;
ux = sign * sqrt(py * py - (pz * pz * pz * pz) / (py * py));

Check warning on line 385 in PWGLF/Tasks/Nuspex/nuclei_in_jets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
uz = pz;
u.SetXYZ(ux, uy, uz);
return;
Expand All @@ -392,7 +392,7 @@
if (py == 0 && px != 0) {

ux = -(pz * pz) / px;
uy = sign * sqrt(px * px - (pz * pz * pz * pz) / (px * px));

Check warning on line 395 in PWGLF/Tasks/Nuspex/nuclei_in_jets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
uz = pz;
u.SetXYZ(ux, uy, uz);
return;
Expand All @@ -410,7 +410,7 @@
}

// Solutions
ux = (-b + sign * sqrt(delta)) / (2.0 * a);

Check warning on line 413 in PWGLF/Tasks/Nuspex/nuclei_in_jets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
uy = (-pz * pz - px * ux) / py;
uz = pz;
u.SetXYZ(ux, uy, uz);
Expand All @@ -434,7 +434,7 @@
{
double dx = v1.Eta() - v2.Eta();
double dy = GetDeltaPhi(v1.Phi(), v2.Phi());
double d = sqrt(dx * dx + dy * dy);

Check warning on line 437 in PWGLF/Tasks/Nuspex/nuclei_in_jets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
if (d < 2.0 * R)
return true;
return false;
Expand All @@ -451,7 +451,7 @@
return lambda;
}

double BetheBloch(double *x, double *par)
double BetheBloch(double* x, double* par)
{
// 5 parameters for the bethe bloch from 0 to 4
// 1 parameter for the mip mpar[5]
Expand Down Expand Up @@ -603,13 +603,13 @@

double deltaEta_jet = sel_track.Eta() - jet[i].Eta();
double deltaPhi_jet = GetDeltaPhi(sel_track.Phi(), jet[i].Phi());
double deltaR_jet = sqrt(deltaEta_jet * deltaEta_jet + deltaPhi_jet * deltaPhi_jet);

Check warning on line 606 in PWGLF/Tasks/Nuspex/nuclei_in_jets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
double deltaEta_ue1 = sel_track.Eta() - ue_axis1.Eta();
double deltaPhi_ue1 = GetDeltaPhi(sel_track.Phi(), ue_axis1.Phi());
double deltaR_ue1 = sqrt(deltaEta_ue1 * deltaEta_ue1 + deltaPhi_ue1 * deltaPhi_ue1);

Check warning on line 609 in PWGLF/Tasks/Nuspex/nuclei_in_jets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
double deltaEta_ue2 = sel_track.Eta() - ue_axis2.Eta();
double deltaPhi_ue2 = GetDeltaPhi(sel_track.Phi(), ue_axis2.Phi());
double deltaR_ue2 = sqrt(deltaEta_ue2 * deltaEta_ue2 + deltaPhi_ue2 * deltaPhi_ue2);

Check warning on line 612 in PWGLF/Tasks/Nuspex/nuclei_in_jets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.

if (deltaR_jet < Rjet) {
registryQC.fill(HIST("deltaEtadeltaPhi_jet"), deltaEta_jet, deltaPhi_jet);
Expand Down Expand Up @@ -720,13 +720,13 @@
TVector3 particle_dir(track.px(), track.py(), track.pz());
double deltaEta_jet = particle_dir.Eta() - jet[i].Eta();
double deltaPhi_jet = GetDeltaPhi(particle_dir.Phi(), jet[i].Phi());
double deltaR_jet = sqrt(deltaEta_jet * deltaEta_jet + deltaPhi_jet * deltaPhi_jet);

Check warning on line 723 in PWGLF/Tasks/Nuspex/nuclei_in_jets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
double deltaEta_ue1 = particle_dir.Eta() - ue1[i].Eta();
double deltaPhi_ue1 = GetDeltaPhi(particle_dir.Phi(), ue1[i].Phi());
double deltaR_ue1 = sqrt(deltaEta_ue1 * deltaEta_ue1 + deltaPhi_ue1 * deltaPhi_ue1);

Check warning on line 726 in PWGLF/Tasks/Nuspex/nuclei_in_jets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
double deltaEta_ue2 = particle_dir.Eta() - ue2[i].Eta();
double deltaPhi_ue2 = GetDeltaPhi(particle_dir.Phi(), ue2[i].Phi());
double deltaR_ue2 = sqrt(deltaEta_ue2 * deltaEta_ue2 + deltaPhi_ue2 * deltaPhi_ue2);

Check warning on line 729 in PWGLF/Tasks/Nuspex/nuclei_in_jets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.

// DCAxy Distributions of Antiprotons
if (track.sign() < 0) { // only antiprotons
Expand Down
Loading