9 #include <TriggerBuffer.h>
44 Oqplane(
const double aQ,
const unsigned int aSampleFrequency,
45 const double aFrequencyMin,
const double aFrequencyMax,
72 long unsigned int ProjectData(fft *aDataFft,
const double aPadding=0.0);
86 void FillMap(
const string aContentType,
const double aTimeStart,
const double aTimeEnd);
104 void AddTileSegments(Segments *aSegments, TH1D *aSnrThreshold,
105 const double aT0,
const double aPadding);
117 bool SaveTriggers(TriggerBuffer *aTriggers,
const double aT0, Segments* aSeg);
128 inline void SetSnrThr(
const double aSnrThr=2.0){ SnrThr=aSnrThr; };
136 inline double GetTileSnrSq(
const unsigned int aTimeTileIndex,
const unsigned int aBandIndex){
137 return TMath::Max(bandFFT[aBandIndex]->GetNorm2_t(aTimeTileIndex)-2.0,0.0);
152 return GetTileSnrSq(aTimeTileIndex, aBandIndex)*bandNoiseAmplitude[aBandIndex]*bandNoiseAmplitude[aBandIndex];
161 inline double GetTileAmplitude(
const unsigned int aTimeTileIndex,
const unsigned int aBandIndex){
162 return TMath::Sqrt(GetTileSnrSq(aTimeTileIndex, aBandIndex))*bandNoiseAmplitude[aBandIndex];
172 void SetPower(Spectrum *aSpec1, Spectrum *aSpec2);
Omicron multi-resolution time-frequency map.
const double const double aMaximumMismatch
Definition: Otile.cc:11
Create a time-frequency map for the Q-transform.
Definition: Omap.h:31
Create a time-frequency Q-plane.
Definition: Oqplane.h:23
double GetSnrSqMax(void)
Returns the maximum SNR squared estimated in the entire Q plane.
Definition: Oqplane.h:143
double GetTileAmplitude(const unsigned int aTimeTileIndex, const unsigned int aBandIndex)
Returns the amplitude estimated in a tile.
Definition: Oqplane.h:161
double GetTileSnrSq(const unsigned int aTimeTileIndex, const unsigned int aBandIndex)
Returns the SNR squared estimated in a tile.
Definition: Oqplane.h:136
double GetSnrThr(void)
Gets the tile SNR threshold.
Definition: Oqplane.h:122
unsigned int * bandWindowSize
Band bisquare window size.
Definition: Oqplane.h:181
Oqplane(const double aQ, const unsigned int aSampleFrequency, const double aFrequencyMin, const double aFrequencyMax, const unsigned int aTimeRange, const double aMaximumMismatch)
Constructor of the Oqplane class.
void SetSnrThr(const double aSnrThr=2.0)
Sets the tile SNR threshold.
Definition: Oqplane.h:128
double GetTileAmplitudeSq(const unsigned int aTimeTileIndex, const unsigned int aBandIndex)
Returns the amplitude squared estimated in a tile.
Definition: Oqplane.h:151
double ** bandWindow_i
Band bisquare windows (imaginary).
Definition: Oqplane.h:183
double SnrThr
SNR threshold to save tiles.
Definition: Oqplane.h:177
double SnrSqMax
Maximum SNR squared in the Q plane.
Definition: Oqplane.h:178
fft ** bandFFT
Band ffts.
Definition: Oqplane.h:185
double ** bandWindow_r
Band bisquare windows (real).
Definition: Oqplane.h:182
double * bandNoiseAmplitude
Band noise amplitude.
Definition: Oqplane.h:184