Skip to content

Commit

Permalink
femc_studies,lfhcal_studies: remove broken code (#1226)
Browse files Browse the repository at this point in the history
Fixes regression introduced by #1224

It would appear those loops were never utilized before. There are
simular loops for the inlined "kMA" clustering code.
  • Loading branch information
veprbl authored Jan 14, 2024
1 parent 00c0ada commit 18b7de8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,12 +532,6 @@ void femc_studiesProcessor::Process(const std::shared_ptr<const JEvent>& event)
hRecFClusterEcalib_E_eta->Fill(mcenergy, cluster.getEnergy()/mcenergy, mceta);
m_log->trace("Island cluster {}:\t {} \t {}", iClF, cluster.getEnergy(), cluster.getNhits());

for (const auto& hit: cluster.getHits()){
int pSav = 0;
while(hit.getCellID() != input_tower_recSav.at(pSav).cellID && pSav < (int)input_tower_recSav.size() ) pSav++;
if (hit.getCellID() == input_tower_recSav.at(pSav).cellID)
input_tower_recSav.at(pSav).tower_clusterIDB = iClF;
}
iClF++;
}
hRecFNClusters_E_eta->Fill(mcenergy, iClF, mceta);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -607,12 +607,6 @@ void lfhcal_studiesProcessor::Process(const std::shared_ptr<const JEvent>& event
}
hRecFClusterEcalib_E_eta->Fill(mcenergy, cluster.getEnergy()/mcenergy, mceta);
m_log->trace("Island cluster {}:\t {} \t {}", iClF, cluster.getEnergy(), cluster.getNhits());
for (const auto hit : cluster.getHits()){
int pSav = 0;
while(hit.getCellID() != input_tower_recSav.at(pSav).cellID && pSav < (int)input_tower_recSav.size() ) pSav++;
if (hit.getCellID() == input_tower_recSav.at(pSav).cellID)
input_tower_recSav.at(pSav).tower_clusterIDB = iClF;
}
iClF++;
}
hRecFNClusters_E_eta->Fill(mcenergy, iClF, mceta);
Expand Down

0 comments on commit 18b7de8

Please sign in to comment.