Omicron  4.2.0
An algorithm to detect and characterize transient events in gravitational-wave detectors
Loading...
Searching...
No Matches
OxOmicron.h
Go to the documentation of this file.
1
6#ifndef __OxOmicron__
7#define __OxOmicron__
8#include "Oomicron.h"
9#include "OxInit.h"
10
11using namespace std;
12
19class OxOmicron: public OxInit{
20
21public:
22
46 OxOmicron(const string aOptionFile, const unsigned int aGpsRef);
47
51 virtual ~OxOmicron(void);
52
73 bool Process(const unsigned int aDetectorIndex, const unsigned int aTimeStart, const bool aResetPsd);
74
81 bool CreateOutputFile(const unsigned int aTime);
82
86 inline unsigned int GetOmicronChunkDuration(void){
87 return omicron[0]->GetChunkDuration();
88 };
89
93 inline unsigned int GetOmicronOverlapDuration(void){
94 return omicron[0]->GetOverlapDuration();
95 };
96
102 inline string GetOmicronChannelName(const unsigned int aDetectorIndex){
103 return omicron[aDetectorIndex]->GetChannelName(0);
104 };
105
109 inline unsigned int GetOmicronQN(void){
110 return omicron[0]->GetQN();
111 };
112
118 inline unsigned int GetOmicronQ(const unsigned int aQindex){
119 return omicron[0]->GetQ(aQindex);
120 };
121
126 inline unsigned int GetAnalysisDuration(void){
128 };
129
133 inline double GetLightTravelTime(void){ return light_travel_time; };
134
140 inline Long64_t GetEntries(const unsigned int aDetectorIndex){ return oxo_tree_read[aDetectorIndex]->GetEntries(); };
141
149 inline int GetEntry(const unsigned int aDetectorIndex, Long64_t aEntry){ return oxo_tree_read[aDetectorIndex]->GetEntry(aEntry); };
150
156 inline unsigned int GetOmicronStartTime(const unsigned int aDetectorIndex){ return oxo_start_time[aDetectorIndex]; };
157
163 inline unsigned int GetOmicronEndTime(const unsigned int aDetectorIndex){ return oxo_start_time[aDetectorIndex] + GetAnalysisDuration(); };
164
165protected:
166
168 TTree *oxo_tree[2];
169 TChain *oxo_tree_read[2];
170
171private:
172
173 unsigned int oxo_start_time[2];
174 double oxo_snrsq[2];
176
186 Omicron* CreateOmicron(const unsigned int aDetectorIndex, const unsigned int aGpsRef);
187
199 bool CheckOmicron(void);
200
201 ClassDef(OxOmicron,0)
202};
203
204
205#endif
206
207
Omicron processing.
Ox initialization.
Process data with the Omicron algorithm.
Definition Oomicron.h:36
double GetQ(const unsigned int aQindex)
Returns the Q value of a given q planes.
Definition Oomicron.h:349
string GetChannelName(const unsigned int aChannelIndex)
Returns the name of a given channel.
Definition Oomicron.h:154
unsigned int GetOverlapDuration(void)
Returns the overlap duration [s].
Definition Oomicron.h:327
unsigned int GetChunkDuration(void)
Returns the chunk duration [s].
Definition Oomicron.h:322
unsigned int GetQN(void)
Returns the number of q planes.
Definition Oomicron.h:342
Ox analysis initialization.
Definition OxInit.h:16
Omicron for Ox analyses.
Definition OxOmicron.h:19
double GetLightTravelTime(void)
Returns the light travel time between the two detectors.
Definition OxOmicron.h:133
bool CheckOmicron(void)
Checks the consistency between the 2 Omicron objects.
Definition OxOmicron.cc:259
bool Process(const unsigned int aDetectorIndex, const unsigned int aTimeStart, const bool aResetPsd)
Runs the Omicron analysis.
Definition OxOmicron.cc:90
string GetOmicronChannelName(const unsigned int aDetectorIndex)
Returns the Omicron channel name.
Definition OxOmicron.h:102
Omicron * CreateOmicron(const unsigned int aDetectorIndex, const unsigned int aGpsRef)
Creates the Omicron object for a given detector.
Definition OxOmicron.cc:164
unsigned int GetAnalysisDuration(void)
Returns the Ox analysis duration [s].
Definition OxOmicron.h:126
unsigned int oxo_start_time[2]
TTree: Omicron start time (removing padding).
Definition OxOmicron.h:173
Omicron * omicron[2]
Omicron objects (detector 1 and 2) - do not delete.
Definition OxOmicron.h:167
unsigned int GetOmicronQN(void)
Returns the number of Omicron Q planes.
Definition OxOmicron.h:109
bool CreateOutputFile(const unsigned int aTime)
Creates an ouput file.
Definition OxOmicron.cc:136
double oxo_snrsq[2]
TTree: Maximum squared SNR.
Definition OxOmicron.h:174
unsigned int GetOmicronChunkDuration(void)
Returns the Omicron chunk duration [s].
Definition OxOmicron.h:86
unsigned int GetOmicronStartTime(const unsigned int aDetectorIndex)
Returns the start time of the current Omicron entry.
Definition OxOmicron.h:156
TChain * oxo_tree_read[2]
TChain: Omicron results (read-only).
Definition OxOmicron.h:169
int GetEntry(const unsigned int aDetectorIndex, Long64_t aEntry)
Loads an entry in the Omicron results.
Definition OxOmicron.h:149
virtual ~OxOmicron(void)
Destructor of the OxOmicron class.
Definition OxOmicron.cc:80
unsigned int GetOmicronQ(const unsigned int aQindex)
Returns Q value of a given Q plane.
Definition OxOmicron.h:118
TTree * oxo_tree[2]
TTree: Omicron results. Do not delete as it is owned by the output file.
Definition OxOmicron.h:168
Long64_t GetEntries(const unsigned int aDetectorIndex)
Returns the number of Omicron results.
Definition OxOmicron.h:140
double light_travel_time
Light travel time between detectors.
Definition OxOmicron.h:175
OxOmicron(const string aOptionFile, const unsigned int aGpsRef)
Constructor of the OxOmicron class.
unsigned int GetOmicronEndTime(const unsigned int aDetectorIndex)
Returns the end time of the current Omicron entry.
Definition OxOmicron.h:163
unsigned int GetOmicronOverlapDuration(void)
Returns the Omicron overlap duration [s].
Definition OxOmicron.h:93