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

compute cross correlated noise power spectrum on different channels. * This module needs side pulses as neighbours. So one needs side pulses unrolled and NeighbourAlgorithm = AllSideNeighbour in the reader, see also the config file $DIANA_INSTALL/cfg/noisedecorr/average_noise_correlation.cfg. Files must be preprocessed with preprocess.cfg in the same dir. More...

Inheritance diagram for MNoiseCrossPowerSpectrum:

Classes

class  ChannelInfo
 

Public Member Functions

void Init (Diana::QEvent &ev)
 Init method. More...
 
void Do (Diana::QEvent &ev, const Diana::QEventList &neighbours)
 Do method. More...
 
void Done ()
 Done method. More...
 

Private Attributes

QChannelCovariance fCov
 
std::vector< int > fChannelList
 
size_t fTimeLength
 
std::map< int, std::map< int, ChannelInfo > > fRosetta
 
std::string fOutput
 
Diana::QFFT::WindowType fWindowType
 
int fCoherentGain
 
Diana::QRealComplexFFT * fTransformer
 
bool fUseMainEvent
 
std::string fValidityKind
 Validity kind defines the kind of validity range for covariance matrix (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...
 
std::vector< int > fSRuns
 vector of runs used for nps calculation More...
 
int fCurrentRun
 
std::vector< std::string > fPulseLabels
 

Detailed Description

compute cross correlated noise power spectrum on different channels. * This module needs side pulses as neighbours. So one needs side pulses unrolled and NeighbourAlgorithm = AllSideNeighbour in the reader, see also the config file $DIANA_INSTALL/cfg/noisedecorr/average_noise_correlation.cfg. Files must be preprocessed with preprocess.cfg in the same dir.

Author
C. Mancini and M. Vignati
  • Config example:
      module NoiseCrossAvgPowerSpectrum
      verbosity = info
      enable = true
      ValidityKind = dataset
      ValidityStart = 6001
      ValidityEnd = 6001
      WindowType = welch
      WindowCoherentGain = 2
      Output = NODEFAULT
      endmod
      
  • Parameters:
    • ValidityKind [string = "dataset"]: defines the kind of validity range for the crossnps, can be run or dataset
    • ValidityStart: first run (or dataset) of validity
    • ValidityEnd: last run (or dataset) of validity
    • Output [string = NODEFAULT] output file for crossnps.
    • WindowType [string = "None"]: type of window used for windowing (default is rectangular)
    • WindowCoherentGain [int = 2]: defines window normalization
  • Reads:
  • Writes:

Definition at line 49 of file MNoiseCrossPowerSpectrum.hh.

Member Function Documentation

◆ Do()

void MNoiseCrossPowerSpectrum::Do ( Diana::QEvent &  ev,
const Diana::QEventList &  neighbours 
)

◆ Done()

void MNoiseCrossPowerSpectrum::Done ( )

◆ Init()

void MNoiseCrossPowerSpectrum::Init ( Diana::QEvent &  ev)

Member Data Documentation

◆ fChannelList

std::vector<int> MNoiseCrossPowerSpectrum::fChannelList
private

Definition at line 71 of file MNoiseCrossPowerSpectrum.hh.

◆ fCoherentGain

int MNoiseCrossPowerSpectrum::fCoherentGain
private

Definition at line 78 of file MNoiseCrossPowerSpectrum.hh.

◆ fCov

QChannelCovariance MNoiseCrossPowerSpectrum::fCov
private

Definition at line 69 of file MNoiseCrossPowerSpectrum.hh.

◆ fCurrentRun

int MNoiseCrossPowerSpectrum::fCurrentRun
private

Definition at line 94 of file MNoiseCrossPowerSpectrum.hh.

◆ fOutput

std::string MNoiseCrossPowerSpectrum::fOutput
private

Definition at line 75 of file MNoiseCrossPowerSpectrum.hh.

◆ fPulseLabels

std::vector<std::string> MNoiseCrossPowerSpectrum::fPulseLabels
private

Definition at line 97 of file MNoiseCrossPowerSpectrum.hh.

◆ fRosetta

std::map<int,std::map<int,ChannelInfo> > MNoiseCrossPowerSpectrum::fRosetta
private

Definition at line 74 of file MNoiseCrossPowerSpectrum.hh.

◆ fSRuns

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

vector of runs used for nps calculation

Definition at line 92 of file MNoiseCrossPowerSpectrum.hh.

◆ fTimeLength

size_t MNoiseCrossPowerSpectrum::fTimeLength
private

Definition at line 73 of file MNoiseCrossPowerSpectrum.hh.

◆ fTransformer

Diana::QRealComplexFFT* MNoiseCrossPowerSpectrum::fTransformer
private

Definition at line 79 of file MNoiseCrossPowerSpectrum.hh.

◆ fUseMainEvent

bool MNoiseCrossPowerSpectrum::fUseMainEvent
private

Definition at line 81 of file MNoiseCrossPowerSpectrum.hh.

◆ fValidityEnd

int MNoiseCrossPowerSpectrum::fValidityEnd
private

Validity end last run (or dataset) of validity.

Definition at line 89 of file MNoiseCrossPowerSpectrum.hh.

◆ fValidityKind

std::string MNoiseCrossPowerSpectrum::fValidityKind
private

Validity kind defines the kind of validity range for covariance matrix (run or dataset)

Definition at line 83 of file MNoiseCrossPowerSpectrum.hh.

◆ fValidityStart

int MNoiseCrossPowerSpectrum::fValidityStart
private

Validity start first run (or dataset) of validity.

Definition at line 86 of file MNoiseCrossPowerSpectrum.hh.

◆ fWindowType

Diana::QFFT::WindowType MNoiseCrossPowerSpectrum::fWindowType
private

Definition at line 77 of file MNoiseCrossPowerSpectrum.hh.


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