Omicron  4.2.0
An algorithm to detect and characterize transient events in gravitational-wave detectors
Loading...
Searching...
No Matches
OxResults.h
Go to the documentation of this file.
1
6#ifndef __OxResults__
7#define __OxResults__
8
9#include "OxInj.h"
10#include "OxEvent.h"
11
12using namespace std;
13
23
27const string OxResultTypeName[oxresult_n] = {"foreground", "background", "fakeground"};
28
33class OxResults: public OxEvent, public GwollumPlot{
34
35public:
36
57 OxResults(const string aOptionFile, const unsigned int aGpsRef);
58
62 virtual ~OxResults(void);
63
76 bool Process(void);
77
82 unsigned int GetProcessedEventsN(OxResultType aResultType){ return (unsigned int)h1_ev_rank[aResultType]->GetEntries(); };
83
96 double RankToRate(OxResultType aResultType, const double aRank, const int aType=0);
97
98 double RateToRank(OxResultType aResultType, const double aRate);
99
107
114 bool CreateOutputFile(const unsigned int aTime);
115
120 bool SavePlots(const string aFormat="png");
121
125 bool MakeHtml(void);
126
127private:
128
130 unsigned int fake_slice_index;
132
133 // OUTPUT TTREE
134 TTree *oxr_tree;
135 unsigned int oxr_livetime;
139
140 // TIMING
141 unsigned int livetime[oxresult_n];
142 Segments *segments[2][oxresult_n];
143
144 // LOCAL HISTOGRAMS
148
157 bool ReadInputFiles(string &aFilePattern);
158
163 void FillHistograms(OxResultType aResultType);
164
168 void CreateHistograms(void);
169
173 void DrawFakeground(void);
174
175
176
177
178 ClassDef(OxResults,0)
179};
180
181
182#endif
183
184
Manage Ox events.
Ox injections.
const string OxResultTypeName[oxresult_n]
List of Ox result type names.
Definition OxResults.h:27
OxResultType
List of Ox result types.
Definition OxResults.h:17
@ oxresult_background
Background event.
Definition OxResults.h:19
@ oxresult_fakeground
Fake foreground event.
Definition OxResults.h:20
@ oxresult_foreground
Foreground event.
Definition OxResults.h:18
@ oxresult_n
Number of Ox event types.
Definition OxResults.h:21
Ox event management.
Definition OxEvent.h:27
Manage injections for Ox analyses.
Definition OxInj.h:19
Ox analysis results.
Definition OxResults.h:33
bool Process(void)
Processes the list of Ox events.
Definition OxResults.cc:101
TH1D * oxr_ev_rank
Result tree: event rank distribution.
Definition OxResults.h:136
Segments * segments[2][oxresult_n]
Analysis segments for the two detectors.
Definition OxResults.h:142
virtual ~OxResults(void)
Destructor of the OxResults class.
Definition OxResults.cc:88
bool MakeHtml(void)
Generates an html report in the output directory.
Definition OxResultsHtml.cc:9
int fake_lag
Fakeground definition: time lag [s].
Definition OxResults.h:131
double RankToRate(OxResultType aResultType, const double aRank, const int aType=0)
Returns the event rate at a given rank [Hz].
Definition OxResults.cc:178
OxResultType GetEventResultType(void)
Returns the result type of the current event.
Definition OxResults.cc:262
double RateToRank(OxResultType aResultType, const double aRate)
Definition OxResults.cc:221
TH1D * oxr_ev_freq
Result tree: event frequency distribution.
Definition OxResults.h:137
unsigned int GetProcessedEventsN(OxResultType aResultType)
Returns the number of processed events.
Definition OxResults.h:82
TH1D * h1_ev_freq[oxresult_n]
Event frequency distribution.
Definition OxResults.h:146
TH1D * h1_ev_rank[oxresult_n]
Event rank distribution.
Definition OxResults.h:145
OxInj * ox_inj
List of injections.
Definition OxResults.h:129
bool ReadInputFiles(string &aFilePattern)
Reads Ox results from input files.
Definition OxResults.cc:307
bool SavePlots(const string aFormat="png")
Saves all the result plots in the output directory.
Definition OxResultsPlot.cc:9
OxResults(const string aOptionFile, const unsigned int aGpsRef)
Constructor of the OxResults class.
bool CreateOutputFile(const unsigned int aTime)
Creates an ouput file.
Definition OxResults.cc:282
TH2D * h2_ev_rank_freq[oxresult_n]
Event rank/frequency distribution.
Definition OxResults.h:147
unsigned int oxr_livetime
Result tree: cumulative livetime [s].
Definition OxResults.h:135
void FillHistograms(OxResultType aResultType)
Fills the result histograms.
Definition OxResults.cc:438
TTree * oxr_tree
Ox result tree.
Definition OxResults.h:134
void DrawFakeground(void)
Draws a random slice to represent the fakeground.
Definition OxResults.cc:519
TH2D * oxr_ev_rank_freq
Result tree: event rank/frequency distribution.
Definition OxResults.h:138
unsigned int livetime[oxresult_n]
Analysis livetime [s].
Definition OxResults.h:141
unsigned int fake_slice_index
Fakeground definition: slice index.
Definition OxResults.h:130
void CreateHistograms(void)
Creates the result histograms.
Definition OxResults.cc:454