Omicron  4.2.0
An algorithm to detect and characterize transient events in gravitational-wave detectors
Loading...
Searching...
No Matches
OxCorr.h
Go to the documentation of this file.
1
6#ifndef __OxCorr__
7#define __OxCorr__
8#include <FFT.h>
9#include "OxOmicron.h"
10
11using namespace std;
12
19class OxCorr: public OxOmicron{
20
21public:
22
39 OxCorr(const string aOptionFile, const unsigned int aGpsRef);
40
44 virtual ~OxCorr(void);
45
61 bool Transform(const unsigned int aDetectorIndex);
62
68 bool Process(void);
69
76 inline double GetXi(const unsigned int aQindex, const unsigned int aFrequencyIndex, const unsigned int aTimeDelayIndex){ return map_fft[1][aQindex][aFrequencyIndex]->GetRe_t(aTimeDelayIndex); };
77
81 inline unsigned int GetTimeDelayBinsN(void){ return map_fft[0][0][0]->GetSize_t(); };
82
90 inline double GetTimeDelay(const unsigned int aTimeDelayBinIndex){
91 return (double)OxOmicron::omicron[1]->GetChunkTimeStart() - (double)OxOmicron::omicron[0]->GetChunkTimeStart()
92 - (double)OxOmicron::GetAnalysisDuration()/2.0 + (double)aTimeDelayBinIndex*(double)GetTimeDelayResolution();
93 };
94
99 inline double GetTimeDelayResolution(void){
100 return (double)OxOmicron::GetAnalysisDuration()/(double)(GetTimeDelayBinsN());
101 };
102
109 inline unsigned int GetTimeDelayBinIndex(const double aTimeDelay){
110 return (unsigned int)((aTimeDelay - (double)OxOmicron::omicron[1]->GetChunkTimeStart() + (double)OxOmicron::omicron[0]->GetChunkTimeStart() + (double)OxOmicron::GetAnalysisDuration()/2.0)/(double)OxOmicron::GetAnalysisDuration()*(double)(GetTimeDelayBinsN()));
111 };
112
113private:
114
115 fft ***map_fft[2];
116
117 ClassDef(OxCorr,0)
118};
119
120
121#endif
122
123
Omicron for Ox analyses.
unsigned int GetChunkTimeStart(void)
Returns the current chunk start time [s].
Definition Oomicron.h:332
Ox cross-correlation engine.
Definition OxCorr.h:19
fft *** map_fft[2]
Map FFT plans: detector 1, detector 2 (cross-correlation).
Definition OxCorr.h:115
OxCorr(const string aOptionFile, const unsigned int aGpsRef)
Constructor of the OxCorr class.
virtual ~OxCorr(void)
Destructor of the OxCorr class.
Definition OxCorr.cc:56
double GetXi(const unsigned int aQindex, const unsigned int aFrequencyIndex, const unsigned int aTimeDelayIndex)
Returns the cross-correlation coefficient .
Definition OxCorr.h:76
double GetTimeDelayResolution(void)
Returns the time-delay resolution [s].
Definition OxCorr.h:99
unsigned int GetTimeDelayBinIndex(const double aTimeDelay)
Returns the time-delay bin index for a given time delay.
Definition OxCorr.h:109
double GetTimeDelay(const unsigned int aTimeDelayBinIndex)
Returns the time delay of a bin in the cross-correlation map [s].
Definition OxCorr.h:90
bool Process(void)
Runs the cross-correlation analysis.
Definition OxCorr.cc:138
bool Transform(const unsigned int aDetectorIndex)
Transforms the Omicron spectrogram in the Fourier domain.
Definition OxCorr.cc:70
unsigned int GetTimeDelayBinsN(void)
Returns the number of time-delay bins.
Definition OxCorr.h:81
Omicron for Ox analyses.
Definition OxOmicron.h:19
unsigned int GetAnalysisDuration(void)
Returns the Ox analysis duration [s].
Definition OxOmicron.h:126
Omicron * omicron[2]
Omicron objects (detector 1 and 2) - do not delete.
Definition OxOmicron.h:167