--- YodaProfiler/inc/PamelaDBOperations.h 2006/09/08 14:42:48 1.3 +++ YodaProfiler/inc/PamelaDBOperations.h 2006/09/11 16:38:18 1.4 @@ -49,7 +49,7 @@ UInt_t tsync; UInt_t toffset; // - Long64_t olderthan; +// Long64_t olderthan; // UInt_t BOOTNO; UInt_t obt0; @@ -77,6 +77,14 @@ // Bool_t NOBOOT; Bool_t debug; + + // flag to control profiler actions + Bool_t INSERT_RAW; + Bool_t INSERT_ROOT; + Bool_t VALIDATE; + + TDatime *clean_time; + // typedef std::list pcksList; static void getPacketsNames(pcksList &pcksNames){ @@ -151,7 +159,7 @@ 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, Long64_t olderthan); // constructor // void Close(); // destructor // @@ -194,6 +202,8 @@ TString GetRootPath(){return((TString)gSystem->DirName(filerootname.Data())+'/');}; TString GetRootName(){return(filerootname);}; TString GetRawName(){return(filerawname);}; + + const char* GetCleanTime(){return clean_time->AsSQLString();}; // // Functions // @@ -209,8 +219,13 @@ Int_t ValidateRuns(); Int_t assignVALIDATION(UInt_t ,Bool_t ); // - void OpenFile(); - void CheckFile(); +// void OpenFile(); + void CheckConnection(); // + + Bool_t InsertRoot(){return(INSERT_ROOT);}; + Bool_t InsertRaw(){return(INSERT_RAW);}; + Bool_t Validate(){return(VALIDATE);}; + }; #endif /* PAMELA_DB_OPERATIONS_H */