Skip to content

Commit 446ad1a

Browse files
committed
format fix
1 parent f793971 commit 446ad1a

1 file changed

Lines changed: 18 additions & 12 deletions

File tree

PWGCF/Flow/Tasks/pidFlowPtCorr.cxx

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ struct PidFlowPtCorr {
13461346
template <char... chars>
13471347
void fillProfilevnpt(const GFW::CorrConfig& corrconf, const ConstStr<chars...>& tarName, const double& cent, const double& ptSum, const double& nch, const double& meanPt = 0)
13481348
{
1349-
double dnx, val;
1349+
double dnx = 0.0, val = 0.0;
13501350
dnx = fGFW->Calculate(corrconf, 0, true).real();
13511351
if (dnx == 0) {
13521352
return;
@@ -1355,13 +1355,12 @@ struct PidFlowPtCorr {
13551355
if (std::fabs(val) < 1) {
13561356
registry.fill(tarName, cent, val * (ptSum / nch - meanPt), dnx * nch);
13571357
}
1358-
return;
13591358
}
13601359

13611360
template <char... chars>
13621361
void fillProfilePOIvnpt(const GFW::CorrConfig& corrconf, const ConstStr<chars...>& tarName, const double& cent, const double& ptSum, const double& nch)
13631362
{
1364-
double dnx, val;
1363+
double dnx = 0.0, val = 0.0;
13651364
dnx = fGFW->Calculate(corrconf, 0, true).real();
13661365
if (dnx == 0) {
13671366
return;
@@ -1371,7 +1370,6 @@ struct PidFlowPtCorr {
13711370
if (std::fabs(val) < 1) {
13721371
registry.fill(tarName, cent, ptSum / nch, val, dnx);
13731372
}
1374-
return;
13751373
}
13761374

13771375
// fill fgfw helper
@@ -1578,16 +1576,20 @@ struct PidFlowPtCorr {
15781576
bool particleSelected(mcParticle& particle)
15791577
{
15801578
// eta
1581-
if (std::fabs(particle.eta()) > trkQualityOpts.cfgCutEta.value)
1579+
if (std::fabs(particle.eta()) > trkQualityOpts.cfgCutEta.value) {
15821580
return false;
1581+
}
15831582
// pt
1584-
if (particle.pt() < trkQualityOpts.cfgCutPtMin.value)
1583+
if (particle.pt() < trkQualityOpts.cfgCutPtMin.value) {
15851584
return false;
1586-
if (particle.pt() > trkQualityOpts.cfgCutPtMax.value)
1585+
}
1586+
if (particle.pt() > trkQualityOpts.cfgCutPtMax.value) {
15871587
return false;
1588+
}
15881589
// stable particle
1589-
if (!isStable(particle.pdgCode()))
1590+
if (!isStable(particle.pdgCode())) {
15901591
return false;
1592+
}
15911593

15921594
return true;
15931595
}
@@ -1800,15 +1802,18 @@ struct PidFlowPtCorr {
18001802
auto multNTracksPV = collision.multNTracksPV();
18011803
auto occupancy = collision.trackOccupancyInTimeRange();
18021804

1803-
if (std::fabs(vtxz) > cfgCutVertex)
1805+
if (std::fabs(vtxz) > cfgCutVertex) {
18041806
return false;
1807+
}
18051808

18061809
registry.fill(HIST("hNTracksPVvsCentrality"), multNTracksPV, centrality);
18071810
if (evtSeleOpts.cfgDoMultPVCut.value) {
1808-
if (multNTracksPV < fMultPVCutLow->Eval(centrality))
1811+
if (multNTracksPV < fMultPVCutLow->Eval(centrality)) {
18091812
return false;
1810-
if (multNTracksPV > fMultPVCutHigh->Eval(centrality))
1813+
}
1814+
if (multNTracksPV > fMultPVCutHigh->Eval(centrality)) {
18111815
return false;
1816+
}
18121817
}
18131818
fillEventCountHelper(funcName, 9.5);
18141819

@@ -1820,8 +1825,9 @@ struct PidFlowPtCorr {
18201825
// V0A T0A 5 sigma cut
18211826
if (evtSeleOpts.cfgDoV0AT0Acut.value) {
18221827
int nsigma = 5;
1823-
if (std::fabs(collision.multFV0A() - fT0AV0AMean->Eval(collision.multFT0A())) > nsigma * fT0AV0ASigma->Eval(collision.multFT0A()))
1828+
if (std::fabs(collision.multFV0A() - fT0AV0AMean->Eval(collision.multFT0A())) > nsigma * fT0AV0ASigma->Eval(collision.multFT0A())) {
18241829
return 0;
1830+
}
18251831
}
18261832
fillEventCountHelper(funcName, 11.5);
18271833

0 commit comments

Comments
 (0)