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
2 changes: 1 addition & 1 deletion DPG/Tasks/AOTTrack/PID/HMPID/hmpidQaPbPb.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@

const double nMean = 1.288; // radiator mean refraction index

double cosChAngleTh = (TMath::Sqrt(mass * mass + mom * mom)) / (nMean * mom);

Check failure on line 52 in DPG/Tasks/AOTTrack/PID/HMPID/hmpidQaPbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
if (cosChAngleTh > 1)
return chAngleTh;

chAngleTh = TMath::ACos(cosChAngleTh);

Check failure on line 56 in DPG/Tasks/AOTTrack/PID/HMPID/hmpidQaPbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.

return chAngleTh;
}
Expand Down Expand Up @@ -109,7 +109,7 @@
if (hmpidSignal <= 0) {
// HMPID does not find anything reasonable for this track, assign 0.33 for all species
for (int iPart = 0; iPart < nSpecies; iPart++)
probs[iPart] = 1.0/nSpecies;
probs[iPart] = 1.0 / nSpecies;
return;
}

Expand All @@ -133,7 +133,7 @@
if (sigmaRing == 0)
continue;

if (TMath::Abs(hmpidSignal - thetaCerTh) < maxSigmaRing)

Check failure on line 136 in DPG/Tasks/AOTTrack/PID/HMPID/hmpidQaPbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
desert = kFALSE;
h[iPart] = TMath::Gaus(thetaCerTh, hmpidSignal, sigmaRing, kTRUE);
hTot += h[iPart]; // total height of all theoretical heights for normalization
Expand Down Expand Up @@ -314,9 +314,9 @@
continue;
if (hmpid.itsChi2() > maxChi2ITS)
continue;
if (TMath::Abs(hmpid.dcaXY()) > maxDCAxy)

Check failure on line 317 in DPG/Tasks/AOTTrack/PID/HMPID/hmpidQaPbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
continue;
if (TMath::Abs(hmpid.dcaZ()) > maxDCAz)

Check failure on line 319 in DPG/Tasks/AOTTrack/PID/HMPID/hmpidQaPbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
continue;

// fill histograms
Expand All @@ -330,7 +330,7 @@

if (hmpid.nPhotons() < nMaxPhotons && hmpid.chAngle() > 0 && std::hypot(hmpid.xTrack() - hmpid.xMip(), hmpid.yTrack() - hmpid.yMip()) < cutDistanceMipTrack && hmpid.chargeMip() > cutQmip) {
if (hmpid.chamber() != rich2 || hmpid.chamber() != rich4) {
double pT = static_cast<double>(hmpid.momentumTrack() / TMath::CosH(hmpid.etaTrack()));

Check failure on line 333 in DPG/Tasks/AOTTrack/PID/HMPID/hmpidQaPbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
histos.fill(HIST("pTvsChAngle"), pT, hmpid.chAngle());

if (hmpid.momentumHmpid() > 0) {
Expand All @@ -345,7 +345,7 @@
// fill mass2 distribution

if (hmpid.momentumTrack() > cutMinMomGlobalTrack && hmpid.chAngle() > 0) {
double mass2 = TMath::Power(hmpid.momentumTrack(), 2) * (TMath::Power(1.288 * TMath::Cos(hmpid.chAngle()), 2) - 1);

Check failure on line 348 in DPG/Tasks/AOTTrack/PID/HMPID/hmpidQaPbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
histos.fill(HIST("Mass2distribution"), mass2);
}

Expand All @@ -355,7 +355,7 @@

histos.fill(HIST("hmpidNPhotons"), hmpid.nPhotons());

sin2changle = static_cast<float>(TMath::Power(TMath::Sin(hmpid.chAngle()), 2));

Check failure on line 358 in DPG/Tasks/AOTTrack/PID/HMPID/hmpidQaPbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
if (hmpid.xMip() <= maxBoxHit && hmpid.xMip() >= minBoxHit && hmpid.yMip() <= maxBoxHit && hmpid.yMip() >= minBoxHit) {
histos.fill(HIST("nPhotons_vs_sin2Ch"), sin2changle, hmpid.nPhotons());
}
Expand Down Expand Up @@ -419,7 +419,7 @@
//{ ---
if (std::hypot(hmpid.xTrack() - hmpid.xMip(), hmpid.yTrack() - hmpid.yMip()) < cutDistanceMipTrack && hmpid.chargeMip() > cutQmip) {
histos.fill(HIST("hmpidNPhotons0"), hmpid.nPhotons());
sin2changle = static_cast<float>(TMath::Power(TMath::Sin(hmpid.chAngle()), 2));

Check failure on line 422 in DPG/Tasks/AOTTrack/PID/HMPID/hmpidQaPbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
if (hmpid.xMip() <= maxBoxHit && hmpid.xMip() >= minBoxHit && hmpid.yMip() <= maxBoxHit && hmpid.yMip() >= minBoxHit) {
histos.fill(HIST("nPhotons_vs_sin2Ch0"), sin2changle, hmpid.nPhotons());
}
Expand Down Expand Up @@ -584,7 +584,7 @@

if (std::hypot(hmpid.xTrack() - hmpid.xMip(), hmpid.yTrack() - hmpid.yMip()) < cutDistanceMipTrack && hmpid.chargeMip() > cutQmip) {
histos.fill(HIST("hmpidNPhotons1"), hmpid.nPhotons());
sin2changle = static_cast<float>(TMath::Power(TMath::Sin(hmpid.chAngle()), 2));

Check failure on line 587 in DPG/Tasks/AOTTrack/PID/HMPID/hmpidQaPbPb.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[root/entity]

Replace ROOT entities with equivalents from standard C++ or from O2.
if (hmpid.xMip() <= maxBoxHit && hmpid.xMip() >= minBoxHit && hmpid.yMip() <= maxBoxHit && hmpid.yMip() >= minBoxHit) {
histos.fill(HIST("nPhotons_vs_sin2Ch1"), sin2changle, hmpid.nPhotons());
}
Expand Down
Loading