GET library
GETRCoBoDB.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GETRCoBoDB.hh
3  *
4  * Include file for the GETRCoBoDB class.
5  */
6 //======================================================================
7 
8 
9 #ifndef GET_R_COBO_DB_HH
10 #define GET_R_COBO_DB_HH
11 
12 //----------------------------------------------------------------------
13 #include "GETRCoBo.hh"
14 #include "GETRCoBoDBData.hh"
15 #include "GListT.hh"
16 
17 //! Definition of a raw list of base data
18 typedef GListT<GETRCoBoDBData> GETRCoBoDBDataList;
19 
20 //======================================================================
21 /*! \class GETRCoBoDB
22  *
23  * This class defines a data-base for Reduced-CoBo run files.
24  *
25  */
26 class GETRCoBoDB : public GListT<GETRCoBoDBData>
27 {
28  //------------------------------------------------------------
29  /*! \object_doc */
31  //------------------------------------------------------------
32 
33  protected:
34  string root_dir; ///< Base directory for run files
35  string data_file; ///< Data-base summary file
36 
37  public:
38 
39  //----------------------------------------------------------
40  /** @name Constructors, affectation, destructor */
41  //@{
42  GETRCoBoDB ( const string & dbfile = "", const string & rdir = "" );
43  virtual ~GETRCoBoDB ( );
44  //@}
45 
46 
47  //----------------------------------------------------------
48  /** @name Data base creation */
49  //@{
50  virtual void Empty ( );
51 
52  int Init ( const string & dbfile, const string & rdir = "", bool force = false );
53  //@}
54 
55 
56  //----------------------------------------------------------
57  /** @name Access to base data */
58  //@{
59  const string & GetDefinitionFile ( ) const; // inline
60 
61  void SetDataRootDirectory ( const string & dir ); // inline
62  const string & GetDataRootDirectory ( ) const; // inline
63 
64  GETRCoBoDBData * GetData ( const string & ser_pat, const string & file_pat );
65  GETRCoBoDBDataList GetDataList ( const string & ser_pat );
66 
67  string GetRunFile ( const string & ser_pat, const string & file_pat );
68  GStringList GetRunList ( const string & ser_pat, const string & file_pat );
69  //@}
70 
71 
72 
73  //----------------------------------------------------------
74  /** @name ROOT related functions */
75  //@{
76  public:
77  /*! for use within ROOT.*/
79  //@}
80 };
81 
82 //----------------------------------------------------------------------
83 // Inline functions
84 #include "icc/GETRCoBoDB.icc"
85 
86 //======================================================================
87 #endif
virtual ~GETRCoBoDB()
Definition: GETRCoBoDB.cpp:30
ClassDef(GETRCoBoDB, 0)
GStringList GetRunList(const string &ser_pat, const string &file_pat)
Definition: GETRCoBoDB.cpp:291
virtual void Empty()
Definition: GETRCoBoDB.cpp:39
const string & GetDefinitionFile() const
Definition: GETRCoBoDB.icc:9
GETRCoBoDB(const string &dbfile="", const string &rdir="")
Definition: GETRCoBoDB.cpp:20
string data_file
Data-base summary file.
Definition: GETRCoBoDB.hh:35
Definition: GETRCoBoDBData.hh:24
void SetDataRootDirectory(const string &dir)
Definition: GETRCoBoDB.icc:15
const string & GetDataRootDirectory() const
Definition: GETRCoBoDB.icc:19
GObject(GETRCoBoDB)
string root_dir
Base directory for run files.
Definition: GETRCoBoDB.hh:34
GETRCoBoDBData * GetData(const string &ser_pat, const string &file_pat)
Definition: GETRCoBoDB.cpp:196
Definition: GETRCoBoDB.hh:26
GETRCoBoDBDataList GetDataList(const string &ser_pat)
Definition: GETRCoBoDB.cpp:223
int Init(const string &dbfile, const string &rdir="", bool force=false)
Definition: GETRCoBoDB.cpp:51
string GetRunFile(const string &ser_pat, const string &file_pat)
Definition: GETRCoBoDB.cpp:254
GListT< GETRCoBoDBData > GETRCoBoDBDataList
Definition of a raw list of base data.
Definition: GETRCoBoDB.hh:18