Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
veprbl authored Aug 7, 2024
1 parent bb131d8 commit fdbe7ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/algorithms/calorimetry/CalorimeterHitReco.cc
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,10 @@ void CalorimeterHitReco::process(
const decltype(edm4eic::CalorimeterHitData::local) local_position(pos.x() / dd4hep::mm, pos.y() / dd4hep::mm,
pos.z() / dd4hep::mm);

auto recohit = recohits->create(
#if EDM4EIC_VERSION_MAJOR >= 7
auto recohit =
#endif
recohits->create(
rh.getCellID(),
energy,
0,
Expand Down
5 changes: 4 additions & 1 deletion src/algorithms/tracking/TrackerHitReconstruction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ std::unique_ptr<edm4eic::TrackerHitCollection> TrackerHitReconstruction::process
// - XYZ segmentation: xx -> sigma_x, yy-> sigma_y, zz -> sigma_z, tt -> 0
// This is properly in line with how we get the local coordinates for the hit
// in the TrackerSourceLinker.
auto rec_hit = rec_hits->create(
#if EDM4EIC_VERSION_MAJOR >= 7
auto rec_hit =
#endif
rec_hits->create(
raw_hit.getCellID(), // Raw DD4hep cell ID
edm4hep::Vector3f{static_cast<float>(pos.x() / mm), static_cast<float>(pos.y() / mm), static_cast<float>(pos.z() / mm)}, // mm
edm4eic::CovDiag3f{get_variance(dim[0] / mm), get_variance(dim[1] / mm), // variance (see note above)
Expand Down

0 comments on commit fdbe7ac

Please sign in to comment.