00001
00002
00004 #ifndef __Odata__
00005 #define __Odata__
00006
00007 #include "TMath.h"
00008 #include "CUtils.h"
00009 #include "Segments.h"
00010 #include "FFT.h"
00011
00012 using namespace std;
00013
00041 class Odata{
00042
00043 public:
00044
00057 Odata(const int aChunkDuration,
00058 const int aSegmentDuration,
00059 const int aOverlapDuration,
00060 const int aVerbosity=0);
00061
00065 virtual ~Odata(void);
00075 bool SetSegments(Segments *aSegments);
00076
00083 bool NewChunk(void);
00084
00088 inline int GetNSegments(void){ return NSegments; };
00089
00093 inline int GetChunkTimeStart(void){ return ChunkStart; };
00094
00098 inline int GetChunkTimeEnd(void){ return ChunkStop; };
00099
00105 int GetSegmentTimeStart(const int aNseg);
00106
00112 int GetSegmentTimeEnd(const int aNseg);
00113
00117 inline bool GetStatus(void){ return status_OK; };
00118
00119
00120 private:
00121
00122 bool status_OK;
00123 int fVerbosity;
00124
00125 Segments *fSegments;
00126 int ChunkDuration;
00127 int SegmentDuration;
00128 int OverlapDuration;
00129 int ChunkStart;
00130 int ChunkStop;
00131 int NSegments;
00132 int seg;
00133 bool TestChunk(void);
00134
00135 ClassDef(Odata,0)
00136 };
00137
00138 #endif
00139
00140