Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 18, 2024
1 parent 2401f0a commit 01473d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/algorithms_test/digi_LGADPulseDigitization.cc
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ TEST_CASE("the LGAD charge sharing algorithm runs", "[LGADPulseDigitization]") {
auto hit = (*rawhits_coll)[0];
REQUIRE(hit.getCellID() == cellID);
REQUIRE(hit.getCharge() == test_peak);
if(time < 0) REQUIRE(hit.getTimeStamp() == analytic_TDC - cfg.tdc_range);
else if(time == 0) REQUIRE(hit.getTimeStamp() == analytic_TDC);
if(time < 0) REQUIRE(hit.getTimeStamp() == analytic_TDC - cfg.tdc_range);
else if(time == 0) REQUIRE(hit.getTimeStamp() == analytic_TDC);
else REQUIRE(hit.getTimeStamp() == analytic_TDC + cfg.tdc_range);
}
}
Expand Down

0 comments on commit 01473d3

Please sign in to comment.