/[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.3 by pam-fi, Fri Oct 31 11:21:42 2008 UTC revision 1.7 by mocchiut, Mon Jan 12 18:23:36 2009 UTC
# Line 91  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 189  class PamelaDBOperations { Line 195  class PamelaDBOperations {
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 210  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 236  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();      void SetPhysEndRunVariables();
248      //      //
249        void SetTag(TString ntag){tag=ntag;};
250        //
251      Bool_t SetID_RAW();      Bool_t SetID_RAW();
252      //      //
253      Int_t SetUpperLimits();      Int_t SetUpperLimits();
# Line 258  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 285  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();

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.23