Skip to content

Commit cb26757

Browse files
committed
flowZdcTask.cxx
1 parent 3270f58 commit cb26757

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

PWGCF/Flow/Tasks/flowZdcTask.cxx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,18 +432,20 @@ struct FlowZdcTask {
432432

433433
float aT0A = 0., aT0C = 0., aV0A = 0.;
434434
if (foundBC.has_ft0()) {
435-
for (const auto& amplitude : foundBC.ft0().amplitudeA()) {
435+
auto ft0 = foundBC.ft0();
436+
for (const auto& amplitude : ft0.amplitudeA()) {
436437
aT0A += amplitude;
437438
}
438-
for (const auto& amplitude : foundBC.ft0().amplitudeC()) {
439+
for (const auto& amplitude : ft0.amplitudeC()) {
439440
aT0C += amplitude;
440441
}
441442
} else {
442443
return;
443444
}
444445
histos.fill(HIST("hEventCounter"), EvCutLabel::TZero);
445446
if (foundBC.has_fv0a()) {
446-
for (const auto& amplitude : foundBC.fv0a().amplitude()) {
447+
auto fv0a = foundBC.fv0a();
448+
for (const auto& amplitude : fv0a.amplitude()) {
447449
aV0A += amplitude;
448450
}
449451
} else {

0 commit comments

Comments
 (0)