Skip to content

Commit 187dfc9

Browse files
committed
fixed O2 linter errors
1 parent 32c1341 commit 187dfc9

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

PWGHF/HFL/Tasks/taskElectronWeakBoson.cxx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ struct HfTaskElectronWeakBoson {
133133
std::vector<HfElectronCandidate> selectedElectronsIso;
134134
std::vector<HfElectronCandidate> selectedElectronsAss;
135135

136-
struct ZeeCandidate {
136+
struct HfZeeCandidate {
137137
float pt, eta, phi, mass, ptchild0, ptchild1;
138138
int charge;
139-
ZeeCandidate(float ptr, float e, float ph, float m, int ch, float ptzee0, float ptzee1)
139+
HfZeeCandidate(float ptr, float e, float ph, float m, int ch, float ptzee0, float ptzee1)
140140
: pt(ptr), eta(e), phi(ph), mass(m), ptchild0(ptzee0), ptchild1(ptzee1), charge(ch) {}
141141
};
142-
std::vector<ZeeCandidate> reconstructedZ;
142+
std::vector<HfZeeCandidate> reconstructedZ;
143143

144144
using SelectedClusters = o2::aod::EMCALClusters;
145145
// PbPb
@@ -210,7 +210,7 @@ struct HfTaskElectronWeakBoson {
210210
const AxisSpec axisIsoTrack{15, -0.5, 14.5, "Isolation Track"};
211211
const AxisSpec axisInvMassZ{150, 0, 150, "M_{ee} (GeV/c^{2})"};
212212
const AxisSpec axisTrigger{3, -0.5, 2.5, "Trigger status of zorro"};
213-
const AxisSpec axisDPhiZh{64, -TMath::Pi() / 2, 3 * TMath::Pi() / 2, "#Delta#phi(Z-h)"};
213+
const AxisSpec axisDPhiZh{64, -o2::constants::math::PIHalf, 3 * o2::constants::math::PIHalf, "#Delta#phi(Z-h)"};
214214
const AxisSpec axisPtHadron{50, 0, 50, "p_{T,hadron} (GeV/c)"};
215215
const AxisSpec axisZpt{150, 0, 150, "p_{T,Z} (GeV/c)"};
216216

@@ -630,13 +630,6 @@ struct HfTaskElectronWeakBoson {
630630
if (std::abs(trackAss.pt - zBoson.ptchild1) < ptMatch)
631631
continue;
632632
// calculate Z-h correlation
633-
/*
634-
double deltaPhi = trackAss.phi - zBoson.phi;
635-
while (deltaPhi < -TMath::Pi() / 2)
636-
deltaPhi += 2 * TMath::Pi();
637-
while (deltaPhi > 3 * TMath::Pi() / 2)
638-
deltaPhi -= 2 * TMath::Pi();
639-
*/
640633
double deltaPhi = RecoDecay::constrainAngle(trackAss.phi - zBoson.phi, -o2::constants::math::PIHalf);
641634
registry.fill(HIST("hZHadronDphi"), zBoson.pt, deltaPhi);
642635
}

0 commit comments

Comments
 (0)