Skip to content

Commit 7281b97

Browse files
committed
fixed O2 linter erros
1 parent fa894c5 commit 7281b97

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

PWGHF/HFL/Tasks/taskElectronWeakBoson.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct HfTaskElectronWeakBoson {
7474
Configurable<float> energyIsolationMax{"energyIsolationMax", 0.1, "isolation cut on energy"};
7575
Configurable<int> trackIsolationMax{"trackIsolationMax", 3, "Maximum number of tracks in isolation cone"};
7676

77-
struct ElectronCandidate {
77+
struct HfElectronCandidate {
7878
float pt, eta, phi, energy;
7979
ElectronCandidate(float p, float e, float ph, float en)
8080
: pt(p), eta(e), phi(ph), energy(en) {}
@@ -84,8 +84,8 @@ struct HfTaskElectronWeakBoson {
8484
float py() const { return pt * std::sin(phi); }
8585
float pz() const { return pt * std::sinh(eta); }
8686
};
87-
std::vector<ElectronCandidate> selectedElectrons_Iso;
88-
std::vector<ElectronCandidate> selectedElectrons_Ass;
87+
std::vector<HfElectronCandidate> selectedElectrons_Iso;
88+
std::vector<HfElectronCandidate> selectedElectrons_Ass;
8989

9090
using SelectedClusters = o2::aod::EMCALClusters;
9191
// PbPb
@@ -385,8 +385,8 @@ struct HfTaskElectronWeakBoson {
385385
if (e1.px() == e2.px())
386386
continue;
387387
auto mass = hfHelper.invMassZtoEE(e1, e2);
388-
double ptIso = sqrt(pow(e1.px(), 2) + pow(e1.py(), 2));
389-
double ptAss = sqrt(pow(e2.px(), 2) + pow(e2.py(), 2));
388+
float ptIso = std::sqrt(e1.px() * e1.px() + e1.py() * e1.py());
389+
float ptAss = std::sqrt(e2.px() * e2.px() + e2.py() * e2.py());
390390
registry.fill(HIST("hInvMassDy"), ptIso, mass);
391391
if (ptAss < 20.0 && ptIso < 20.0)
392392
continue;

0 commit comments

Comments
 (0)