summaryrefslogtreecommitdiff
path: root/src/fisx_detector.h
diff options
context:
space:
mode:
authorFrédéric-Emmanuel Picca <picca@debian.org>2018-09-07 10:20:09 +0200
committerFrédéric-Emmanuel Picca <picca@debian.org>2018-09-07 10:20:09 +0200
commitbb00cdb6f8a280e7eca43656ab9e32bf173e9fa0 (patch)
tree2e4d981bc565dfe663a3cd2875b2eb8ad268177f /src/fisx_detector.h
parent81cf0d0f35267847ba3e05382d1239baf6c8ebaa (diff)
New upstream version 1.1.6
Diffstat (limited to 'src/fisx_detector.h')
-rw-r--r--src/fisx_detector.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fisx_detector.h b/src/fisx_detector.h
index cf95926..5008893 100644
--- a/src/fisx_detector.h
+++ b/src/fisx_detector.h
@@ -2,7 +2,7 @@
#
# The fisx library for X-Ray Fluorescence
#
-# Copyright (c) 2014-2016 European Synchrotron Radiation Facility
+# Copyright (c) 2014-2018 European Synchrotron Radiation Facility
#
# This file is part of the fisx X-ray developed by V.A. Sole
#
@@ -104,12 +104,13 @@ public:
Returns escape peak energy and rate per detected photon of given energy.
The optional arguments label and update serve for caching purposes.
+ To make use of the cache, the label must not be empty (it should be used to identify the elementsLibrary)
+ and update must be set to 0 because if it is set to 1 it will systematically empty the cascade cache.
*/
std::map<std::string, std::map<std::string, double> > getEscape(const double & energy, \
const Elements & elementsLibrary, \
const std::string & label = "", \
const int & update = 1);
-
void setMinimumEscapePeakEnergy(const double & energy);
void setMinimumEscapePeakIntensity(const double & intensity);
void setMaximumNumberOfEscapePeaks(const int & nPeaks);
@@ -122,7 +123,7 @@ private:
double escapePeakIntensityThreshold;
int escapePeakNThreshold;
double escapePeakAlphaIn;
- std::map< std::string, std::map<std::string, std::map<std::string, double> > > escapePeakCache;
+ std::map< std::string, std::map< double, std::map<std::string, std::map<std::string, double> > > >escapePeakCache;
// TODO: Calibration, fano, noise, and so on.
};