38 #ifndef _M_NOISEAVGPOWERSPECTRUM_H_
39 #define _M_NOISEAVGPOWERSPECTRUM_H_
54 virtual void Init(Diana::QEvent& ev);
57 virtual void Do( Diana::QEvent& ev);
Module to compute average power spectrum of noise.
int fValidityStart
Validity start first run (or dataset) of validity.
std::string fWindow
window type used for windowing (default is rectangular)
Diana::QFFT::WindowType fWindowType
virtual void Do(Diana::QEvent &ev)
std::map< int, int > fCount
number of noise samples found on each channel
int fValidityEnd
Validity end last run (or dataset) of validity.
int fNumFreq
number of frequencies to compute – set automatically depending on number of points in acquired window
std::vector< int > fSRuns
vector of runs used for nps calculation
std::string fValidityKind
Validity kind defines the kind of validity range for the average pulse (run or dataset)
virtual void Init(Diana::QEvent &ev)
std::string fOutput
output for average pulse
std::map< int, QAverageVector > fNoiseAvgPowerSpectrum
average of noise power spectrum for each channel
bool fProcessedFirstEvent
flag indicating whether the first event has been processed
int fCoherentGain
int defines window normalization