| 1 |
#ifndef runglue_h |
| 2 |
#define runglue_h |
| 3 |
// |
| 4 |
#include <TSQLServer.h> |
| 5 |
#include <TSQLRow.h> |
| 6 |
#include <TSQLResult.h> |
| 7 |
#include <TList.h> |
| 8 |
#include <TString.h> |
| 9 |
#include <TObject.h> |
| 10 |
#include <TSQLServer.h> |
| 11 |
#include <TSQLRow.h> |
| 12 |
#include <TSQLResult.h> |
| 13 |
#include <TString.h> |
| 14 |
#include <TTimeStamp.h> |
| 15 |
#include <TSQLServer.h> |
| 16 |
#include <TFile.h> |
| 17 |
#include <TSystem.h> |
| 18 |
#include <TChain.h> |
| 19 |
#include <TH1.h> |
| 20 |
#include <TTree.h> |
| 21 |
#include <TKey.h> |
| 22 |
#include <Riostream.h> |
| 23 |
#include <TObjString.h> |
| 24 |
#include <TClass.h> |
| 25 |
#include <PamLevel2.h> |
| 26 |
// |
| 27 |
/** |
| 28 |
* \brief Class to group runs day by day |
| 29 |
*/ |
| 30 |
class RunGlue : public TObject { |
| 31 |
private: |
| 32 |
TSQLServer *dbc; |
| 33 |
PamLevel2 *li; |
| 34 |
UInt_t run; |
| 35 |
TString dir; |
| 36 |
TString outdir; |
| 37 |
TString fFilename; |
| 38 |
Bool_t fEnd; |
| 39 |
Bool_t RUN; |
| 40 |
TList *fDoneList; |
| 41 |
TList *fList; |
| 42 |
TList *lList; |
| 43 |
TFile *Target; |
| 44 |
TFile *Source; |
| 45 |
TString fDList; |
| 46 |
Bool_t fastMethod; |
| 47 |
Bool_t fDBG; |
| 48 |
Bool_t runmode; |
| 49 |
Bool_t createlist; |
| 50 |
Bool_t merged; |
| 51 |
UInt_t fNlist; |
| 52 |
UInt_t fNlistdone; |
| 53 |
UInt_t nrun; |
| 54 |
UInt_t YY; |
| 55 |
UInt_t MM; |
| 56 |
UInt_t DD; |
| 57 |
|
| 58 |
public: |
| 59 |
// |
| 60 |
RunGlue(); |
| 61 |
// |
| 62 |
RunGlue(TSQLServer *dbc,UInt_t run, TString dir, TString wrkdir); |
| 63 |
// |
| 64 |
// methods |
| 65 |
// |
| 66 |
void Clear(); |
| 67 |
void Clean(); |
| 68 |
TList *GetRunList(); |
| 69 |
void MergeRootfile(TList *); |
| 70 |
Bool_t OpenFile(); |
| 71 |
void SetDebug(Bool_t); |
| 72 |
void SetDList(TString); |
| 73 |
void DeleteRunFiles(TList *); |
| 74 |
void UpdateDB(TList *); |
| 75 |
// |
| 76 |
// inline method |
| 77 |
// |
| 78 |
Bool_t End(){return(fEnd);}; |
| 79 |
Bool_t DebugMode(){return(fDBG);}; |
| 80 |
TString GetFilename(){return(fFilename);}; |
| 81 |
// |
| 82 |
// |
| 83 |
// |
| 84 |
// |
| 85 |
ClassDef(RunGlue,1); |
| 86 |
// |
| 87 |
}; |
| 88 |
|
| 89 |
#endif |