00001
00002
00004 #ifndef __InjTre__
00005 #define __InjTre__
00006
00007
00008 #include "CUtils.h"
00009 #include "TFile.h"
00010 #include "TTree.h"
00011
00012 #define NINJTYPE 2
00013
00014 using namespace std;
00015
00016 class InjTre {
00017
00018 public:
00019
00020 InjTre(const int aInjType, const int aVerbose=0);
00021 virtual ~InjTre();
00022
00023
00024 int AddGauss(const double aRa,
00025 const double aDec,
00026 const double aTime,
00027 const double aEccentricity,
00028 const double aPolarization,
00029 const double aAmplitude,
00030 const double aSigma);
00031 int AddSineGauss(const double aRa,
00032 const double aDec,
00033 const double aTime,
00034 const double aEccentricity,
00035 const double aPolarization,
00036 const double aAmplitude,
00037 const double aSigma,
00038 const double aFrequency);
00039 inline void ResetTree(void){ InjTree->Reset(); };
00040
00041
00042 bool Write(const string aRootFileName="./myinjections.root");
00043 inline TTree* GetTree(void){ return InjTree; };
00044
00045 protected:
00046
00047
00048 bool status;
00049 int Verbose;
00050 int InjType;
00051
00052
00053 double inj_ra, inj_dec, inj_psi, inj_time, inj_amp, inj_f0, inj_sigma, inj_ecc;
00054 TTree *InjTree;
00055
00056 ClassDef(InjTre,0)
00057 };
00058
00059 #endif
00060
00061