Skip to content

Commit

Permalink
Merge pull request #74 from DUNE/70-digitize-return-stdout_of_range
Browse files Browse the repository at this point in the history
70 digitize return stdout of range
  • Loading branch information
AlessandroRuggeri authored Feb 4, 2025
2 parents cb4c952 + a3a0c9b commit 865d4d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SANDGeoManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ void SANDGeoManager::get_ecal_barrel_cell_local_id(double x, double y, double z,

// cellID = distanza dall'estremo diviso larghezza cella
cell_local_id = (local[0] + dx) / cell_width;
// set the cellID to 11 if the hit end-up at the outer boundary
if(cell_local_id == sand_geometry::ecal::number_of_cells_per_barrel_layer)
cell_local_id--;
}

void SANDGeoManager::get_ecal_endcap_cell_local_id(double x, double y, double z,
Expand Down

0 comments on commit 865d4d4

Please sign in to comment.