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

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

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

revision 1.1 by mocchiut, Tue Sep 23 07:20:32 2008 UTC revision 1.8 by mocchiut, Mon Dec 28 08:39:23 2009 UTC
# Line 19  Line 19 
19  #include <varDump/VarDumpEvent.h>  #include <varDump/VarDumpEvent.h>
20  #include <varDump/VarDumpRecord.h>  #include <varDump/VarDumpRecord.h>
21  #include <physics/S4/S4Event.h>  #include <physics/S4/S4Event.h>
22    #include <endrun/PhysEndRunEvent.h>
23    #include <endrun/TBEndRun.h>
24    
25  #include <GLTables.h>  #include <GLTables.h>
26    
# Line 89  class PamelaDBOperations { Line 91  class PamelaDBOperations {
91                    
92      // flag to control profiler actions      // flag to control profiler actions
93      Bool_t STATIC;      Bool_t STATIC;
94        Bool_t KEEPENV;
95      Bool_t INSERT_RAW;      Bool_t INSERT_RAW;
96      Bool_t INSERT_ROOT;      Bool_t INSERT_ROOT;
97      Bool_t VALIDATE;      Bool_t VALIDATE;
98      Bool_t NOFRAG;      Bool_t NOFRAG;
99      Bool_t AUTOBOOT;      Bool_t AUTOBOOT;
100      Bool_t PEDANTIC;      Bool_t PEDANTIC;
101        Bool_t RELAXED;
102    
103      // flags and variables for chewbacca      // flags and variables for chewbacca
104      Bool_t chewbacca;      Bool_t chewbacca;
105      UInt_t chID;      UInt_t chID;
106      //      //
107        TString tag;
108        TString chiby;
109        //
110      UInt_t chpktinit;      UInt_t chpktinit;
111      UInt_t chpktfinal;      UInt_t chpktfinal;
112      UInt_t chobtinit;      UInt_t chobtinit;
113      UInt_t chobtfinal;      UInt_t chobtfinal;
114        UInt_t chrtinit;
115      Int_t nrhbef;      Int_t nrhbef;
116      Int_t nrhaf;      Int_t nrhaf;
117      Int_t nrtbef;      Int_t nrtbef;
# Line 181  class PamelaDBOperations { Line 189  class PamelaDBOperations {
189      void FillClass();      void FillClass();
190      void FillClass(Bool_t mishead, Bool_t mistrail, Int_t firstev, Int_t lastev);      void FillClass(Bool_t mishead, Bool_t mistrail, Int_t firstev, Int_t lastev);
191      void HandleTRK_CALIB(Bool_t pk1, Bool_t pk2);      void HandleTRK_CALIB(Bool_t pk1, Bool_t pk2);
192        void HandleTRK_CALIB(GL_TRK_CALIB*);
193      //      //
194      void RemoveCALIBS();      void RemoveCALIBS();
195      void ValidationOFF();      void ValidationOFF();
196      void ReArrangeRUNS();      void ReArrangeRUNS();
197      void RemoveRUNS();      void RemoveRUNS();
198      void RemoveFILES();      void RemoveFILES(UInt_t idtsy);
199      //      //
200      Bool_t IsDebug(){return(debug);};      Bool_t IsDebug(){return(debug);};
201      Bool_t IsRunAlreadyInserted();      Bool_t IsRunAlreadyInserted();
202      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);
203      Bool_t AutoBoot(){return(AUTOBOOT);};      Bool_t AutoBoot(){return(AUTOBOOT);};
204      //      //
205      Bool_t MissingTRK_CALIB(UInt_t t1,UInt_t t2);      //    Bool_t MissingTRK_CALIB(UInt_t t1,UInt_t t2);
206        UInt_t MissingTRK_CALIB(UInt_t t1,UInt_t t2);
207      //      //
208      Long64_t PKT(UInt_t pkt_num);      Long64_t PKT(UInt_t pkt_num);
209      //      //
# Line 207  class PamelaDBOperations { Line 217  class PamelaDBOperations {
217    
218   public:   public:
219      //      //
220      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, Bool_t gpamela); // 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, Bool_t gpamela, Bool_t keepenv); // constructor
221      //      //
222      void Close(); // destructor      void Close(); // destructor
223      //      //
# Line 233  class PamelaDBOperations { Line 243  class PamelaDBOperations {
243      void SetNoFrag(Bool_t nf);      void SetNoFrag(Bool_t nf);
244      void SetAutoBoot(Bool_t nf);      void SetAutoBoot(Bool_t nf);
245      void SetPedantic(Bool_t pd);      void SetPedantic(Bool_t pd);
246        void SetRelaxed(Bool_t pd){ if ( pd ) printf(" WARNING: USING RELAXED CONDITIONS, ARE YOU SURE ON WHAT YOU'RE DOING? \n"); RELAXED=pd;};
247        void SetPhysEndRunVariables();
248        //
249        void SetTag(TString ntag){tag=ntag;};
250      //      //
251      Bool_t SetID_RAW();      Bool_t SetID_RAW();
252      //      //
# Line 254  class PamelaDBOperations { Line 268  class PamelaDBOperations {
268      //      //
269      TString GetRawFile(){return((TString)gSystem->BaseName(filerawname.Data()));};      TString GetRawFile(){return((TString)gSystem->BaseName(filerawname.Data()));};
270      TString GetRootFile(){return((TString)gSystem->BaseName(filerootname.Data()));};      TString GetRootFile(){return((TString)gSystem->BaseName(filerootname.Data()));};
271      TString GetRootName(){return(filerootname);};      TString GetRootName(){return((TString)gSystem->ExpandPathName(filerootname.Data()));};
272      TString GetRawName(){return(filerawname);};      TString GetRawName(){return(filerawname);};
273      TString GetRawPath();      TString GetRawPath();
274      TString GetRootPath();      TString GetRootPath();
# Line 265  class PamelaDBOperations { Line 279  class PamelaDBOperations {
279      //      //
280      Int_t assignBOOT_NUMBER();      Int_t assignBOOT_NUMBER();
281      Int_t insertPamelaRootFile();      Int_t insertPamelaRootFile();
282        Int_t insertPamelaRootFile(GL_ROOT*);
283      Int_t insertPamelaRawFile();      Int_t insertPamelaRawFile();
284        Int_t insertPamelaRawFile(GL_RAW*);
285      Int_t insertPamelaGL_TIMESYNC();      Int_t insertPamelaGL_TIMESYNC();
286      Int_t insertPamelaRUN();      Int_t insertPamelaRUN();
287      Int_t insertCALO_CALIB();      Int_t insertCALO_CALIB();
# Line 279  class PamelaDBOperations { Line 295  class PamelaDBOperations {
295      Int_t ValidateRuns();      Int_t ValidateRuns();
296      Int_t ValidateRuns(TString valfile);      Int_t ValidateRuns(TString valfile);
297      Int_t assignVALIDATION(UInt_t ,Bool_t );      Int_t assignVALIDATION(UInt_t ,Bool_t );
298        Int_t assignVALIDATION(UInt_t ,UInt_t );
299      Int_t removeFile(TString rootfilename);      Int_t removeFile(TString rootfilename);
300      //      //
301        Bool_t IsChewbacca(){return chewbacca;};
302      //    void OpenFile();      //    void OpenFile();
303      void CheckValidate(Long64_t olderthan);      void CheckValidate(Long64_t olderthan);
304      void CheckConnection();      void CheckConnection();
# Line 289  class PamelaDBOperations { Line 307  class PamelaDBOperations {
307      void LockTables();      void LockTables();
308      void UnLockTables();      void UnLockTables();
309      //      //
310        void NotChewbacca(UInt_t boot, UInt_t tsync, UInt_t obt0, Bool_t gpamela);
311        //
312                    
313      Bool_t NoFrag(){return(NOFRAG);};      Bool_t NoFrag(){return(NOFRAG);};
314      Bool_t InsertRoot(){return(INSERT_ROOT);};      Bool_t InsertRoot(){return(INSERT_ROOT);};
# Line 298  class PamelaDBOperations { Line 318  class PamelaDBOperations {
318      // Functions for TLE      // Functions for TLE
319      Int_t populateTLE();      Int_t populateTLE();
320    
321      UInt_t ValidateTrkCalib( CalibTrk1Event* calibtrk , EventHeader* h);      UInt_t ValidateTrkCalib( CalibTrk1Event* calibtrk , EventHeader* h, TFile* file);
322      UInt_t ValidateTrkCalib( CalibTrk2Event* calibtrk , EventHeader* h){return ValidateTrkCalib((CalibTrk1Event*)calibtrk,h); };      UInt_t ValidateTrkCalib( CalibTrk2Event* calibtrk , EventHeader* h, TFile* file){return ValidateTrkCalib((CalibTrk1Event*)calibtrk,h,file); };
323    
324        UInt_t ValidateTrkCalib( CalibTrk1Event* calibtrk , EventHeader* h){return ValidateTrkCalib((CalibTrk1Event*)calibtrk,h,file); };
325        UInt_t ValidateTrkCalib( CalibTrk2Event* calibtrk , EventHeader* h){return ValidateTrkCalib((CalibTrk1Event*)calibtrk,h,file); };
326    
327      UInt_t Check();      UInt_t Check();
328      UInt_t Check(UInt_t from, UInt_t to);      UInt_t Check(UInt_t from, UInt_t to);

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

  ViewVC Help
Powered by ViewVC 1.1.23