@@ -625,6 +625,7 @@ enum CorrCountPtEnum {
625625 kNCorrCountPt
626626};
627627
628+ static constexpr int NCorrCountChannels = static_cast <int >(kNCorrCountTypes ) * static_cast <int >(kNCorrCountPt );
628629static constexpr std::array<std::string_view, kNCorrCountTypes > CorrCountTypeName = {
629630 " hh" ,
630631 " hPi" ,
@@ -1832,7 +1833,7 @@ struct HParticleCorrelationSameEvent {
18321833 AxisSpec axisPoolOccupancy{cfgMixing.axisMixingOccupancy , " N eligible collisions" };
18331834 nMixBins = axisVtxMixSpec.getNbins () * axisCentMixSpec.getNbins ();
18341835 const AxisSpec axisMixBin{nMixBins, -0.5 , static_cast <double >(nMixBins) - 0.5 , " Mixing bin" };
1835- const AxisSpec axisCorrChannel{kNCorrCountTypes * kNCorrCountPt , -0.5 , static_cast <double >(kNCorrCountTypes * kNCorrCountPt ) - 0.5 , " Correlation channel" };
1836+ const AxisSpec axisCorrChannel{NCorrCountChannels , -0.5 , static_cast <double >(NCorrCountChannels ) - 0.5 , " Correlation channel" };
18361837 const AxisSpec axisReadyBins{nMixBins + 1 , -0.5 , static_cast <double >(nMixBins) + 0.5 , " N ready mixing bins" };
18371838
18381839 const int nEventQABins = static_cast <int >(kNEventQABins );
@@ -3193,7 +3194,6 @@ struct HParticleCorrelationSameEvent {
31933194 int assocNegDauSelTag = kTrackAccepted ;
31943195 int posDauIdMethod = kUnidentified ;
31953196 int negDauIdMethod = kUnidentified ;
3196- uint8_t massRegion = kMassNone ;
31973197 int pionIdMethod = kUnidentified ;
31983198 int kaonIdMethod = kUnidentified ;
31993199 int protonIdMethod = kUnidentified ;
@@ -3719,7 +3719,7 @@ struct HParticleCorrelationSameEvent {
37193719
37203720 // ______________________________________________________________________________
37213721 // Dataframe-level mixing-pool QA
3722- std::array<uint64_t , kNCorrCountTypes * kNCorrCountPt > nReadyMixBins{};
3722+ std::array<uint64_t , NCorrCountChannels > nReadyMixBins{};
37233723
37243724 for (int iMixBin = 0 ; iMixBin < nMixBins; ++iMixBin) {
37253725 const auto & binStatus = mixingBinStatusPerDF[iMixBin];
@@ -3741,7 +3741,7 @@ struct HParticleCorrelationSameEvent {
37413741 }
37423742 }
37433743
3744- for (int corrChannel = 0 ; corrChannel < kNCorrCountTypes * kNCorrCountPt ; ++corrChannel) {
3744+ for (int corrChannel = 0 ; corrChannel < NCorrCountChannels ; ++corrChannel) {
37453745 mixingQA.fill (HIST (" Mixing/PerDF/NReadyMixBins" ), corrChannel, nReadyMixBins[corrChannel]);
37463746 }
37473747 }
0 commit comments