/[PAMELA software]/YodaProfiler/inc/PamelaDBOperations.h
ViewVC logotype

Diff of /YodaProfiler/inc/PamelaDBOperations.h

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

revision 1.8 by mocchiut, Fri Oct 20 11:39:31 2006 UTC revision 1.15 by mocchiut, Tue Apr 17 12:06:47 2007 UTC
# Line 57  class PamelaDBOperations { Line 57  class PamelaDBOperations {
57      UInt_t id;      UInt_t id;
58      UInt_t idroot;      UInt_t idroot;
59      UInt_t pktfirst;      UInt_t pktfirst;
60      ULong64_t obtfirst;      UInt_t obtfirst;
61      ULong64_t upperobt;      UInt_t ppktfirst;
62      UInt_t upperpkt;      UInt_t pobtfirst;
63        Long64_t upperobt;
64        Long64_t upperpkt;
65      UInt_t upperentry;      UInt_t upperentry;
66      Int_t rtev;      Int_t rtev;
67      Int_t rhev;      Int_t rhev;
# Line 83  class PamelaDBOperations { Line 85  class PamelaDBOperations {
85      TString tlefilename;      TString tlefilename;
86                    
87      // flag to control profiler actions      // flag to control profiler actions
88        Bool_t STATIC;
89      Bool_t INSERT_RAW;      Bool_t INSERT_RAW;
90      Bool_t INSERT_ROOT;      Bool_t INSERT_ROOT;
91      Bool_t VALIDATE;      Bool_t VALIDATE;
92        Bool_t NOFRAG;
93        Bool_t AUTOBOOT;
94            
95      TDatime *clean_time;      TDatime *clean_time;
96            
# Line 150  class PamelaDBOperations { Line 155  class PamelaDBOperations {
155      void FillClass(Bool_t mishead, Bool_t mistrail, UInt_t firstev, UInt_t lastev);      void FillClass(Bool_t mishead, Bool_t mistrail, UInt_t firstev, UInt_t lastev);
156      void HandleTRK_CALIB(Bool_t pk1, Bool_t pk2);      void HandleTRK_CALIB(Bool_t pk1, Bool_t pk2);
157      //      //
158        void RemoveCALIBS();
159        void ValidationOFF();
160        void ReArrangeRUNS();
161        void RemoveRUNS();
162        void RemoveFILES();
163        //
164      Bool_t IsDebug(){return(debug);};      Bool_t IsDebug(){return(debug);};
165      Bool_t IsRunAlreadyInserted();      Bool_t IsRunAlreadyInserted();
166      Bool_t IsRunConsistent(Bool_t mishead, Bool_t mistrail, UInt_t &firstev, UInt_t &lastev);      Bool_t IsRunConsistent(Bool_t mishead, Bool_t mistrail, UInt_t &firstev, UInt_t &lastev);
167        Bool_t AutoBoot(){return(AUTOBOOT);};
168      //      //
169      Bool_t MissingTRK_CALIB(UInt_t t1,UInt_t t2);      Bool_t MissingTRK_CALIB(UInt_t t1,UInt_t t2);
170      //      //
171      UInt_t PKT(UInt_t pkt_num);      Long64_t PKT(UInt_t pkt_num);
172      //      //
173      ULong64_t OBT(UInt_t obt);      Long64_t OBT(UInt_t obt);
174      //      //
175      UInt_t AssignRunID();      UInt_t AssignRunID();
176    
# Line 168  class PamelaDBOperations { Line 180  class PamelaDBOperations {
180    
181   public:   public:
182      //      //
183      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      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,UInt_t dwinput, Bool_t staticp); // constructor
184      //      //
185      void Close(); // destructor      void Close(); // destructor
186      //      //
# Line 188  class PamelaDBOperations { Line 200  class PamelaDBOperations {
200      void SetNOBOOT(Bool_t noboot);      void SetNOBOOT(Bool_t noboot);
201      void SetOlderThan(Long64_t oldthan);      void SetOlderThan(Long64_t oldthan);
202      void SetTLEPath(TString str);      void SetTLEPath(TString str);
203      void SetOrbitNo();      void SetOrbitNo(UInt_t dwinput);
204        void SetNoFrag(Bool_t nf);
205        void SetAutoBoot(Bool_t nf);
206      //      //
207      Bool_t SetID_RAW();      Bool_t SetID_RAW();
208      //      //
# Line 208  class PamelaDBOperations { Line 222  class PamelaDBOperations {
222      const PacketType* GetPacketType(const char* type);      const PacketType* GetPacketType(const char* type);
223      //      //
224      TString GetRawFile(){return((TString)gSystem->BaseName(filerawname.Data()));};      TString GetRawFile(){return((TString)gSystem->BaseName(filerawname.Data()));};
     TString GetRawPath(){return((TString)gSystem->DirName(filerawname.Data())+'/');};  
225      TString GetRootFile(){return((TString)gSystem->BaseName(filerootname.Data()));};      TString GetRootFile(){return((TString)gSystem->BaseName(filerootname.Data()));};
     TString GetRootPath(){return((TString)gSystem->DirName(filerootname.Data())+'/');};  
226      TString GetRootName(){return(filerootname);};      TString GetRootName(){return(filerootname);};
227      TString GetRawName(){return(filerawname);};      TString GetRawName(){return(filerawname);};
228        TString GetRawPath();
229        TString GetRootPath();
230                    
231          const char*  GetCleanTime(){return clean_time->AsSQLString();};      const char*  GetCleanTime(){return clean_time->AsSQLString();};
232      //      //
233      // Functions      // Functions
234      //      //
# Line 227  class PamelaDBOperations { Line 241  class PamelaDBOperations {
241      Int_t insertTRK_CALIB();      Int_t insertTRK_CALIB();
242      Int_t insertS4_CALIB();      Int_t insertS4_CALIB();
243      Int_t CleanGL_RUN_FRAGMENTS();      Int_t CleanGL_RUN_FRAGMENTS();
244        Int_t CleanGL_RUN_FRAGMENTS(TString fcleanfile);
245      Int_t ValidateRuns();      Int_t ValidateRuns();
246        Int_t ValidateRuns(TString valfile);
247      Int_t assignVALIDATION(UInt_t ,Bool_t );      Int_t assignVALIDATION(UInt_t ,Bool_t );
248        Int_t removeFile(TString rootfilename);
249      //      //
250      //    void OpenFile();      //    void OpenFile();
251      void CheckValidate(Long64_t olderthan);      void CheckValidate(Long64_t olderthan);
# Line 236  class PamelaDBOperations { Line 253  class PamelaDBOperations {
253      void CheckFile();      void CheckFile();
254      //      //
255                    
256        Bool_t NoFrag(){return(NOFRAG);};
257      Bool_t InsertRoot(){return(INSERT_ROOT);};      Bool_t InsertRoot(){return(INSERT_ROOT);};
258      Bool_t InsertRaw(){return(INSERT_RAW);};      Bool_t InsertRaw(){return(INSERT_RAW);};
259      Bool_t Validate(){return(VALIDATE);};      Bool_t Validate(){return(VALIDATE);};
260    
261      // Functions for TLE      // Functions for TLE
262      Int_t populateTLE();      Int_t populateTLE();
263    
264        UInt_t ValidateTrkCalib( CalibTrk1Event* calibtrk , EventHeader* h);
265        UInt_t ValidateTrkCalib( CalibTrk2Event* calibtrk , EventHeader* h){return ValidateTrkCalib((CalibTrk1Event*)calibtrk,h); };
266    
267        UInt_t Check();
268                    
269  };  };
270  #endif /* PAMELA_DB_OPERATIONS_H */  #endif /* PAMELA_DB_OPERATIONS_H */

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.23