Diana Software
Public Member Functions | Private Attributes | List of all members
MNoiseAvgPowerSpectrum Class Reference

Module to compute average power spectrum of noise. More...

Inheritance diagram for MNoiseAvgPowerSpectrum:

Public Member Functions

virtual void Init (Diana::QEvent &ev)
 
virtual void Do (Diana::QEvent &ev)
 
virtual void Done ()
 

Private Attributes

std::string fValidityKind
 Validity kind defines the kind of validity range for the average pulse (run or dataset) More...
 
int fValidityStart
 Validity start first run (or dataset) of validity. More...
 
int fValidityEnd
 Validity end last run (or dataset) of validity. More...
 
int fNumFreq
 number of frequencies to compute – set automatically depending on number of points in acquired window More...
 
bool fProcessedFirstEvent
 flag indicating whether the first event has been processed More...
 
std::map< int, int > fCount
 number of noise samples found on each channel More...
 
std::map< int, QAverageVectorfNoiseAvgPowerSpectrum
 average of noise power spectrum for each channel More...
 
time_t fBeginValidity
 
time_t fEndValidity
 
std::string fOutput
 output for average pulse More...
 
std::string fWindow
 window type used for windowing (default is rectangular) More...
 
Diana::QFFT::WindowType fWindowType
 
int fCoherentGain
 int defines window normalization More...
 
std::string fPulseLabel
 
int fCurrentRun
 
std::vector< int > fSRuns
 vector of runs used for nps calculation More...
 

Detailed Description

Module to compute average power spectrum of noise.

Author
A. Bryant, M.Vignati, C. Tomei

Used for pulse amplitude algorithms

Definition at line 50 of file MNoiseAvgPowerSpectrum.hh.

Member Function Documentation

◆ Do()

void MNoiseAvgPowerSpectrum::Do ( Diana::QEvent &  ev)
virtual

◆ Done()

void MNoiseAvgPowerSpectrum::Done ( )
virtual

Definition at line 118 of file MNoiseAvgPowerSpectrum.cc.

References channel.

◆ Init()

void MNoiseAvgPowerSpectrum::Init ( Diana::QEvent &  ev)
virtual

Member Data Documentation

◆ fBeginValidity

time_t MNoiseAvgPowerSpectrum::fBeginValidity
private

Definition at line 86 of file MNoiseAvgPowerSpectrum.hh.

◆ fCoherentGain

int MNoiseAvgPowerSpectrum::fCoherentGain
private

int defines window normalization

Definition at line 98 of file MNoiseAvgPowerSpectrum.hh.

◆ fCount

std::map<int, int> MNoiseAvgPowerSpectrum::fCount
private

number of noise samples found on each channel

Definition at line 81 of file MNoiseAvgPowerSpectrum.hh.

◆ fCurrentRun

int MNoiseAvgPowerSpectrum::fCurrentRun
private

Definition at line 101 of file MNoiseAvgPowerSpectrum.hh.

◆ fEndValidity

time_t MNoiseAvgPowerSpectrum::fEndValidity
private

Definition at line 87 of file MNoiseAvgPowerSpectrum.hh.

◆ fNoiseAvgPowerSpectrum

std::map<int,QAverageVector> MNoiseAvgPowerSpectrum::fNoiseAvgPowerSpectrum
private

average of noise power spectrum for each channel

Definition at line 84 of file MNoiseAvgPowerSpectrum.hh.

◆ fNumFreq

int MNoiseAvgPowerSpectrum::fNumFreq
private

number of frequencies to compute – set automatically depending on number of points in acquired window

Definition at line 75 of file MNoiseAvgPowerSpectrum.hh.

◆ fOutput

std::string MNoiseAvgPowerSpectrum::fOutput
private

output for average pulse

Definition at line 90 of file MNoiseAvgPowerSpectrum.hh.

◆ fProcessedFirstEvent

bool MNoiseAvgPowerSpectrum::fProcessedFirstEvent
private

flag indicating whether the first event has been processed

Definition at line 78 of file MNoiseAvgPowerSpectrum.hh.

◆ fPulseLabel

std::string MNoiseAvgPowerSpectrum::fPulseLabel
private

Definition at line 100 of file MNoiseAvgPowerSpectrum.hh.

◆ fSRuns

std::vector<int> MNoiseAvgPowerSpectrum::fSRuns
private

vector of runs used for nps calculation

Definition at line 104 of file MNoiseAvgPowerSpectrum.hh.

◆ fValidityEnd

int MNoiseAvgPowerSpectrum::fValidityEnd
private

Validity end last run (or dataset) of validity.

Definition at line 70 of file MNoiseAvgPowerSpectrum.hh.

◆ fValidityKind

std::string MNoiseAvgPowerSpectrum::fValidityKind
private

Validity kind defines the kind of validity range for the average pulse (run or dataset)

Definition at line 64 of file MNoiseAvgPowerSpectrum.hh.

◆ fValidityStart

int MNoiseAvgPowerSpectrum::fValidityStart
private

Validity start first run (or dataset) of validity.

Definition at line 67 of file MNoiseAvgPowerSpectrum.hh.

◆ fWindow

std::string MNoiseAvgPowerSpectrum::fWindow
private

window type used for windowing (default is rectangular)

Definition at line 93 of file MNoiseAvgPowerSpectrum.hh.

◆ fWindowType

Diana::QFFT::WindowType MNoiseAvgPowerSpectrum::fWindowType
private

Definition at line 95 of file MNoiseAvgPowerSpectrum.hh.


The documentation for this class was generated from the following files: