Skip to content

Commit 41eb27e

Browse files
Shiqi WangShiqi Wang
authored andcommitted
Fix cppcheck warnings in ESE task
1 parent 14a95a5 commit 41eb27e

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

PWGCF/Flow/Tasks/flowEseTask.cxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -186,20 +186,20 @@ struct FlowEseTask {
186186
TF1* fMultPVCutLow = nullptr;
187187
TF1* fMultPVCutHigh = nullptr;
188188

189-
int detId;
190-
int refAId;
191-
int refBId;
189+
int detId = -1;
190+
int refAId = -1;
191+
int refBId = -1;
192192

193-
int qvecDetInd;
194-
int qvecRefAInd;
195-
int qvecRefBInd;
193+
int qvecDetInd = -1;
194+
int qvecRefAInd = -1;
195+
int qvecRefBInd = -1;
196196

197-
float centrality;
197+
float centrality = -1.0f;
198198

199-
double angle;
200-
double psi;
201-
double relphi;
202-
double productPhi;
199+
double angle = 0.0;
200+
double psi = 0.0;
201+
double relphi = 0.0;
202+
double productPhi = 0.0;
203203

204204
int currentRunNumber = -999;
205205
int lastRunNumber = -999;
@@ -560,7 +560,7 @@ struct FlowEseTask {
560560
return false;
561561
if (std::abs(candidate.dcanegtopv()) < cfgDCAPiToPVMin)
562562
return false;
563-
} else if (!lambdaTag) {
563+
} else {
564564
if (std::abs(candidate.dcapostopv()) < cfgDCAPiToPVMin)
565565
return false;
566566
if (std::abs(candidate.dcanegtopv()) < cfgDCAPrToPVMin)

0 commit comments

Comments
 (0)