From 8d18ca790517217910adcb811894b8d042da3d7d Mon Sep 17 00:00:00 2001 From: Suter Andreas Date: Wed, 4 May 2016 17:11:32 +0200 Subject: [PATCH] force to ignore freq < 10 MHz for single histo RRF to find max freq. This is needed for heavily damped high frequency signals. --- src/classes/PRunSingleHistoRRF.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/classes/PRunSingleHistoRRF.cpp b/src/classes/PRunSingleHistoRRF.cpp index 3777c462..547e6442 100644 --- a/src/classes/PRunSingleHistoRRF.cpp +++ b/src/classes/PRunSingleHistoRRF.cpp @@ -1059,6 +1059,9 @@ Double_t PRunSingleHistoRRF::GetMainFrequency(PDoubleVector &data) if (power->GetBinContent(i)>power->GetBinContent(i+1)) continue; } + // ignore everything below 10 MHz + if (power->GetBinCenter(i) < 10.0) + continue; // check for maximum if (power->GetBinContent(i) > maxFreqVal) { maxFreqVal = power->GetBinContent(i);