/[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.9 by mocchiut, Tue Oct 14 12:59:12 2014 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 118  class PamelaDBOperations { Line 124  class PamelaDBOperations {
124      UInt_t chobtts;      UInt_t chobtts;
125      UInt_t chlastts;      UInt_t chlastts;
126      UInt_t chresursts;      UInt_t chresursts;
127        UInt_t idresof;
128      UInt_t chboot;      UInt_t chboot;
129      UInt_t chminentry;      UInt_t chminentry;
130    
# Line 189  class PamelaDBOperations { Line 196  class PamelaDBOperations {
196      void ValidationOFF();      void ValidationOFF();
197      void ReArrangeRUNS();      void ReArrangeRUNS();
198      void RemoveRUNS();      void RemoveRUNS();
199      void RemoveFILES();      void RemoveFILES(UInt_t idtsy);
200      //      //
201      Bool_t IsDebug(){return(debug);};      Bool_t IsDebug(){return(debug);};
202      Bool_t IsRunAlreadyInserted();      Bool_t IsRunAlreadyInserted();
203      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);
204      Bool_t AutoBoot(){return(AUTOBOOT);};      Bool_t AutoBoot(){return(AUTOBOOT);};
205      //      //
206      Bool_t MissingTRK_CALIB(UInt_t t1,UInt_t t2);      //    Bool_t MissingTRK_CALIB(UInt_t t1,UInt_t t2);
207        UInt_t MissingTRK_CALIB(UInt_t t1,UInt_t t2);
208      //      //
209      Long64_t PKT(UInt_t pkt_num);      Long64_t PKT(UInt_t pkt_num);
210      //      //
# Line 210  class PamelaDBOperations { Line 218  class PamelaDBOperations {
218    
219   public:   public:
220      //      //
221      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
222      //      //
223      void Close(); // destructor      void Close(); // destructor
224      //      //
# Line 236  class PamelaDBOperations { Line 244  class PamelaDBOperations {
244      void SetNoFrag(Bool_t nf);      void SetNoFrag(Bool_t nf);
245      void SetAutoBoot(Bool_t nf);      void SetAutoBoot(Bool_t nf);
246      void SetPedantic(Bool_t pd);      void SetPedantic(Bool_t pd);
247        void SetRelaxed(Bool_t pd){ if ( pd ) printf(" WARNING: USING RELAXED CONDITIONS, ARE YOU SURE ON WHAT YOU'RE DOING? \n"); RELAXED=pd;};
248      void SetPhysEndRunVariables();      void SetPhysEndRunVariables();
249      //      //
250        void SetTag(TString ntag){tag=ntag;};
251        //
252      Bool_t SetID_RAW();      Bool_t SetID_RAW();
253      //      //
254      Int_t SetUpperLimits();      Int_t SetUpperLimits();
# Line 258  class PamelaDBOperations { Line 269  class PamelaDBOperations {
269      //      //
270      TString GetRawFile(){return((TString)gSystem->BaseName(filerawname.Data()));};      TString GetRawFile(){return((TString)gSystem->BaseName(filerawname.Data()));};
271      TString GetRootFile(){return((TString)gSystem->BaseName(filerootname.Data()));};      TString GetRootFile(){return((TString)gSystem->BaseName(filerootname.Data()));};
272      TString GetRootName(){return(filerootname);};      TString GetRootName(){return((TString)gSystem->ExpandPathName(filerootname.Data()));};
273      TString GetRawName(){return(filerawname);};      TString GetRawName(){return(filerawname);};
274      TString GetRawPath();      TString GetRawPath();
275      TString GetRootPath();      TString GetRootPath();
# Line 285  class PamelaDBOperations { Line 296  class PamelaDBOperations {
296      Int_t ValidateRuns();      Int_t ValidateRuns();
297      Int_t ValidateRuns(TString valfile);      Int_t ValidateRuns(TString valfile);
298      Int_t assignVALIDATION(UInt_t ,Bool_t );      Int_t assignVALIDATION(UInt_t ,Bool_t );
299        Int_t assignVALIDATION(UInt_t ,UInt_t );
300      Int_t removeFile(TString rootfilename);      Int_t removeFile(TString rootfilename);
301      //      //
302        Bool_t IsChewbacca(){return chewbacca;};
303      //    void OpenFile();      //    void OpenFile();
304      void CheckValidate(Long64_t olderthan);      void CheckValidate(Long64_t olderthan);
305      void CheckConnection();      void CheckConnection();
# Line 295  class PamelaDBOperations { Line 308  class PamelaDBOperations {
308      void LockTables();      void LockTables();
309      void UnLockTables();      void UnLockTables();
310      //      //
311        void NotChewbacca(UInt_t boot, UInt_t tsync, UInt_t obt0, Bool_t gpamela);
312        //
313                    
314      Bool_t NoFrag(){return(NOFRAG);};      Bool_t NoFrag(){return(NOFRAG);};
315      Bool_t InsertRoot(){return(INSERT_ROOT);};      Bool_t InsertRoot(){return(INSERT_ROOT);};

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

  ViewVC Help
Powered by ViewVC 1.1.23