50 ffl(
const string aFrameFileList,
51 const string aPlotStyle=
"GWOLLUM",
52 const int aVerbosity=0);
71 void SetPlotName(
const string aName);
80 void DefineTmpDir(
const string aTmpDirPath=
".");
94 inline void SetTrials(
const unsigned int aNTrials,
const unsigned int aNSleepSeconds){
95 ntrials = aNTrials; nsleepsec = aNSleepSeconds;
104 string Convert2Ffl(
void);
116 bool ExtractChannels(
const unsigned int aGps);
129 bool LoadFrameFile(
const unsigned int aGps=0);
144 unsigned int GetChannelSampling(
const string aChannelName,
unsigned int &aChannelIndex);
154 return GetChannelSampling(aChannelName, dummy);
163 bool res=LoadFrameFile(aGps);
164 for(
unsigned int l=0; l<channels.size(); l++)
165 cout<<channels[l]<<
" "<<sampling[l]<<endl;
175 vector <string> GetChannelList(
const string aFilter=
"");
183 bool IsChannel(
const string aChannelName);
201 double* GetData(
unsigned int &aSize,
const string aChannelName,
202 const double aGpsStart,
const double aGpsEnd,
203 const double aMissing=999.0);
213 bool PrintData(
const string aChannelName,
const double aGpsStart,
const double aGpsEnd,
string aFileName);
223 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
Manage time segment lists.
Definition: Segments.h:28
Load frame files and access data in frames.
Definition: ffl.h:34
unsigned int ntrials
Number of trials when accessing the data.
Definition: ffl.h:233
vector< string > channels
List of channels.
Definition: ffl.h:239
TGraph * G
Graph.
Definition: ffl.h:244
vector< string > ffile
List of files.
Definition: ffl.h:236
void SetTrials(const unsigned int aNTrials, const unsigned int aNSleepSeconds)
Sets the number of trials to load the frame file.
Definition: ffl.h:94
FrFile * frfile
Fr file.
Definition: ffl.h:238
bool status_OK
Class status.
Definition: ffl.h:227
ffl(const string aFrameFileList, const string aPlotStyle="GWOLLUM", const int aVerbosity=0)
Constructor of the ffl class.
string fInFrameFile
Path to input frame file list.
Definition: ffl.h:228
unsigned int GetChannelSampling(const string aChannelName)
Returns the sampling rate of a given channel [Hz].
Definition: ffl.h:152
GwollumPlot * GP
Plotting structure.
Definition: ffl.h:243
unsigned int nsleepsec
Number of seconds between trials.
Definition: ffl.h:234
unsigned int fVerbosity
Verbosity level.
Definition: ffl.h:231
vector< unsigned int > sampling
List of sampling frequencies.
Definition: ffl.h:240
string fWoFrameFile
Path to working frame file (always FFL).
Definition: ffl.h:229
string fFormat
Format frame file.
Definition: ffl.h:230
Segments * seg
Segments covered by the ffl file.
Definition: ffl.h:237
string GetInputFfl(void)
Returns the path to the input frame file list.
Definition: ffl.h:85
Segments * GetSegments(void)
Returns a pointer to the segments covered by the ffl.
Definition: ffl.h:135
bool PrintChannels(const unsigned int aGps=0)
Prints the list of channels at a given GPS time.
Definition: ffl.h:162
string srandint
Random integer string.
Definition: ffl.h:232