107if (c->charge() != 0) continue; // if the constituent is a track, continue
108 e += layerAccessor(*c); // else the constituent is a cluster, so add the energy of every cluster for a given layer for the considered UFO
109 }
110 layerDecor(*flow) = e; // decorate the UFO with the energy associated to a given EM layer (once the energies from every cluster in this layer have been summed up)
133 layerDecor(*flow) = e; // decorate the UFO with the energy associated to a given HAD layer (once the energies from every cluster in this layer have been summed up)
134 eHAD += e;
135 }
136
137// decorate the UFO with the total electromagnetic or hadronic energy once the loop over the layers is over for a given UFO
138 eEMDecorHandle(*flow) = eEM;
139 eHADDecorHandle(*flow) = eHAD;
140
141// decorate the UFO with the electromagnetic or hadronic energy fractions once the loop over the layers is over for a given UFO