00001
00002
00004 #ifndef __InjEct__
00005 #define __InjEct__
00006
00007 #include "Streams.h"
00008 #include "InjRea.h"
00009 #include "GwollumPlot.h"
00010
00011 using namespace std;
00012
00017 class InjEct: public InjRea, public GwollumPlot {
00018
00019 public:
00020
00034 InjEct(Streams* aStream, const string aPattern, const int aVerbose=0);
00035
00039 virtual ~InjEct();
00050 bool Inject(const int aDataSize, double *aData, const double aTimeStart);
00051
00061 bool PlotInjection(const int aInjIndex);
00062
00063 private:
00064
00065 Streams *InStream;
00066
00067
00068 double *window;
00069 TGraph *hplus;
00070 TGraph *hcross;
00071 TGraph *hdet;
00072
00073 bool GenerateWaveforms(const int aInjIndex);
00074 void GenerateSineGauss();
00075 void Project(void);
00076 double* GetTukeyWindow(const int aSize,
00077 const int aFractionSize);
00078
00079 ClassDef(InjEct,0)
00080 };
00081
00082 #endif
00083
00084