Skip to content

Commit

Permalink
[CPP20][GEOMETRY] Remove deprecated enum arithmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
iarspider committed Mar 22, 2024
1 parent eaea9c0 commit 2a3d9c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
4 changes: 2 additions & 2 deletions DataFormats/EcalDetId/interface/EEDetId.h
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ class EEDetId : public DetId {
/** Number of crystals per Dee
*/
static constexpr int kEEhalf = 7324;
/** Number of dense crystal indices, that is number of
/** Number of dense crystal indices, that is number of
* crystals per endcap.
*/
static constexpr int kSizeForDenseIndexing = 2 * kEEhalf ;
static constexpr int kSizeForDenseIndexing = 2 * kEEhalf;

/*@{*/
/** function modes for EEDetId(int, int, int, int) constructor
Expand Down
9 changes: 3 additions & 6 deletions DataFormats/HcalDetId/interface/HcalCastorDetId.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,9 @@ class HcalCastorDetId : public DetId {
// get the individual cell id
// int channel() const;

static constexpr int
kNumberModulesPerEnd = 14,
kNumberSectorsPerEnd = 16,
kNumberCellsPerEnd = kNumberModulesPerEnd * kNumberSectorsPerEnd,
kSizeForDenseIndexing = kNumberCellsPerEnd
;
static constexpr int kNumberModulesPerEnd = 14, kNumberSectorsPerEnd = 16,
kNumberCellsPerEnd = kNumberModulesPerEnd * kNumberSectorsPerEnd,
kSizeForDenseIndexing = kNumberCellsPerEnd;

uint32_t denseIndex() const;

Expand Down
15 changes: 3 additions & 12 deletions Geometry/CaloTopology/interface/HcalTopology.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,18 +224,9 @@ class HcalTopology : public CaloSubdetectorTopology {
SegmentationMap depthSegmentation_;
SegmentationMap depthSegmentationOne_;

static constexpr int
kHBhalf = 1296,
kHEhalf = 1296,
kHOhalf = 1080,
kHFhalf = 864,
kHThalf = 2088,
kZDChalf = 11,
kCASTORhalf = 224,
kCALIBhalf = 693,
kHThalfPhase1 = 2520,
kHcalhalf = kHBhalf + kHEhalf + kHOhalf + kHFhalf
;
static constexpr int kHBhalf = 1296, kHEhalf = 1296, kHOhalf = 1080, kHFhalf = 864, kHThalf = 2088, kZDChalf = 11,
kCASTORhalf = 224, kCALIBhalf = 693, kHThalfPhase1 = 2520,
kHcalhalf = kHBhalf + kHEhalf + kHOhalf + kHFhalf;
static constexpr int kSizeForDenseIndexingPreLS1 = 2 * kHcalhalf;
static constexpr int kHBSizePreLS1 = 2 * kHBhalf;
static constexpr int kHESizePreLS1 = 2 * kHEhalf;
Expand Down

0 comments on commit 2a3d9c1

Please sign in to comment.