GET library
|
#include <GETRCoBoDB.hh>
Public Member Functions | |
Constructors, affectation, destructor | |
GETRCoBoDB (const string &dbfile="", const string &rdir="") | |
virtual | ~GETRCoBoDB () |
Data base creation | |
virtual void | Empty () |
int | Init (const string &dbfile, const string &rdir="", bool force=false) |
Access to base data | |
const string & | GetDefinitionFile () const |
void | SetDataRootDirectory (const string &dir) |
const string & | GetDataRootDirectory () const |
GETRCoBoDBData * | GetData (const string &ser_pat, const string &file_pat) |
GETRCoBoDBDataList | GetDataList (const string &ser_pat) |
string | GetRunFile (const string &ser_pat, const string &file_pat) |
GStringList | GetRunList (const string &ser_pat, const string &file_pat) |
ROOT related functions | |
ClassDef (GETRCoBoDB, 0) | |
Protected Attributes | |
string | data_file |
Data-base summary file. | |
string | root_dir |
Base directory for run files. | |
Private Member Functions | |
GObject (GETRCoBoDB) | |
This class defines a data-base for Reduced-CoBo run files.
GETRCoBoDB::GETRCoBoDB | ( | const string & | dbfile = "" , |
const string & | rdir = "" |
||
) |
|
virtual |
Reduced CoBo run data-base destructor.
GETRCoBoDB::ClassDef | ( | GETRCoBoDB | , |
0 | |||
) |
for use within ROOT.
|
virtual |
GETRCoBoDBData * GETRCoBoDB::GetData | ( | const string & | ser_pat, |
const string & | file_pat | ||
) |
Find and return the pointer to a data, looking for the directory and file pattern.
ser_pat | run serie identifier pattern |
file_pat | file identifier pattern |
Referenced by GetRunFile(), and GetRunList().
GETRCoBoDBDataList GETRCoBoDB::GetDataList | ( | const string & | ser_pat | ) |
Return a list of data corresponding to the directory identifier.
ser_pat | run serie identifier pattern |
|
inline |
Return the base directory for run files.
References root_dir.
|
inline |
Return the summary file used to build the data base.
References data_file.
string GETRCoBoDB::GetRunFile | ( | const string & | ser_pat, |
const string & | file_pat | ||
) |
Get a run file name from the directory and the file identifiers.
ser_pat | run serie identifier pattern |
file_pat | file identifier pattern |
References GetData(), and GETRCoBoDBData::GetRunList().
GStringList GETRCoBoDB::GetRunList | ( | const string & | ser_pat, |
const string & | file_pat | ||
) |
Get the list of run file names from the directory and the file identifiers.
ser_pat | run serie identifier pattern |
file_pat | file identifier pattern |
References GetData(), and GETRCoBoDBData::GetRunList().
|
private |
Macro from GCpp library that defines the following functions:
int GETRCoBoDB::Init | ( | const string & | dbfile, |
const string & | rdir = "" , |
||
bool | force = false |
||
) |
Initilize the R-CoBo data-base.
dbfile | summary file |
rdir | run files root directory |
force | force to re-read if it was already set with same files |
References data_file, GETRCoBoDBData::delay, GETRCoBoDBData::dir_id, Empty(), GETRCoBoDBData::file_id, GETRCoBoDBData::GetRunFiles(), GETRCoBoDBData::peaking_time, GETRCoBoDBData::pulser, GETRCoBoDBData::range, root_dir, GETRCoBoDBData::run_dir, GETRCoBoDBData::sample_dim, GETRCoBoDBData::sample_dt, and GETRCoBoDBData::serie_id.
Referenced by GETRCoBoDB().
|
inline |