@@ -77,8 +77,7 @@ hgcal::association TSToSimTSAssociatorByEnergyScoreImpl::makeConnections(
7777 for (auto const & lcaf : tssInSimTrackster[st].lcs_and_fractions ) {
7878 const auto lcEn = lcaf.second * layerClusters[lcaf.first ].energy ();
7979 LogDebug (" TSToSimTSAssociatorByEnergyScoreImpl" )
80- << " \t LC/fraction/energy: " << (uint32_t )lcaf.first << " /" << lcaf.second << " /"
81- << lcEn << std::endl;
80+ << " \t LC/fraction/energy: " << (uint32_t )lcaf.first << " /" << lcaf.second << " /" << lcEn << std::endl;
8281 tot_energy += lcEn;
8382 }
8483 LogDebug (" TSToSimTSAssociatorByEnergyScoreImpl" ) << " \t Tot Sum lcaf: " << tot_energy << std::endl;
@@ -128,8 +127,8 @@ hgcal::association TSToSimTSAssociatorByEnergyScoreImpl::makeConnections(
128127 stsInTrackster[tsId].emplace_back (st.clusterId , 0 .f );
129128 }
130129 }
131- } // End loop over LayerClusters in Trackster
132- } // End of loop over Tracksters
130+ } // End loop over LayerClusters in Trackster
131+ } // End of loop over Tracksters
133132
134133#ifdef EDM_ML_DEBUG
135134 for (unsigned int tsId = 0 ; tsId < nTracksters; ++tsId) {
@@ -255,8 +254,7 @@ hgcal::association TSToSimTSAssociatorByEnergyScoreImpl::makeConnections(
255254 for (auto const & lcaf : tssInSimTrackster[st].lcs_and_fractions ) {
256255 const auto lcEn = lcaf.second * layerClusters[lcaf.first ].energy ();
257256 LogDebug (" TSToSimTSAssociatorByEnergyScoreImpl" )
258- << " \t LC/fraction/energy: " << (uint32_t )lcaf.first << " /" << lcaf.second << " /"
259- << lcEn << std::endl;
257+ << " \t LC/fraction/energy: " << (uint32_t )lcaf.first << " /" << lcaf.second << " /" << lcEn << std::endl;
260258 tot_energy += lcEn;
261259 }
262260 LogDebug (" TSToSimTSAssociatorByEnergyScoreImpl" ) << " \t Tot Sum lcaf: " << tot_energy << std::endl;
@@ -325,7 +323,7 @@ hgcal::association TSToSimTSAssociatorByEnergyScoreImpl::makeConnections(
325323 if (lcWithST) {
326324 const auto findLCIt = std::find (lcToSimTracksterId_Map[lcId].begin (),
327325 lcToSimTracksterId_Map[lcId].end (),
328- hgcal::lcInfoInTrackster{stPair.first , 0 .f });
326+ hgcal::lcInfoInTrackster{stPair.first , 0 .f });
329327 if (findLCIt != lcToSimTracksterId_Map[lcId].end ()) {
330328 stFraction = findLCIt->fraction ;
331329 }
@@ -334,19 +332,17 @@ hgcal::association TSToSimTSAssociatorByEnergyScoreImpl::makeConnections(
334332 (lcFractionInTs - stFraction) * (lcFractionInTs - stFraction) * lcEnergyWeight * invTracksterEnergyWeight;
335333#ifdef EDM_ML_DEBUG
336334 LogDebug (" TSToSimTSAssociatorByEnergyScoreImpl" )
337- << " lcId:\t " << (uint32_t )lcId << " \t tracksterId:\t " << tsId
338- << " \t tsFraction,stFraction:\t " << lcFractionInTs << " , " << stFraction
339- << " \t lcEnergyWeight:\t " << lcEnergyWeight
340- << " \t current score:\t " << stPair.second
341- << " \t invTracksterEnergyWeight:\t " << invTracksterEnergyWeight << " \n " ;
335+ << " lcId:\t " << (uint32_t )lcId << " \t tracksterId:\t " << tsId << " \t tsFraction,stFraction:\t "
336+ << lcFractionInTs << " , " << stFraction << " \t lcEnergyWeight:\t " << lcEnergyWeight << " \t current score:\t "
337+ << stPair.second << " \t invTracksterEnergyWeight:\t " << invTracksterEnergyWeight << " \n " ;
342338#endif
343339 }
344- } // End of loop over LayerClusters in Trackster
340+ } // End of loop over LayerClusters in Trackster
345341
346342#ifdef EDM_ML_DEBUG
347343 if (stsInTrackster[tsId].empty ())
348344 LogDebug (" TSToSimTSAssociatorByEnergyScoreImpl" ) << " trackster Id:\t " << tsId << " \t ST id:\t -1"
349- << " \t score\t -1\n " ;
345+ << " \t score\t -1\n " ;
350346#endif
351347 } // End of loop over Tracksters
352348
@@ -420,7 +416,7 @@ hgcal::association TSToSimTSAssociatorByEnergyScoreImpl::makeConnections(
420416#ifdef EDM_ML_DEBUG
421417 if (tssInSimTrackster[stId].tracksterIdToEnergyAndScore .empty ())
422418 LogDebug (" TSToSimTSAssociatorByEnergyScoreImpl" ) << " ST Id:\t " << stId << " \t TS id:\t -1 "
423- << " \t score\t -1\n " ;
419+ << " \t score\t -1\n " ;
424420
425421 for (const auto & tsPair : tssInSimTrackster[stId].tracksterIdToEnergyAndScore ) {
426422 LogDebug (" TSToSimTSAssociatorByEnergyScoreImpl" )
@@ -443,8 +439,8 @@ hgcal::RecoToSimCollectionSimTracksters TSToSimTSAssociatorByEnergyScoreImpl::as
443439 const auto & stsInTrackster = std::get<0 >(links);
444440 for (size_t tsId = 0 ; tsId < stsInTrackster.size (); ++tsId) {
445441 for (auto & stPair : stsInTrackster[tsId]) {
446- LogDebug (" TSToSimTSAssociatorByEnergyScoreImpl" )
447- << " Trackster Id: \t " << tsId << " \t SimTrackster id: \t " << stPair.first << " \t score:\t " << stPair.second << " \n " ;
442+ LogDebug (" TSToSimTSAssociatorByEnergyScoreImpl" ) << " Trackster Id: \t " << tsId << " \t SimTrackster id: \t "
443+ << stPair.first << " \t score:\t " << stPair.second << " \n " ;
448444 // Fill AssociationMap
449445 returnValue.insert (edm::Ref<ticl::TracksterCollection>(tCH, tsId), // Ref to TS
450446 std::make_pair (edm::Ref<ticl::TracksterCollection>(sTCH , stPair.first ),
@@ -465,7 +461,7 @@ hgcal::SimToRecoCollectionSimTracksters TSToSimTSAssociatorByEnergyScoreImpl::as
465461 for (size_t stId = 0 ; stId < tssInSimTrackster.size (); ++stId) {
466462 for (auto & tsPair : tssInSimTrackster[stId].tracksterIdToEnergyAndScore ) {
467463 returnValue.insert (
468- edm::Ref<ticl::TracksterCollection>(sTCH , stId), // Ref to ST
464+ edm::Ref<ticl::TracksterCollection>(sTCH , stId), // Ref to ST
469465 std::make_pair (edm::Ref<ticl::TracksterCollection>(tCH, tsPair.first ), // Pair <Ref to TS,
470466 std::make_pair (tsPair.second .first , tsPair.second .second )) // pair <energy, score> >
471467 );
0 commit comments