Skip to content

Commit dc194fe

Browse files
author
Yuanjun Mei
committed
Fix magic numbers
1 parent a0b1ec8 commit dc194fe

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎PWGCF/MultiparticleCorrelations/Tasks/multiparticleCorrelationsMei.cxx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +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.;
385387
} qa;
386388

387389
struct MiscHistograms {
@@ -1020,7 +1022,7 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to
10201022
if constexpr (cuts == eBefore) {
10211023
qa.fHistMultNContrib[eBefore]->Fill(thisRefMult, collision.numContrib());
10221024
qa.fHistCorrCent[eBefore]->Fill(cent1, cent2);
1023-
if (thisCent >= 50. && thisCent <= 80.) {
1025+
if (thisCent >= qa.fSelTrackInf && thisCent <= qa.fSelTrackSup) {
10241026
qa.fHistSelectedTrack[eBefore]->Fill(tracks.size(), thisCent);
10251027
}
10261028
}
@@ -1165,7 +1167,7 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to
11651167
}
11661168
} // end of if constexpr (rs == eRecAndSim) {
11671169
} // end of for (auto const& track : tracks) {
1168-
if (tc.fMasterCutSwitch && passEventCutsReal && tc.fQualityAssuranceSwitch && (thisCollCentReal >= 50. && thisCollCentReal <= 80.)) {
1170+
if (tc.fMasterCutSwitch && passEventCutsReal && tc.fQualityAssuranceSwitch && (thisCollCentReal >= qa.fSelTrackInf && thisCollCentReal <= qa.fSelTrackSup)) {
11691171
qa.fHistSelectedTrack[eAfter]->Fill(nPassedTrack, thisCollCentReal);
11701172
}
11711173

0 commit comments

Comments
 (0)