@@ -182,7 +182,7 @@ hgcal::association TSToSimTSAssociatorByEnergyScoreImpl::makeConnections(
182182 // Loop through all the linked SimTracksters
183183 for (const auto & st : lc_find_in_ST->second ) {
184184 const auto stId = st.clusterId ;
185- STEnergyInLC[stId] += st.fraction * layerClusyers[lc_find_in_ST. first ].energy ();
185+ STEnergyInLC[stId] += st.fraction * layerClusters[lcId ].energy ();
186186 // Keep track of which SimTrackster contributed the most, in terms
187187 // of energy, to this specific Layer Cluster.
188188 if (STEnergyInLC[stId] > maxSTEnergyInLC) {
@@ -272,7 +272,7 @@ hgcal::association TSToSimTSAssociatorByEnergyScoreImpl::makeConnections(
272272 for (auto const & st : lc.second ) {
273273 LogDebug (" TSToSimTSAssociatorByEnergyScoreImpl" )
274274 << " SimTrackster Id: " << st.clusterId << " with fraction: " << st.fraction
275- << " and energy: " << st.fraction * layerClusyers [lc.first ].energy () << std::endl;
275+ << " and energy: " << st.fraction * layerClusters [lc.first ].energy () << std::endl;
276276 }
277277 }
278278#endif
@@ -376,7 +376,7 @@ hgcal::association TSToSimTSAssociatorByEnergyScoreImpl::makeConnections(
376376 << std::setw (15 ) << " maxEnergyTSinST\t " << std::setw (20 ) << " STEnergyFractionInTS"
377377 << " \n " ;
378378 LogDebug (" TSToSimTSAssociatorByEnergyScoreImpl" )
379- << std::setw (12 ) << stId << " \t " << std::setw (15 ) << simTracksters[stId].energy () << " \t " << std::setw (15 )
379+ << std::setw (12 ) << stId << " \t " << std::setw (15 ) << simTracksters[stId].raw_energy () << " \t " << std::setw (15 )
380380 << STenergy << " \t " << std::setw (14 ) << STNumberOfLCs << " \t " << std::setw (18 ) << tsWithMaxEnergyInST << " \t "
381381 << std::setw (15 ) << maxEnergyTSinST << " \t " << std::setw (20 ) << STEnergyFractionInTS << " \n " ;
382382#endif
0 commit comments