00001
00002
00004 #ifndef __InjRea__
00005 #define __InjRea__
00006
00007 #include "Chain.h"
00008 #include "TTree.h"
00009 #include "Network.h"
00010
00011 using namespace std;
00012
00013 class InjRea {
00014
00015 public:
00016
00017 InjRea(const string aInjRootFilePattern, Network *aNet, const int aVerbose=0);
00018 virtual ~InjRea();
00019
00020 inline bool GetStatus(void){ return status; };
00021
00022
00023 bool InitTimeStretch(const double aTimeStart, const double aTimeStop);
00024 bool Next(void);
00025 bool ResetBuffer(void);
00026 inline double GetTime(void) { return inj_time; };
00027 inline double GetRa(void) { return inj_ra; };
00028 inline double GetDec(void) { return inj_dec; };
00029 inline double GetPolarization(void) { return inj_psi; };
00030 inline double GetEccentricity(void) { return inj_ecc; };
00031 inline double GetAmplitude(void) { return inj_amp; };
00032 inline double GetSigma(void) { return inj_sigma; };
00033 inline double GetFrequency(void) { return inj_f0; };
00034 inline int GetType(void) { return InjType; };
00035
00036 protected:
00037
00038 bool status;
00039 int Verbose;
00040
00041
00042 Network *Net;
00043
00044
00045 Chain *InjTree;
00046 int InjType;
00047 double inj_ra, inj_dec, inj_psi, inj_time, inj_amp, inj_f0, inj_sigma, inj_ecc;
00048 double inj_amp_min, inj_amp_max;
00049
00050
00051
00052 int cur;
00053 int cur_start, cur_stop;
00054
00055 ClassDef(InjRea,0)
00056 };
00057
00058 #endif
00059
00060