Skip to content

Commit 0ba337b

Browse files
committed
Fix typos
1 parent 4276c5e commit 0ba337b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SimCalorimetry/HGCalAssociatorProducers/plugins/TSToSimTSAssociatorByEnergyScoreImpl.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

SimCalorimetry/HGCalAssociatorProducers/python/TSToSimTSAssociation_cfi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import FWCore.ParameterSet.Config as cms
22

3-
tracksterSimClusterAssociation = cms.EDProducer("TSToSimTSAssociatorEDProducer",
3+
tracksterSimTracksterAssociation = cms.EDProducer("TSToSimTSAssociatorEDProducer",
44
associator = cms.InputTag('simTsAssocByEnergyScoreProducer'),
55
label_tst = cms.InputTag("ticlTrackstersMerge"),
66
label_simTst = cms.InputTag("ticlSimTracksters"),

0 commit comments

Comments
 (0)