/[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.6 by mocchiut, Tue Oct 17 15:19:56 2006 UTC revision 1.14 by mocchiut, Wed Feb 14 10:54:57 2007 UTC
# Line 21  Line 21 
21    
22  #include <GLTables.h>  #include <GLTables.h>
23    
24  #include <cTle.h>  #include <sgp4.h>
25    
26  using namespace pamela;  using namespace pamela;
27    
# Line 49  class PamelaDBOperations { Line 49  class PamelaDBOperations {
49      UInt_t tsync;      UInt_t tsync;
50      UInt_t toffset;      UInt_t toffset;
51      //      //
52  //    Long64_t olderthan;      //    Long64_t olderthan;
53        UInt_t dworbit;
54      //      //
55      UInt_t BOOTNO;      UInt_t BOOTNO;
56      UInt_t obt0;      UInt_t obt0;
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 81  class PamelaDBOperations { Line 84  class PamelaDBOperations {
84      // Path to tle file      // Path to tle file
85      TString tlefilename;      TString tlefilename;
86                    
87          // flag to control profiler actions      // flag to control profiler actions
88          Bool_t INSERT_RAW;      Bool_t INSERT_RAW;
89          Bool_t INSERT_ROOT;      Bool_t INSERT_ROOT;
90          Bool_t VALIDATE;      Bool_t VALIDATE;
91                Bool_t NOFRAG;
92          TDatime *clean_time;      Bool_t AUTOBOOT;
93                        
94        TDatime *clean_time;
95        
96      //      //
97      typedef std::list<const char*> pcksList;      typedef std::list<const char*> pcksList;
98      static void getPacketsNames(pcksList &pcksNames){      static void getPacketsNames(pcksList &pcksNames){
# Line 149  class PamelaDBOperations { Line 154  class PamelaDBOperations {
154      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);
155      void HandleTRK_CALIB(Bool_t pk1, Bool_t pk2);      void HandleTRK_CALIB(Bool_t pk1, Bool_t pk2);
156      //      //
157        void RemoveCALIBS();
158        void ValidationOFF();
159        void ReArrangeRUNS();
160        void RemoveRUNS();
161        void RemoveFILES();
162        //
163      Bool_t IsDebug(){return(debug);};      Bool_t IsDebug(){return(debug);};
164      Bool_t IsRunAlreadyInserted();      Bool_t IsRunAlreadyInserted();
165      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);
166        Bool_t AutoBoot(){return(AUTOBOOT);};
167      //      //
168      Bool_t MissingTRK_CALIB(UInt_t t1,UInt_t t2);      Bool_t MissingTRK_CALIB(UInt_t t1,UInt_t t2);
169      //      //
170      UInt_t PKT(UInt_t pkt_num);      Long64_t PKT(UInt_t pkt_num);
171      //      //
172      ULong64_t OBT(UInt_t obt);      Long64_t OBT(UInt_t obt);
173      //      //
174        UInt_t AssignRunID();
175    
176      // GL_TLE related functions      // GL_TLE related functions
177      int insertTle(cTle*);      int insertTle(cTle*);
# Line 166  class PamelaDBOperations { Line 179  class PamelaDBOperations {
179    
180   public:   public:
181      //      //
182      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); // constructor
183      //      //
184      void Close(); // destructor      void Close(); // destructor
185      //      //
# Line 186  class PamelaDBOperations { Line 199  class PamelaDBOperations {
199      void SetNOBOOT(Bool_t noboot);      void SetNOBOOT(Bool_t noboot);
200      void SetOlderThan(Long64_t oldthan);      void SetOlderThan(Long64_t oldthan);
201      void SetTLEPath(TString str);      void SetTLEPath(TString str);
202        void SetOrbitNo(UInt_t dwinput);
203        void SetNoFrag(Bool_t nf);
204        void SetAutoBoot(Bool_t nf);
205      //      //
206      Bool_t SetID_RAW();      Bool_t SetID_RAW();
207      //      //
# Line 211  class PamelaDBOperations { Line 227  class PamelaDBOperations {
227      TString GetRootName(){return(filerootname);};      TString GetRootName(){return(filerootname);};
228      TString GetRawName(){return(filerawname);};      TString GetRawName(){return(filerawname);};
229                    
230          const char*  GetCleanTime(){return clean_time->AsSQLString();};      const char*  GetCleanTime(){return clean_time->AsSQLString();};
231      //      //
232      // Functions      // Functions
233      //      //
# Line 224  class PamelaDBOperations { Line 240  class PamelaDBOperations {
240      Int_t insertTRK_CALIB();      Int_t insertTRK_CALIB();
241      Int_t insertS4_CALIB();      Int_t insertS4_CALIB();
242      Int_t CleanGL_RUN_FRAGMENTS();      Int_t CleanGL_RUN_FRAGMENTS();
243        Int_t CleanGL_RUN_FRAGMENTS(TString fcleanfile);
244      Int_t ValidateRuns();      Int_t ValidateRuns();
245        Int_t ValidateRuns(TString valfile);
246      Int_t assignVALIDATION(UInt_t ,Bool_t );      Int_t assignVALIDATION(UInt_t ,Bool_t );
247        Int_t removeFile(TString rootfilename);
248      //      //
249      //    void OpenFile();      //    void OpenFile();
250      void CheckValidate(Long64_t olderthan);      void CheckValidate(Long64_t olderthan);
# Line 233  class PamelaDBOperations { Line 252  class PamelaDBOperations {
252      void CheckFile();      void CheckFile();
253      //      //
254                    
255        Bool_t NoFrag(){return(NOFRAG);};
256      Bool_t InsertRoot(){return(INSERT_ROOT);};      Bool_t InsertRoot(){return(INSERT_ROOT);};
257      Bool_t InsertRaw(){return(INSERT_RAW);};      Bool_t InsertRaw(){return(INSERT_RAW);};
258      Bool_t Validate(){return(VALIDATE);};      Bool_t Validate(){return(VALIDATE);};
259    
260      // Functions for TLE      // Functions for TLE
261      Int_t populateTLE();      Int_t populateTLE();
262    
263        UInt_t ValidateTrkCalib( CalibTrk1Event* calibtrk , EventHeader* h);
264        UInt_t ValidateTrkCalib( CalibTrk2Event* calibtrk , EventHeader* h){return ValidateTrkCalib((CalibTrk1Event*)calibtrk,h); };
265    
266        UInt_t Check();
267                    
268  };  };
269  #endif /* PAMELA_DB_OPERATIONS_H */  #endif /* PAMELA_DB_OPERATIONS_H */

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.23