Skip to content

Commit

Permalink
Don't hardcode positions
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Sep 9, 2024
1 parent 7f8f512 commit ab95fad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k4Reco/Overlay/components/OverlayTiming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ retType OverlayTiming::operator()(const edm4hep::EventHeaderCollection&
// Copy the SimTrackerHits and crop them
for (size_t i = 0; i < simTrackerHits.size(); ++i) {
auto& coll = simTrackerHits[i];
auto name = m_inputLocations[2][i].key();
auto name = inputLocations(SIMTRACKERHIT_INDEX_POSITION)[i];
auto [this_start, this_stop] = define_time_windows(name);
auto ocoll = edm4hep::SimTrackerHitCollection();
for (auto&& elem : *coll) {
Expand All @@ -148,7 +148,7 @@ retType OverlayTiming::operator()(const edm4hep::EventHeaderCollection&
std::map<int, std::map<uint64_t, edm4hep::MutableSimCalorimeterHit>> cellIDsMap;
for (size_t i = 0; i < simCaloHits.size(); ++i) {
auto& coll = simCaloHits[i];
auto name = m_inputLocations[3][i].key();
auto name = inputLocations(SIMCALOHIT_INDEX_POSITION)[i];
auto [this_start, this_stop] = define_time_windows(name);
auto& calHitMap = cellIDsMap[i];
auto& caloHitContribs = ocaloHitContribs[i];
Expand Down

0 comments on commit ab95fad

Please sign in to comment.