--- YodaProfiler/inc/PamelaDBOperations.h 2006/09/12 07:28:45 1.5 +++ YodaProfiler/inc/PamelaDBOperations.h 2006/10/17 15:19:56 1.6 @@ -3,9 +3,8 @@ #include #include -// + #include -// #include #include #include @@ -19,11 +18,12 @@ #include #include #include -// + #include -using namespace pamela; +#include +using namespace pamela; /** * Collections of Pamela specific operations over a database @@ -77,6 +77,9 @@ // Bool_t NOBOOT; Bool_t debug; + + // Path to tle file + TString tlefilename; // flag to control profiler actions Bool_t INSERT_RAW; @@ -157,9 +160,13 @@ ULong64_t OBT(UInt_t obt); // + // GL_TLE related functions + int insertTle(cTle*); + bool isTlePresent(cTle*); + public: // - PamelaDBOperations(TString host, TString user, TString password, TString filerawname, TString filerootname, UInt_t boot, UInt_t tsync, UInt_t obt0, Bool_t debug); // constructor + PamelaDBOperations(TString host, TString user, TString password, TString filerawname, TString filerootname, UInt_t boot, UInt_t tsync, UInt_t obt0, Bool_t debug, TString tlefilename); // constructor // void Close(); // destructor // @@ -178,6 +185,7 @@ void SetCommonGLRUN(UInt_t absth, UInt_t abstt); void SetNOBOOT(Bool_t noboot); void SetOlderThan(Long64_t oldthan); + void SetTLEPath(TString str); // Bool_t SetID_RAW(); // @@ -225,9 +233,12 @@ void CheckFile(); // - Bool_t InsertRoot(){return(INSERT_ROOT);}; - Bool_t InsertRaw(){return(INSERT_RAW);}; - Bool_t Validate(){return(VALIDATE);}; + Bool_t InsertRoot(){return(INSERT_ROOT);}; + Bool_t InsertRaw(){return(INSERT_RAW);}; + Bool_t Validate(){return(VALIDATE);}; + + // Functions for TLE + Int_t populateTLE(); }; #endif /* PAMELA_DB_OPERATIONS_H */