Skip to content

Commit

Permalink
Code format HGCalMappingESSourceTester.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
Lovisa committed Jan 19, 2024
1 parent f8f8715 commit 48bee4b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE {
tmap(sipmgeo2ele, sipmele2geo);

// Timing studies
uint16_t fedid(175), econdidx(2), captureblockidx(0), chip(0), half(1), seq(12) ,rocpin(48);
uint16_t fedid(175), econdidx(2), captureblockidx(0), chip(0), half(1), seq(12), rocpin(48);
int zside(0), n_i(6000000);

edm::LogInfo("HGCalMappingIndexESSourceTester").log([&](auto& log) {
Expand All @@ -270,7 +270,8 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE {
assert((uint32_t)eid.econdIdx() == econdidx);
assert((uint32_t)eid.econdeRx() == (uint32_t)(2 * chip + half));
assert((uint32_t)eid.halfrocChannel() == seq);
float eidrocpin = (uint32_t)eid.halfrocChannel() + 36*((uint32_t)eid.econdeRx()%2) - ((uint32_t)eid.halfrocChannel()>17)*((uint32_t)eid.econdeRx()%2+1);
float eidrocpin = (uint32_t)eid.halfrocChannel() + 36 * ((uint32_t)eid.econdeRx() % 2) -
((uint32_t)eid.halfrocChannel() > 17) * ((uint32_t)eid.econdeRx() % 2 + 1);
assert(eidrocpin == rocpin);
});

Expand Down

0 comments on commit 48bee4b

Please sign in to comment.