summaryrefslogtreecommitdiff
path: root/src/fisx_detector.cpp
diff options
context:
space:
mode:
authorPicca Frédéric-Emmanuel <picca@debian.org>2017-11-25 13:42:57 +0100
committerPicca Frédéric-Emmanuel <picca@debian.org>2017-11-25 13:42:57 +0100
commit11014d2c7d3b283ef2025afc371039a9e637cc70 (patch)
treecba4ad02ad51ebf81ff7b9d8a6298d57656a3a2e /src/fisx_detector.cpp
parentfe656bd54a9f339ee4ccddadde86fe07f78a88c2 (diff)
New upstream version 1.1.4
Diffstat (limited to 'src/fisx_detector.cpp')
-rw-r--r--src/fisx_detector.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/fisx_detector.cpp b/src/fisx_detector.cpp
index be27e9a..5133f6c 100644
--- a/src/fisx_detector.cpp
+++ b/src/fisx_detector.cpp
@@ -74,6 +74,10 @@ void Detector::setMaximumNumberOfEscapePeaks(const int & nPeaks)
this->escapePeakCache.clear();
}
+void Detector::clearEscapePeakCache()
+{
+ this->escapePeakCache.clear();
+}
double Detector::getActiveArea() const
{
@@ -128,7 +132,7 @@ std::map<std::string, std::map<std::string, double> > Detector::getEscape(const
{
if (update != 0)
this->escapePeakCache.clear();
- if (label.size())
+ if (false) //(label.size())
{
if (this->escapePeakCache.find(label) == this->escapePeakCache.end())
{
@@ -138,7 +142,8 @@ std::map<std::string, std::map<std::string, double> > Detector::getEscape(const
this->escapePeakEnergyThreshold, \
this->escapePeakIntensityThreshold, \
this->escapePeakNThreshold, \
- this->escapePeakAlphaIn);
+ this->escapePeakAlphaIn,
+ 0);
}
return this->escapePeakCache[label];
}
@@ -149,7 +154,8 @@ std::map<std::string, std::map<std::string, double> > Detector::getEscape(const
this->escapePeakEnergyThreshold, \
this->escapePeakIntensityThreshold, \
this->escapePeakNThreshold, \
- this->escapePeakAlphaIn);
+ this->escapePeakAlphaIn,
+ 0);
}
}