class ReadTrend ReadTrend class reads in one or more trends and returns requested statistical fields as TSeries
| | TrendType Enumerate trend types |
| | typeID Enumerated data fields |
| | string_vect Vector of channel names or trend type names |
| | tseries_vect Vector of time series |
| | type_vect Vector of data field IDs |
| | ReadTrend (void) Default constructor. |
| | ReadTrend (const char* dir, const char* prefix=0, const char* postfix=0, TrendType Type=kMinute) Data constructor. |
| | getMaxSeries (const char* chan, const Time& t0, Interval dT, TSeries* Max) Get the maximum values from the specified trend. |
| | getSeries (const char* chan, const Time& t0, Interval dT, TSeries* Avg, TSeries* Err=0) Get ean and error time series. |
| | getSeries (const string_vect& chan, const string_vect& field, const Time& t0, Interval dT, tseries_vect& Data) get Statistics time series. |
| | getSeries (const string_vect& chan, const type_vect& field, const Time& t0, Interval dT, tseries_vect& Data) get Statistics time series. |
| | setDirectory (const FrameDir& fd) Set file name search pattern |
| | setDirectory (const std::string& dir, const std::string& prefix, const std::string& postfix) Set file name search pattern |
| | setMonitor (const char* mon) Set file name search pattern |
| | setType (TrendType Typ) Set the trend type. |
| | setDebug (void) Set the debug flag to print a lot of debugging information |
| | expunge (void) expunge frame directory. |
ReadTrend class reads in one or more trends and returns requested statistical fields as TSeries. The trend files to be read in are found from a framedir directory built from all files matching the format <directory>/<prefix>*<postfix>. The directory, prefix and postfix may be specified explicitly, or a monitor name may be specified in which case, the file name fields are derived from the monitor name and local defaults. The following statistical values can be extracted from the trend frames:
Name Contents count Number of points in average error Error on the mean max Maximum value mean Mean value. min Minimum value sigma Standard deviation
enum typeID
typedef std::vector <std::string> string_vect
typedef std::vector <TSeries> tseries_vect
typedef std::vector <typeID> type_vect
ReadTrend(void)
ReadTrend(const char* dir, const char* prefix=0, const char* postfix=0, TrendType Type=kMinute)
prefix - Trend file name prefix.
Type - Trend type
int getMaxSeries(const char* chan, const Time& t0, Interval dT, TSeries* Max)
int getSeries(const char* chan, const Time& t0, Interval dT, TSeries* Avg, TSeries* Err=0)
t0 - Start time.
dT - Time interval.
Avg - Average value time series.
Err - Error time series.
int getSeries(const string_vect& chan, const string_vect& field, const Time& t0, Interval dT, tseries_vect& Data)
field - Vector of field names.
t0 - Start time.
dT - Time interval.
Data - Vector of time series to receive data.
int getSeries(const string_vect& chan, const type_vect& field, const Time& t0, Interval dT, tseries_vect& Data)
field - Vector of field IDs.
t0 - Start time.
dT - Time interval.
Data - Vector of time series to receive data.
void setDirectory(const FrameDir& fd)
prefix - prefix string.
postfix - postfix string.
void setDirectory(const std::string& dir, const std::string& prefix, const std::string& postfix)
prefix - prefix string.
postfix - postfix string.
void setMonitor(const char* mon)
<directory> $DMTRENDOUT
<prefix> <site>-<monitor>_[TM]-
<postfix> -<duration>.gwf
void setType(TrendType Typ)
void setDebug(void)
void expunge(void)
alphabetic index hierarchy of classes
Please send questions and comments to zweizig_j@ligo.caltech.edu
generated by doc++