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
2 changes: 1 addition & 1 deletion PWGLF/Tasks/Nuspex/AngularCorrelationsInJets.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@
if (track.tpcNSigmaStoreEl() < nsigmaRejection || track.tpcNSigmaStoreMu() < nsigmaRejection || track.tpcNSigmaStorePi() < nsigmaRejection || track.tpcNSigmaStoreKa() < nsigmaRejection || track.tpcNSigmaStoreTr() < nsigmaRejection || track.tpcNSigmaStoreAl() < nsigmaRejection)
return false;
switch (species) { // guard against nsigmaRejection being lower than nsigma cuts that are applied before this function
case 1: // proton
case 1: // proton
return (track.tpcNSigmaPr() < protonNsigma && track.tpcNSigmaDe() > nsigmaRejection && track.tpcNSigmaHe() > nsigmaRejection);
break;
case 2: // antiproton
Expand Down Expand Up @@ -371,9 +371,9 @@

if (tightCuts) { // for correlation function
// DCA
if (TMath::Abs(track.dcaXY()) > protonDCAxyCF)

Check warning on line 374 in PWGLF/Tasks/Nuspex/AngularCorrelationsInJets.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.
return false;
if (TMath::Abs(track.dcaZ()) > protonDCAzCF)

Check warning on line 376 in PWGLF/Tasks/Nuspex/AngularCorrelationsInJets.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.
return false;

registryData.fill(HIST("hTPCnsigmaProtonCF"), track.pt(), track.tpcNSigmaPr());
Expand All @@ -382,8 +382,8 @@

// nsigma
double tofNsigma = track.hasTOF() ? track.tofNSigmaPr() : 999;
if ((track.pt() < protonTPCTOFpT && (TMath::Abs(track.tpcNSigmaPr()) > protonNsigma)) || (track.pt() > protonTPCTOFpT && (TMath::Sqrt(track.tpcNSigmaPr() * track.tpcNSigmaPr() + tofNsigma * tofNsigma) > protonNsigma)))

Check warning on line 385 in PWGLF/Tasks/Nuspex/AngularCorrelationsInJets.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.
if (TMath::Sqrt(track.tpcNSigmaPr() * track.tpcNSigmaPr() + tofNsigma * tofNsigma) > protonNsigma)

Check warning on line 386 in PWGLF/Tasks/Nuspex/AngularCorrelationsInJets.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.
return false;
if (!singleSpeciesTPCNSigma(track, 1))
return false;
Expand Down Expand Up @@ -795,7 +795,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 798 in PWGLF/Tasks/Nuspex/AngularCorrelationsInJets.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 @@ -805,7 +805,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 808 in PWGLF/Tasks/Nuspex/AngularCorrelationsInJets.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 @@ -823,7 +823,7 @@
}

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

Check warning on line 826 in PWGLF/Tasks/Nuspex/AngularCorrelationsInJets.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 Down Expand Up @@ -900,13 +900,13 @@
TVector3 particleDir(track.px(), track.py(), track.pz());
double deltaEtaJet = particleDir.Eta() - pJet.Eta();
double deltaPhiJet = getDeltaPhi(particleDir.Phi(), pJet.Phi());
double deltaRJet = sqrt(deltaEtaJet * deltaEtaJet + deltaPhiJet * deltaPhiJet);

Check warning on line 903 in PWGLF/Tasks/Nuspex/AngularCorrelationsInJets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
double deltaEtaUE1 = particleDir.Eta() - UEAxis1.Eta();
double deltaPhiUE1 = getDeltaPhi(particleDir.Phi(), UEAxis1.Phi());
double deltaRUE1 = sqrt(deltaEtaUE1 * deltaEtaUE1 + deltaPhiUE1 * deltaPhiUE1);

Check warning on line 906 in PWGLF/Tasks/Nuspex/AngularCorrelationsInJets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
double deltaEtaUE2 = particleDir.Eta() - UEAxis2.Eta();
double deltaPhiUE2 = getDeltaPhi(particleDir.Phi(), UEAxis2.Phi());
double deltaRUE2 = sqrt(deltaEtaUE2 * deltaEtaUE2 + deltaPhiUE2 * deltaPhiUE2);

Check warning on line 909 in PWGLF/Tasks/Nuspex/AngularCorrelationsInJets.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

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

if (deltaRJet < Rmax) {
if (deltaPhiJet != -999)
Expand Down
Loading