Skip to content

Commit

Permalink
[Backport v1.14] fixed LFHCAL adjacency matrix (#1495)
Browse files Browse the repository at this point in the history
# Description
Backport of #1493 to `v1.14`.

Co-authored-by: Peter Steinberg <[email protected]>
  • Loading branch information
epic-capybara and steinber authored Jun 9, 2024
1 parent 10425ef commit 26ab0b2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/detectors/FHCAL/FHCAL.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,11 @@ extern "C" {
// Magic constants:
// 54 - number of modules in a row/column
// 2 - number of towers in a module
std::string cellIdx_1 = "(54*2-moduleIDx_1*2+towerx_1)";
std::string cellIdx_2 = "(54*2-moduleIDx_2*2+towerx_2)";
std::string cellIdy_1 = "(54*2-moduleIDy_1*2+towery_1)";
std::string cellIdy_2 = "(54*2-moduleIDy_2*2+towery_2)";
// sign for towerx and towery are *negative* to maintain linearity with global X and Y
std::string cellIdx_1 = "(54*2-moduleIDx_1*2-towerx_1)";
std::string cellIdx_2 = "(54*2-moduleIDx_2*2-towerx_2)";
std::string cellIdy_1 = "(54*2-moduleIDy_1*2-towery_1)";
std::string cellIdy_2 = "(54*2-moduleIDy_2*2-towery_2)";
std::string cellIdz_1 = "rlayerz_1";
std::string cellIdz_2 = "rlayerz_2";
std::string deltaX = Form("abs(%s-%s)", cellIdx_2.data(), cellIdx_1.data());
Expand Down

0 comments on commit 26ab0b2

Please sign in to comment.