/[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.4 by mocchiut, Tue Nov 4 09:44:48 2008 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;
# Line 100  class PamelaDBOperations { Line 103  class PamelaDBOperations {
103      Bool_t chewbacca;      Bool_t chewbacca;
104      UInt_t chID;      UInt_t chID;
105      //      //
106        TString tag;
107        TString chiby;
108        //
109      UInt_t chpktinit;      UInt_t chpktinit;
110      UInt_t chpktfinal;      UInt_t chpktfinal;
111      UInt_t chobtinit;      UInt_t chobtinit;
# Line 181  class PamelaDBOperations { Line 187  class PamelaDBOperations {
187      void FillClass();      void FillClass();
188      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);
189      void HandleTRK_CALIB(Bool_t pk1, Bool_t pk2);      void HandleTRK_CALIB(Bool_t pk1, Bool_t pk2);
190        void HandleTRK_CALIB(GL_TRK_CALIB*);
191      //      //
192      void RemoveCALIBS();      void RemoveCALIBS();
193      void ValidationOFF();      void ValidationOFF();
# Line 207  class PamelaDBOperations { Line 214  class PamelaDBOperations {
214    
215   public:   public:
216      //      //
217      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
218      //      //
219      void Close(); // destructor      void Close(); // destructor
220      //      //
# Line 233  class PamelaDBOperations { Line 240  class PamelaDBOperations {
240      void SetNoFrag(Bool_t nf);      void SetNoFrag(Bool_t nf);
241      void SetAutoBoot(Bool_t nf);      void SetAutoBoot(Bool_t nf);
242      void SetPedantic(Bool_t pd);      void SetPedantic(Bool_t pd);
243        void SetPhysEndRunVariables();
244        //
245        void SetTag(TString ntag){tag=ntag;};
246      //      //
247      Bool_t SetID_RAW();      Bool_t SetID_RAW();
248      //      //
# Line 254  class PamelaDBOperations { Line 264  class PamelaDBOperations {
264      //      //
265      TString GetRawFile(){return((TString)gSystem->BaseName(filerawname.Data()));};      TString GetRawFile(){return((TString)gSystem->BaseName(filerawname.Data()));};
266      TString GetRootFile(){return((TString)gSystem->BaseName(filerootname.Data()));};      TString GetRootFile(){return((TString)gSystem->BaseName(filerootname.Data()));};
267      TString GetRootName(){return(filerootname);};      TString GetRootName(){return((TString)gSystem->ExpandPathName(filerootname.Data()));};
268      TString GetRawName(){return(filerawname);};      TString GetRawName(){return(filerawname);};
269      TString GetRawPath();      TString GetRawPath();
270      TString GetRootPath();      TString GetRootPath();
# Line 265  class PamelaDBOperations { Line 275  class PamelaDBOperations {
275      //      //
276      Int_t assignBOOT_NUMBER();      Int_t assignBOOT_NUMBER();
277      Int_t insertPamelaRootFile();      Int_t insertPamelaRootFile();
278        Int_t insertPamelaRootFile(GL_ROOT*);
279      Int_t insertPamelaRawFile();      Int_t insertPamelaRawFile();
280        Int_t insertPamelaRawFile(GL_RAW*);
281      Int_t insertPamelaGL_TIMESYNC();      Int_t insertPamelaGL_TIMESYNC();
282      Int_t insertPamelaRUN();      Int_t insertPamelaRUN();
283      Int_t insertCALO_CALIB();      Int_t insertCALO_CALIB();
# Line 281  class PamelaDBOperations { Line 293  class PamelaDBOperations {
293      Int_t assignVALIDATION(UInt_t ,Bool_t );      Int_t assignVALIDATION(UInt_t ,Bool_t );
294      Int_t removeFile(TString rootfilename);      Int_t removeFile(TString rootfilename);
295      //      //
296        Bool_t IsChewbacca(){return chewbacca;};
297      //    void OpenFile();      //    void OpenFile();
298      void CheckValidate(Long64_t olderthan);      void CheckValidate(Long64_t olderthan);
299      void CheckConnection();      void CheckConnection();
# Line 298  class PamelaDBOperations { Line 311  class PamelaDBOperations {
311      // Functions for TLE      // Functions for TLE
312      Int_t populateTLE();      Int_t populateTLE();
313    
314      UInt_t ValidateTrkCalib( CalibTrk1Event* calibtrk , EventHeader* h);      UInt_t ValidateTrkCalib( CalibTrk1Event* calibtrk , EventHeader* h, TFile* file);
315      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); };
316    
317        UInt_t ValidateTrkCalib( CalibTrk1Event* calibtrk , EventHeader* h){return ValidateTrkCalib((CalibTrk1Event*)calibtrk,h,file); };
318        UInt_t ValidateTrkCalib( CalibTrk2Event* calibtrk , EventHeader* h){return ValidateTrkCalib((CalibTrk1Event*)calibtrk,h,file); };
319    
320      UInt_t Check();      UInt_t Check();
321      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.4

  ViewVC Help
Powered by ViewVC 1.1.23