@@ -176,7 +176,7 @@ struct ZdcExtraTableProducer {
176176 void process (ColEvSels const & cols, BCsRun3 const & /* bcs*/ , aod::Zdcs const & /* zdcs*/ )
177177 {
178178 // collision-based event selection
179- int nTowers = 4 ; // number of ZDC towers
179+ constexpr int kNTowers = 4 ; // number of ZDC towers
180180
181181 for (auto const & collision : cols) {
182182 const auto & foundBC = collision.foundBC_as <BCsRun3>();
@@ -219,7 +219,7 @@ struct ZdcExtraTableProducer {
219219 double pmqZNA[4 ] = {};
220220 //
221221 if (isZNChit) {
222- for (int it = 0 ; it < nTowers ; it++) {
222+ for (int it = 0 ; it < kNTowers ; it++) {
223223 pmqZNC[it] = (zdc.energySectorZNC ())[it];
224224 sumZNC += pmqZNC[it];
225225 }
@@ -231,7 +231,7 @@ struct ZdcExtraTableProducer {
231231 registry.get <TH1>(HIST (" ZNCsumq" ))->Fill (sumZNC);
232232 }
233233 if (isZNAhit) {
234- for (int it = 0 ; it < nTowers ; it++) {
234+ for (int it = 0 ; it < kNTowers ; it++) {
235235 pmqZNA[it] = (zdc.energySectorZNA ())[it];
236236 sumZNA += pmqZNA[it];
237237 }
@@ -257,7 +257,6 @@ struct ZdcExtraTableProducer {
257257 float numXZNA = 0 ., numYZNA = 0 ., denZNA = 0 .;
258258
259259 // Calculate weighted sums of the x and y coordinates
260- constexpr int kNTowers = 4 ; // number of ZDC towers
261260 for (int i = 0 ; i < kNTowers ; i++) {
262261 if (pmqZNC[i] > 0 .) {
263262 float wZNC = std::pow (pmqZNC[i], kAlpha );
0 commit comments