GWOLLUM 4.2.0
Tools for gravitational-wave analyses
Loading...
Searching...
No Matches
MakeTriggers.h
Go to the documentation of this file.
1
7#ifndef __MakeTriggers__
8#define __MakeTriggers__
9
10#include "GwollumOptions.h"
11#include "Streams.h"
12#include "Triggers.h"
13
14using namespace std;
15
30class MakeTriggers: public GwollumOptions, public Segments, public Streams, public Triggers {
31
32 public:
33
49 MakeTriggers(const string aStreamName, const unsigned int aVerbose=0);
50
54 virtual ~MakeTriggers(void);
63 inline bool GetStatus(void){
65 };
66
76 void Reset(void);
77
104 string Write(const string aOutDir=".",
105 const string aFileFormat="",
106 const string aFileName="",
107 const string aSubDir="",
108 const string aWriteMode="RECREATE",
109 const bool aWriteMeta=true);
110
117 bool WriteMetaData(void);
118
123 inline void SetProcessName(const string aProcessName){
124 Mprocessname = aProcessName;
125 };
126
131 inline void SetProcessVersion(const string aProcessVersion){
132 Mprocessversion = aProcessVersion;
133 };
134
135 protected:
136
137 // METADATA
138 TTree *Mtree;
142 double Mstart;
143 double Mend;
144 double Mfmin;
145 double Mfmax;
146 double Mqmin;
147 double Mqmax;
148 double Msnrmin;
149 double Msnrmax;
150
151 private:
152
156 typedef struct h5_triggers{
157 double h5_time;
158 double h5_freq;
159 double h5_snr;
160 double h5_q;
161 double h5_amp;
162 double h5_ph;
163 double h5_tstart;
164 double h5_tend;
165 double h5_fstart;
166 double h5_fend;
167 } h5_triggers;
168
172 typedef struct h5_segments{
173 double h5_start;
174 double h5_end;
175 } h5_segments;
176
180 H5::CompType *h5_type;
181
185 H5::CompType *h5_type_s;
186
191 void WriteHDF5(const string aFileName);
192
197 void WriteTXT(const string aFileName);
198
204 void GetMetaSegment(double &aStart, double &aStop);
205
206 ClassDef(MakeTriggers,0)
207};
208
209#endif
210
211
Interface to manage options.
Data stream identifier.
Manage a trigger set.
Interface to manage options.
Definition GwollumOptions.h:434
Write triggers to disk.
Definition MakeTriggers.h:30
string Write(const string aOutDir=".", const string aFileFormat="", const string aFileName="", const string aSubDir="", const string aWriteMode="RECREATE", const bool aWriteMeta=true)
Writes triggers to disk.
Definition MakeTriggers.cc:85
bool GetStatus(void)
Returns the object status.
Definition MakeTriggers.h:63
virtual ~MakeTriggers(void)
Destructor of the MakeTriggers class.
Definition MakeTriggers.cc:60
TTree * Mtree
Metadata tree.
Definition MakeTriggers.h:138
double Mfmax
Meta maximum fend.
Definition MakeTriggers.h:145
string Mprocessversion
Meta process version.
Definition MakeTriggers.h:140
double Msnrmin
Meta minimum SNR.
Definition MakeTriggers.h:148
bool WriteMetaData(void)
Writes the metadata in a ROOT file.
Definition MakeTriggers.cc:199
double Mend
Meta end time.
Definition MakeTriggers.h:143
void SetProcessVersion(const string aProcessVersion)
Sets the version for this process.
Definition MakeTriggers.h:131
MakeTriggers(const string aStreamName, const unsigned int aVerbose=0)
Constructor of the MakeTriggers class.
void WriteTXT(const string aFileName)
Write triggers in a text file.
Definition MakeTriggers.cc:348
double Msnrmax
Meta maximum SNR.
Definition MakeTriggers.h:149
void GetMetaSegment(double &aStart, double &aStop)
Returns the start/stop metadata.
Definition MakeTriggers.cc:405
void Reset(void)
Resets all.
Definition MakeTriggers.cc:70
string Mprocessuser
Meta user name.
Definition MakeTriggers.h:141
void WriteHDF5(const string aFileName)
Write triggers in a HDF5 file.
Definition MakeTriggers.cc:254
H5::CompType * h5_type
Datatype for hdf5 (triggers).
Definition MakeTriggers.h:180
double Mqmax
Meta maximum Q.
Definition MakeTriggers.h:147
double Mfmin
Meta minimum fstart.
Definition MakeTriggers.h:144
double Mqmin
Meta minimum Q.
Definition MakeTriggers.h:146
string Mprocessname
Meta process name.
Definition MakeTriggers.h:139
void SetProcessName(const string aProcessName)
Set the process name.
Definition MakeTriggers.h:123
double Mstart
Meta start time.
Definition MakeTriggers.h:142
H5::CompType * h5_type_s
Datatype for hdf5 (segments).
Definition MakeTriggers.h:185
bool GetStatus(void)
Returns the class status.
Definition Sample.h:187
Manage time segment lists.
Definition Segments.h:29
bool GetStatus(void)
Returns the class status.
Definition Segments.h:110
Manage streams.
Definition Streams.h:23
Manage a trigger set.
Definition Triggers.h:27
bool GetStatus(void)
Returns the class status.
Definition Triggers.h:61
Segment structure for hdf5.
Definition MakeTriggers.h:172
double h5_end
Definition MakeTriggers.h:174
double h5_start
Definition MakeTriggers.h:173
Trigger structure for hdf5.
Definition MakeTriggers.h:156
double h5_fstart
Definition MakeTriggers.h:165
double h5_snr
Definition MakeTriggers.h:159
double h5_tstart
Definition MakeTriggers.h:163
double h5_amp
Definition MakeTriggers.h:161
double h5_ph
Definition MakeTriggers.h:162
double h5_q
Definition MakeTriggers.h:160
double h5_tend
Definition MakeTriggers.h:164
double h5_freq
Definition MakeTriggers.h:158
double h5_fend
Definition MakeTriggers.h:166
double h5_time
Definition MakeTriggers.h:157