00001
00002
00004 #ifndef __ffl__
00005 #define __ffl__
00006
00007 #include "CUtils.h"
00008 #include "ReadAscii.h"
00009 #include "GwollumPlot.h"
00010 #include "Segments.h"
00011 #include "TGraph.h"
00012 #include "FrameL.h"
00013 #include "FrVect.h"
00014
00015 using namespace std;
00016
00034 class ffl {
00035
00036 public:
00037
00049 ffl(const string aFrameFileList, const string aPlotStyle="GWOLLUM", const int aVerbosity=0);
00050
00054 virtual ~ffl(void);
00066 bool DefineTmpDir(const string aTmpDirPath=".");
00067
00074 bool LoadFrameFile(void);
00075
00091 double* GetData(int &aSize, const string channel_name, const double gps_start, const double gps_end);
00092
00100 TGraph* PlotData(const string channel_name, const double gps_start, const double gps_end);
00101
00108 string Convert2Ffl(void);
00109
00116 bool ExtractChannels(const int gps=0);
00117
00125 int GetChannelSampling(const string channel_name);
00126
00131 inline Segments* GetSegments(void){ return seg; }
00132
00136 void Reset(void);
00137
00145 inline void PrintChannels(const int gps=0){
00146 LoadFrameFile();
00147 ExtractChannels(gps);
00148 for(int l=0; l<(int)channels.size(); l++) cout<<channels[l]<<" "<<sampling[l]<<endl;
00149 };
00150
00151 private:
00152
00153 bool status_OK;
00154 string fInFrameFile;
00155 string fWoFrameFile;
00156 string fFormat;
00157 int fVerbosity;
00158 string tmpdir;
00159 string srandint;
00160
00161 vector<double> start;
00162 vector<double> stop;
00163 vector<string> ffile;
00164 Segments *seg;
00165 FrFile *frfile;
00166 vector <string> channels;
00167 vector <int> sampling;
00168
00169
00170 GwollumPlot *GP;
00171 TGraph *G;
00172
00173 bool CheckFFL(void);
00174
00175 ClassDef(ffl,0)
00176
00177 };
00178
00179 #endif
00180
00181