Skip to content

Commit 2f455f6

Browse files
authored
Replace enums with static constexpr int in EcalChannelStatus_PayloadInspector.cc
1 parent 6aae8dc commit 2f455f6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

CondCore/EcalPlugins/plugins/EcalChannelStatus_PayloadInspector.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
#include "TLatex.h"
1919

2020
namespace {
21-
enum { kEBChannels = 61200, kEEChannels = 14648, NRGBs = 5, NCont = 255 };
22-
enum { MIN_IETA = 1, MIN_IPHI = 1, MAX_IETA = 85, MAX_IPHI = 360 }; // barrel lower and upper bounds on eta and phi
23-
enum { IX_MIN = 1, IY_MIN = 1, IX_MAX = 100, IY_MAX = 100 }; // endcaps lower and upper bounds on x and y
21+
static constexpr int kEBChannels = 61200, kEEChannels = 14648, NRGBs = 5, NCont = 255;
22+
// barrel lower and upper bounds on eta and phi
23+
static constexpr int MIN_IETA = 1, MIN_IPHI = 1, MAX_IETA = 85, MAX_IPHI = 360;
24+
// endcaps lower and upper bounds on x and y
25+
static constexpr int IX_MIN = 1, IY_MIN = 1, IX_MAX = 100, IY_MAX = 100;
2426

2527
/*******************************************************
2628
2d plot of ECAL barrel channel status of 1 IOV

0 commit comments

Comments
 (0)