File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments