00001
00002
00004 #ifndef __ReadTriggerMetaData__
00005 #define __ReadTriggerMetaData__
00006
00007 #include "ReadTriggerSegments.h"
00008
00009 using namespace std;
00010
00011
00017 class ReadTriggerMetaData : public ReadTriggerSegments {
00018
00019 public:
00020
00033 ReadTriggerMetaData(const string aPattern, const string aDirectory="", const int aVerbose=0);
00034
00038 virtual ~ReadTriggerMetaData(void);
00048 bool SetNewPattern(const string aPattern);
00049
00054 inline string GetProcessName(void){
00055 if(status_OK) return *Mprocessname; return "none";
00056 };
00057
00061 inline string GetStreamName(void){
00062 if(status_OK) return *Mstreamname; return "none";
00063 };
00064
00069 inline double GetFrequencyMin(void){ return Mfmin_stat; };
00070
00075 inline double GetFrequencyMax(void){ return Mfmax_stat; };
00076
00081 inline double GetQMin(void){ return Mqmin_stat; };
00082
00087 inline double GetQMax(void){ return Mqmax_stat; };
00088
00093 inline double GetSNRMin(void){ return Msnrmin_stat; };
00094
00099 inline double GetSNRMax(void){ return Msnrmax_stat; };
00100
00107 double GetMeta(const string aMname, const double aTime);
00108
00114 string Merge(const string aOutdir=".");
00115
00116 protected:
00117
00118
00119 Chain *Mtree;
00120 bool Mcomplete;
00121
00122
00123 double Mstart,
00124 Mend;
00125 string *Mprocessname;
00126 string *Mstreamname;
00127 int Mdetindex;
00128 double Mfmin_stat,
00129 Mfmax_stat,
00130 Mqmin_stat,
00131 Mqmax_stat,
00132 Msnrmin_stat,
00133 Msnrmax_stat;
00134
00135 private:
00136
00137 double Mfmin,
00138 Mfmax,
00139 Mqmin,
00140 Mqmax,
00141 Msnrmin,
00142 Msnrmax;
00143
00144 bool GetInputMetaData(void);
00145
00146
00147 ClassDef(ReadTriggerMetaData,0)
00148 };
00149
00150 #endif
00151
00152