Skip to content

Commit 140357a

Browse files
committed
constexpr->const for std::fabs()-initialized variable (macOS-arm concession)
1 parent 5b5fb2a commit 140357a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DPG/Tasks/TPC/tpcSkimsTableCreator.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ struct TreeWriterTpcV0 {
100100

101101
// an arbitrary value of N sigma TOF assigned by TOF task to tracks which are not matched to TOF hits
102102
constexpr static float NSigmaTofUnmatched{o2::aod::v0data::kNoTOFValue};
103-
constexpr static float NSigmaTofUnmatchedEqualityTolerance{std::fabs(NSigmaTofUnmatched) / 1e4f};
103+
const float nSigmaTofUnmatchedEqualityTolerance{std::fabs(NSigmaTofUnmatched) / 1e4f};
104104
// an arbitrary value of "N sigma TOF" assigned to electorns (for uniformity reasons)
105105
constexpr static float NSigmaTofElectorn{1000.f};
106106

@@ -451,8 +451,8 @@ struct TreeWriterTpcV0 {
451451

452452
const bool passTrackSelection = isTrackSelected(dauTrack, trackSelection);
453453
const bool passDownsamplig = downsampleTsalisCharged(fRndm, dauTrack.pt(), daughter.downsamplingTsalis, daughter.mass, sqrtSNN, daughter.maxPt4dwnsmplTsalis);
454-
const bool passNSigmaTofCut = std::fabs(daughter.tofNSigma) < daughter.nSigmaTofDauTrack || std::fabs(daughter.tofNSigma - NSigmaTofUnmatched) < NSigmaTofUnmatchedEqualityTolerance;
455-
const bool passMatchTofRequirement = !daughter.rejectNoTofDauTrack || std::fabs(daughter.tofNSigma - NSigmaTofUnmatched) > NSigmaTofUnmatchedEqualityTolerance;
454+
const bool passNSigmaTofCut = std::fabs(daughter.tofNSigma) < daughter.nSigmaTofDauTrack || std::fabs(daughter.tofNSigma - NSigmaTofUnmatched) < nSigmaTofUnmatchedEqualityTolerance;
455+
const bool passMatchTofRequirement = !daughter.rejectNoTofDauTrack || std::fabs(daughter.tofNSigma - NSigmaTofUnmatched) > nSigmaTofUnmatchedEqualityTolerance;
456456
if (passTrackSelection && passDownsamplig && passNSigmaTofCut && passMatchTofRequirement) {
457457
occupancyValues occValues{};
458458
if constexpr (ModeId == ModeWithTrkQA) {

0 commit comments

Comments
 (0)