GWOLLUM  4.2.0
Tools for gravitational-wave analyses
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 
13 using namespace std;
14 
29 class InjEct: public InjRea, public GwollumPlot {
30 
31  public:
32 
46  InjEct(Streams* aStream, const string aPattern,
47  const string aPlotStyle="STANDARD", const unsigned int aVerbose=0);
48 
52  virtual ~InjEct();
66  void Inject(const unsigned int aDataSize, double *aData, const double aTimeStart);
67 
72  void Plot(const Long64_t aInjectionIndex);
73 
79  inline void SetTukeyFraction(const double aFraction){
80  if(aFraction<0.0) return;
81  if(aFraction>1.0) return;
82  tukey_frac = aFraction;
83  };
84 
85  private:
86 
88 
89  // INJECTION
90  double tukey_frac;
91  TGraph *hplus;
92  TGraph *hcross;
93  TGraph *hdet;
94 
105  void ConstructUserWaveform(void);
106 
118  void ConstructSineGaussWaveform(void);
119 
120  ClassDef(InjEct,0)
121 };
122 
123 #endif
124 
125 
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:92
Streams * InStream
Input stream (DO NOT DELETE).
Definition: InjEct.h:83
InjEct(Streams *aStream, 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:79
TGraph * hdet
Injection waveform projected on the detector .
Definition: InjEct.h:93
double tukey_frac
Fraction of the waveform use to transition to 0 (between 0 and 1).
Definition: InjEct.h:90
TGraph * hplus
Injection waveform (local time).
Definition: InjEct.h:91
Read a set of injections.
Definition: InjRea.h:23
Manage streams.
Definition: Streams.h:22