Skip to content

Commit a8502f7

Browse files
committed
flowGfwTask.cxx
1 parent cb26757 commit a8502f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PWGCF/Flow/Tasks/flowGfwTask.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,10 +886,11 @@ struct FlowGfwTask {
886886
double ft0mAmp = 0;
887887

888888
if (foundBC.has_ft0()) {
889-
for (const auto& amplitude : foundBC.ft0().amplitudeA()) {
889+
auto ft0 = foundBC.ft0();
890+
for (const auto& amplitude : ft0.amplitudeA()) {
890891
ft0aAmp += amplitude;
891892
}
892-
for (const auto& amplitude : foundBC.ft0().amplitudeC()) {
893+
for (const auto& amplitude : ft0.amplitudeC()) {
893894
ft0cAmp += amplitude;
894895
}
895896
} else {

0 commit comments

Comments
 (0)