/[PAMELA software]/chewbacca/YodaProfiler/inc/GLTables.h
ViewVC logotype

Diff of /chewbacca/YodaProfiler/inc/GLTables.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by mocchiut, Tue Jan 27 11:38:12 2009 UTC revision 1.9 by mocchiut, Tue Dec 15 10:23:28 2009 UTC
# Line 6  Line 6 
6  #include <TSQLServer.h>  #include <TSQLServer.h>
7  #include <TSQLRow.h>  #include <TSQLRow.h>
8  #include <TSQLResult.h>  #include <TSQLResult.h>
9    #include <TCanvas.h>
10    #include <TDirectory.h>
11    #include <TH1D.h>
12    #include <TH2D.h>
13  #include <TSystem.h>  #include <TSystem.h>
14  #include <GLTablesStruct.h>  #include <GLTablesStruct.h>
15  #include <EventHeader.h>  #include <EventHeader.h>
# Line 33  class GL_TABLES : public TObject { Line 37  class GL_TABLES : public TObject {
37    
38   public:   public:
39      //      //
40      TString mh;      TString mh; //!
41      TString mp;      TString mp; //!
42      TString mu;      TString mu; //!
43      GL_TABLES();        GL_TABLES();  
44      GL_TABLES(TString, TString, TString);      GL_TABLES(TString, TString, TString);
45      //      //
46      void Set(TString, TString, TString);      void Set(TString, TString, TString);
47      //      //
48      Bool_t IsConnected(TSQLServer *&);      //    Bool_t IsConnected(TSQLServer *&);
49        Bool_t IsConnected(TSQLServer *);
50      //      //
51      void ResetCounters();      void ResetCounters();
52      void AddQ();      void AddQ();
# Line 58  class GL_TABLES : public TObject { Line 63  class GL_TABLES : public TObject {
63      //      //
64      GL_TABLES *GetGLTABLES(){return this;};      GL_TABLES *GetGLTABLES(){return this;};
65      //      //
66      ClassDef(GL_TABLES,2);      ClassDef(GL_TABLES,0); // 2
67  };  };
68    
69  // ==================================================================  // ==================================================================
70    class Q2TH : public TObject {
71     private:
72        TSQLServer *dbc;
73        TSQLResult *pResult;
74        TSQLRow *Row;
75        TString fh;
76        TString fp;
77        TString fu;
78        
79     public:
80        
81        Q2TH(TString h="$PAM_DBHOST", TString u="$PAM_DBUSER", TString p="$PAM_DBPSW");
82        ~Q2TH(){ if ( dbc ) dbc->Close(); delete dbc; };
83        
84        TObject *Draw(TString query, Bool_t verbose = false, TString hname="q2th");
85        void Open(TString h="$PAM_DBHOST", TString u="$PAM_DBUSER", TString p="$PAM_DBPSW");
86        void Close(){ if ( dbc ) dbc->Close(); delete dbc; };
87    
88        ClassDef(Q2TH,1); // 2
89    
90    };
91    
92  /**  /**
93   * \brief Class to store GL_RUN data   * \brief Class to store GL_RUN data

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.23