59 ffl(
const string aFrameFileList,
60 const string aPlotStyle =
"GWOLLUM",
61 const unsigned int aVerbosity = 0,
62 const string aTmpDirPath =
".",
63 const unsigned int aNTrials = 1,
64 const unsigned int aNSleepSeconds = 0);
115 for(aChannelIndex=0; aChannelIndex<
channels.size(); aChannelIndex++){
116 if(!aChannelName.compare(
channels[aChannelIndex]))
140 for(
unsigned int l=0; l<
channels.size(); l++)
160 for(
unsigned int l=0; l<
channels.size(); l++){
161 if(!aChannelName.compare(
channels[l]))
return true;
182 double*
GetData(
unsigned int &aSize,
const string aChannelName,
183 const double aGpsStart,
const double aGpsEnd,
184 const double aMissing=999.0);
194 bool PrintData(
const string aChannelName,
const double aGpsStart,
const double aGpsEnd,
string aFileName);
204 TGraph*
PlotData(
const string aChannelName,
const double aGpsStart,
const double aGpsEnd);
Interface to draw and print ROOT objects.
Time segment list management.
Interface to draw and print ROOT objects.
Definition GwollumPlot.h:39
Monitor a GWOLLUM processing.
Definition Monitor.h:39
bool GetStatus(void)
Returns the object status.
Definition Monitor.h:109
Manage time segment lists.
Definition Segments.h:29
Load frame files and access data in frames.
Definition ffl.h:35
bool ffl_pure
Flags a pure FFL file --> no need for a working file.
Definition ffl.h:231
bool IsChannel(const string aChannelName)
Tests whether a channel exists in the dataset pointed by the ffl.
Definition ffl.h:159
Segments * GetSegments(void)
Returns a pointer to the segments covered by the ffl.
Definition ffl.h:105
vector< string > GetChannelList(const string aFilter="")
Returns the current channel list.
Definition ffl.cc:209
unsigned int ntrials
Number of trials when accessing the data.
Definition ffl.h:212
vector< unsigned int > ffl_gps
Frame file GPS start.
Definition ffl.h:229
vector< string > channels
List of channels.
Definition ffl.h:220
virtual ~ffl(void)
Destructor of the ffl class.
Definition ffl.cc:99
void ReadInputFile(const string aInFile)
Reads an input file and extracts the list of frame files.
Definition ffl.cc:410
TGraph * G
Graph.
Definition ffl.h:225
vector< unsigned int > ffl_dur
Frame file duration.
Definition ffl.h:230
FrFile * frfile
Fr file.
Definition ffl.h:217
bool PrintData(const string aChannelName, const double aGpsStart, const double aGpsEnd, string aFileName)
Prints a data vector in a text file.
Definition ffl.cc:337
string fInFrameFile
Path to input frame file list.
Definition ffl.h:209
ffl(const string aFrameFileList, const string aPlotStyle="GWOLLUM", const unsigned int aVerbosity=0, const string aTmpDirPath=".", const unsigned int aNTrials=1, const unsigned int aNSleepSeconds=0)
Constructor of the ffl class.
bool ExtractChannels(const unsigned int aGps)
Extracts channels at a given GPS time.
Definition ffl.cc:126
unsigned int GetChannelSampling(const string aChannelName)
Returns the sampling rate of a given channel [Hz].
Definition ffl.h:128
GwollumPlot * GP
Plotting structure.
Definition ffl.h:224
unsigned int nsleepsec
Number of seconds between trials.
Definition ffl.h:213
vector< string > ffl_framefile
Frame file path.
Definition ffl.h:228
unsigned int GetChannelSampling(const string aChannelName, unsigned int &aChannelIndex)
Returns the sampling rate of a given channel [Hz].
Definition ffl.h:114
double * GetData(unsigned int &aSize, const string aChannelName, const double aGpsStart, const double aGpsEnd, const double aMissing=999.0)
Returns a data vector for a given channel and a GPS range.
Definition ffl.cc:238
TGraph * PlotData(const string aChannelName, const double aGpsStart, const double aGpsEnd)
Plots a data vector time series.
Definition ffl.cc:373
void SetPlotName(const string aName)
Sets a new name for the plotting structure.
Definition ffl.cc:116
vector< unsigned int > sampling
List of sampling frequencies.
Definition ffl.h:221
bool GetStatus(void)
Returns the class status.
Definition ffl.h:77
string fWoFrameFile
Path to working frame file (always FFL).
Definition ffl.h:210
Monitor * mon
Class status.
Definition ffl.h:208
Segments * seg
Segments covered by the ffl file.
Definition ffl.h:216
string GetInputFfl(void)
Returns the path to the input frame file list.
Definition ffl.h:88
bool PrintChannels(const unsigned int aGps=0)
Prints the list of channels at a given GPS time.
Definition ffl.h:138
string srandint
Random integer string.
Definition ffl.h:211