Skip to content

Commit

Permalink
CalorimeterHitReco: Fix calo giving no reco hits when using NoSegment…
Browse files Browse the repository at this point in the history
…ation (#712)

A calorimeter with NoSegmentation gives no reco hits. This is because
cell_dim should be calculated inside the if statement. Otherwise, since
a calorimeter such as LFHCAL uses NoSegmentation, the library is
terminated when calculating the cell_dim.
  • Loading branch information
jizhongling authored and veprbl committed Jun 9, 2023
1 parent 05fb86c commit 222d642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/calorimetry/CalorimeterHitReco.cc
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ void CalorimeterHitReco::AlgorithmProcess() {
std::vector<double> cdim;
// get segmentation dimensions
auto segmentation_type = converter->findReadout(local).segmentation().type();
auto cell_dim = converter->cellDimensions(cellID);
if (segmentation_type == "CartesianGridXY") {
auto cell_dim = converter->cellDimensions(cellID);
cdim.resize(3);
cdim[0] = cell_dim[0];
cdim[1] = cell_dim[1];
Expand Down

0 comments on commit 222d642

Please sign in to comment.