Skip to content

Commit

Permalink
Revert "CalorimeterDefinitions: don't return -1 as uint32_t"
Browse files Browse the repository at this point in the history
This reverts commit f0e4f78.

The change introduced by f0e4f78 / cms-sw#44608
returns a dense id of 0 for an invalid det id. However, 0 is a valid dense
id, and should not be used for an invalid det id.
  • Loading branch information
fwyzard committed Apr 21, 2024
1 parent 3fb8b0e commit f7017cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE::particleFlowRecHitProducer {
return detId2denseIdHE(detId);

printf("invalid detId: %u\n", detId);
return 0;
return -1;
}
};

Expand Down

0 comments on commit f7017cf

Please sign in to comment.