Commit 882782d4 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

new data amplitude limit; corrected to match GSE limits

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 4304
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent adc6c4ee
......@@ -79,11 +79,18 @@
* size in the Fortran version.
* - 21/11/2011 V1.16 - waveform normalizer now limits the maximum value
* to 2**27-1 which matches the settings in libgsexx
* - 06/12/2011 V1.17 - waveform normalizer now limits the maximum value
* to 2**25-1 which ensure that the maximum second
* difference is smaller than 2**27. The settings
* in V1.16 were due to a wrong interpretation of
* libgsexx limits. This this provides the full
* dynamic range of 24bit data acquisition systems to
* be stored without round-off.
*
* ============================================================================
*/
#define TF_SFFXX_CC_VERSION \
"TF_SFFXX_CC V1.16"
"TF_SFFXX_CC V1.17"
#define TF_SFFXX_CC_CVSID \
"$Id$"
......@@ -877,7 +884,15 @@ c a single shot)
// WaveformNormalizer
// ------------------
const int WaveformNormalizer::limit=0x3ffffff;
/*! \brief the absolute maximum amplitude (one-sided) to which
* the time series will be normalized.
*
* GSE limits second differences to be smaller than 0x08000000
* which is 134217728 which is 2**27. Consequently the largest amplitude of
* data values prior to calculating second differences must not be larger
* than 2**25-1 which is 0x1FFFFFF.
*/
const int WaveformNormalizer::limit=0x1ffffff;
WaveformNormalizer::WaveformNormalizer(const Enormmode& nm,
const double& maxval):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment