GET library
GETRCoBoDB Class Reference

#include <GETRCoBoDB.hh>

Inheritance diagram for GETRCoBoDB:

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
 
GETRCoBoDBDataGetData (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)
 

Detailed Description

This class defines a data-base for Reduced-CoBo run files.

Constructor & Destructor Documentation

GETRCoBoDB::GETRCoBoDB ( const string &  dbfile = "",
const string &  rdir = "" 
)

Reduced CoBo run data-base constructor.

Parameters
dbfilerun files summary
rdirrun files root directory

References data_file, Init(), and root_dir.

GETRCoBoDB::~GETRCoBoDB ( )
virtual

Reduced CoBo run data-base destructor.

Member Function Documentation

GETRCoBoDB::ClassDef ( GETRCoBoDB  ,
 
)

for use within ROOT.

void GETRCoBoDB::Empty ( )
virtual

Redefinition from the list template class.

References data_file.

Referenced by Init().

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.

Parameters
ser_patrun serie identifier pattern
file_patfile identifier pattern

Referenced by GetRunFile(), and GetRunList().

GETRCoBoDBDataList GETRCoBoDB::GetDataList ( const string &  ser_pat)

Return a list of data corresponding to the directory identifier.

Parameters
ser_patrun serie identifier pattern
const string & GETRCoBoDB::GetDataRootDirectory ( ) const
inline

Return the base directory for run files.

References root_dir.

const string & GETRCoBoDB::GetDefinitionFile ( ) const
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.

Parameters
ser_patrun serie identifier pattern
file_patfile 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.

Parameters
ser_patrun serie identifier pattern
file_patfile identifier pattern

References GetData(), and GETRCoBoDBData::GetRunList().

GETRCoBoDB::GObject ( GETRCoBoDB  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
int GETRCoBoDB::Init ( const string &  dbfile,
const string &  rdir = "",
bool  force = false 
)

Initilize the R-CoBo data-base.

Parameters
dbfilesummary file
rdirrun files root directory
forceforce 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().

void GETRCoBoDB::SetDataRootDirectory ( const string &  dir)
inline

Set the base directory for run files.

Parameters
dirdirectory name

References root_dir.


The documentation for this class was generated from the following files: