GWOLLUM 4.2.0
Tools for gravitational-wave analyses
Loading...
Searching...
No Matches
InjEct.h
Go to the documentation of this file.
1
6#ifndef __InjEct__
7#define __InjEct__
8
9#include "Streams.h"
10#include "InjRea.h"
11#include "GwollumPlot.h"
12
13using namespace std;
14
29class InjEct: public InjRea, public GwollumPlot {
30
31 public:
32
45 InjEct(const string aPattern,
46 const string aPlotStyle="STANDARD",
47 const unsigned int aVerbose=0);
48
52 virtual ~InjEct(void);
67 void Inject(Streams *aDetectorStream,
68 const unsigned int aDataSize, double *aData, const double aTimeStart);
69
75 void Plot(Streams *aDetectorStream, const Long64_t aInjectionIndex);
76
82 inline void SetTukeyFraction(const double aFraction){
83 if(aFraction<0.0) return;
84 if(aFraction>1.0) return;
85 tukey_frac = aFraction;
86 };
87
93 inline void SetAntennaPeriodicity(const double aPeriod){
94 if(aPeriod>0.0) antenna_period = aPeriod;
95 };
96
97 private:
98
99 double tukey_frac;
100 TGraph *hplus;
101 TGraph *hcross;
102 TGraph *hdet;
104
118 void ConstructUserWaveform(Streams *aDetectorStream);
119
134 void ConstructSineGaussWaveform(Streams *aDetectorStream);
135
136 ClassDef(InjEct,0)
137};
138
139#endif
140
141
Interface to draw and print ROOT objects.
Read a set of injections.
Data stream identifier.
Interface to draw and print ROOT objects.
Definition GwollumPlot.h:39
Inject simulated signals in a data stream.
Definition InjEct.h:29
TGraph * hcross
Injection waveform (local time).
Definition InjEct.h:101
void ConstructUserWaveform(Streams *aDetectorStream)
Constructs the local time-domain waveforms , , and for the current "user-defined" injection.
Definition InjEct.cc:137
InjEct(const string aPattern, const string aPlotStyle="STANDARD", const unsigned int aVerbose=0)
Constructor of the InjEct class.
void SetTukeyFraction(const double aFraction)
Sets the transition of the Tukey window.
Definition InjEct.h:82
TGraph * hdet
Injection waveform projected on the detector .
Definition InjEct.h:102
double tukey_frac
Fraction of the waveform use to transition to 0 (between 0 and 1).
Definition InjEct.h:99
virtual ~InjEct(void)
Destructor of the InjEct class.
Definition InjEct.cc:36
void ConstructSineGaussWaveform(Streams *aDetectorStream)
Constructs the local time-domain waveforms , , and for the current "Sine-Gaussian" injection.
Definition InjEct.cc:222
double antenna_period
Optimization: periodicity to update the antenna factors.
Definition InjEct.h:103
TGraph * hplus
Injection waveform (local time).
Definition InjEct.h:100
void Plot(Streams *aDetectorStream, const Long64_t aInjectionIndex)
Plots the local waveform of a given injection.
Definition InjEct.cc:111
void SetAntennaPeriodicity(const double aPeriod)
Sets the periodicty to update the antenna factor.
Definition InjEct.h:93
void Inject(Streams *aDetectorStream, const unsigned int aDataSize, double *aData, const double aTimeStart)
Injects in a data vector.
Definition InjEct.cc:46
Read a set of injections.
Definition InjRea.h:24
Manage streams.
Definition Streams.h:23