From f77da54ceabec37afbdc2500cfdfaba63f22f10e Mon Sep 17 00:00:00 2001 From: mariajmz Date: Thu, 30 May 2024 12:28:05 +0200 Subject: [PATCH] first commit --- src/TRestDetectorSignal.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/TRestDetectorSignal.cxx b/src/TRestDetectorSignal.cxx index 6e7a2f09..7dc419c0 100644 --- a/src/TRestDetectorSignal.cxx +++ b/src/TRestDetectorSignal.cxx @@ -291,6 +291,9 @@ TRestDetectorSignal::GetMaxGauss() // returns a 2vector with the time of the pe Double_t maxRawTime = GetTime(maxRaw); // The time of the bin where the maximum of the raw signal is found Double_t energy = 0, time = 0; + + // Define fit limits + Double_t threshold = maxRaw * 0.10; // 10% of the maximum value Double_t lowerLimit = maxRawTime - 0.2; // us Double_t upperLimit = maxRawTime + 0.4; // us