Skip to content

Commit 1cde4a7

Browse files
committed
Fixing MegaLinter
1 parent 6551652 commit 1cde4a7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

DPG/Tasks/AOTTrack/PID/HMPID/hmpidQaPbPb.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void getProbability(float hmpidSignal, float hmpidMomentum, double* probs)
109109
if (hmpidSignal <= 0) {
110110
// HMPID does not find anything reasonable for this track, assign 0.33 for all species
111111
for (int iPart = 0; iPart < nSpecies; iPart++)
112-
probs[iPart] = 1.0 / (float)nSpecies;
112+
probs[iPart] = 1.0/nSpecies;
113113
return;
114114
}
115115

@@ -145,7 +145,7 @@ void getProbability(float hmpidSignal, float hmpidMomentum, double* probs)
145145
if (!desert)
146146
probs[iPart] = h[iPart] / hTot;
147147
else
148-
probs[iPart] = 1.0 / (float)nSpecies; // all theoretical values are far away from experemental one
148+
probs[iPart] = 1.0 / nSpecies; // all theoretical values are far away from experemental one
149149
}
150150

151151
delete[] h;
@@ -330,7 +330,7 @@ struct HmpidQaPbPb {
330330

331331
if (hmpid.nPhotons() < nMaxPhotons && hmpid.chAngle() > 0 && std::hypot(hmpid.xTrack() - hmpid.xMip(), hmpid.yTrack() - hmpid.yMip()) < cutDistanceMipTrack && hmpid.chargeMip() > cutQmip) {
332332
if (hmpid.chamber() != rich2 || hmpid.chamber() != rich4) {
333-
double pT = (double)(hmpid.momentumTrack() / TMath::CosH(hmpid.etaTrack()));
333+
double pT = static_cast<double>(hmpid.momentumTrack() / TMath::CosH(hmpid.etaTrack()));
334334
histos.fill(HIST("pTvsChAngle"), pT, hmpid.chAngle());
335335

336336
if (hmpid.momentumHmpid() > 0) {

DPG/Tasks/AOTTrack/PID/HMPID/hmpidQaPp.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void getProbability(float hmpidSignal, float hmpidMomentum, double* probs)
110110
if (hmpidSignal <= 0) {
111111
// HMPID does not find anything reasonable for this track, assign 0.33 for all species
112112
for (int iPart = 0; iPart < nSpecies; iPart++)
113-
probs[iPart] = 1.0 / (float)nSpecies;
113+
probs[iPart] = 1.0 / nSpecies;
114114
return;
115115
}
116116

@@ -146,7 +146,7 @@ void getProbability(float hmpidSignal, float hmpidMomentum, double* probs)
146146
if (!desert)
147147
probs[iPart] = h[iPart] / hTot;
148148
else
149-
probs[iPart] = 1.0 / (float)nSpecies; // all theoretical values are far away from experemental one
149+
probs[iPart] = 1.0 / nSpecies; // all theoretical values are far away from experemental one
150150
}
151151

152152
delete[] h;
@@ -323,7 +323,7 @@ struct HmpidQaPp {
323323
histos.fill(HIST("hmpidSignal"), hmpid.chAngle());
324324

325325
if (hmpid.chAngle() > 0 && std::hypot(hmpid.xTrack() - hmpid.xMip(), hmpid.yTrack() - hmpid.yMip()) < cutDistanceMipTrack && hmpid.chargeMip() > cutQmip) {
326-
double pT = (double)(hmpid.momentumTrack() / TMath::CosH(hmpid.etaTrack()));
326+
double pT = static_cast<double>(hmpid.momentumTrack() / TMath::CosH(hmpid.etaTrack()));
327327
histos.fill(HIST("pTvsChAngle"), pT, hmpid.chAngle());
328328
if (hmpid.momentumHmpid() > 0) {
329329
histos.fill(HIST("pTvsChAnglePos"), pT, hmpid.chAngle());

0 commit comments

Comments
 (0)