Skip to content

Commit 9121760

Browse files
author
Yuanjun Mei
committed
Fix according to code-check
1 parent dc194fe commit 9121760

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎PWGCF/MultiparticleCorrelations/Tasks/multiparticleCorrelationsMei.cxx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to
382382
std::array<TH2F*, eBeforeAfterCuts_N> fHistMultNContrib{};
383383
std::array<TH2F*, eBeforeAfterCuts_N> fHistCorrCent{};
384384
std::array<TH2F*, eBeforeAfterCuts_N> fHistSelectedTrack{};
385-
const float fSelTrackInf = 50.;
386-
const float fSelTrackSup = 80.;
385+
static constexpr float SelTrackCentInf = 50.f;
386+
static constexpr float SelTrackCentSup = 80.f;
387387
} qa;
388388

389389
struct MiscHistograms {
@@ -1022,7 +1022,7 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to
10221022
if constexpr (cuts == eBefore) {
10231023
qa.fHistMultNContrib[eBefore]->Fill(thisRefMult, collision.numContrib());
10241024
qa.fHistCorrCent[eBefore]->Fill(cent1, cent2);
1025-
if (thisCent >= qa.fSelTrackInf && thisCent <= qa.fSelTrackSup) {
1025+
if (thisCent >= qa.SelTrackCentInf && thisCent <= qa.SelTrackCentSup) {
10261026
qa.fHistSelectedTrack[eBefore]->Fill(tracks.size(), thisCent);
10271027
}
10281028
}
@@ -1167,7 +1167,7 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to
11671167
}
11681168
} // end of if constexpr (rs == eRecAndSim) {
11691169
} // end of for (auto const& track : tracks) {
1170-
if (tc.fMasterCutSwitch && passEventCutsReal && tc.fQualityAssuranceSwitch && (thisCollCentReal >= qa.fSelTrackInf && thisCollCentReal <= qa.fSelTrackSup)) {
1170+
if (tc.fMasterCutSwitch && passEventCutsReal && tc.fQualityAssuranceSwitch && (thisCollCentReal >= qa.SelTrackCentInf && thisCollCentReal <= qa.SelTrackCentSup)) {
11711171
qa.fHistSelectedTrack[eAfter]->Fill(nPassedTrack, thisCollCentReal);
11721172
}
11731173

0 commit comments

Comments
 (0)