| 1 |
mocchiut |
1.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 |
mocchiut |
1.5 |
#include <TFile.h> |
| 17 |
mocchiut |
1.1 |
#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 |
mocchiut |
1.6 |
#include <THashList.h> |
| 26 |
mocchiut |
1.1 |
#include <PamLevel2.h> |
| 27 |
|
|
// |
| 28 |
|
|
/** |
| 29 |
|
|
* \brief Class to group runs day by day |
| 30 |
|
|
*/ |
| 31 |
|
|
class RunGlue : public TObject { |
| 32 |
|
|
private: |
| 33 |
|
|
TSQLServer *dbc; |
| 34 |
|
|
PamLevel2 *li; |
| 35 |
|
|
UInt_t run; |
| 36 |
|
|
TString dir; |
| 37 |
|
|
TString outdir; |
| 38 |
|
|
TString fFilename; |
| 39 |
|
|
Bool_t fEnd; |
| 40 |
|
|
Bool_t RUN; |
| 41 |
|
|
TList *fDoneList; |
| 42 |
|
|
TList *fList; |
| 43 |
|
|
TList *lList; |
| 44 |
mocchiut |
1.5 |
TFile *Target; |
| 45 |
mocchiut |
1.1 |
TFile *Source; |
| 46 |
|
|
TString fDList; |
| 47 |
mocchiut |
1.7 |
TString wd; |
| 48 |
mocchiut |
1.1 |
Bool_t fastMethod; |
| 49 |
|
|
Bool_t fDBG; |
| 50 |
mocchiut |
1.9 |
Bool_t fUpgrade; |
| 51 |
mocchiut |
1.2 |
Bool_t fOpen; |
| 52 |
mocchiut |
1.1 |
Bool_t runmode; |
| 53 |
|
|
Bool_t createlist; |
| 54 |
|
|
Bool_t merged; |
| 55 |
|
|
UInt_t fNlist; |
| 56 |
|
|
UInt_t fNlistdone; |
| 57 |
|
|
UInt_t nrun; |
| 58 |
|
|
UInt_t YY; |
| 59 |
|
|
UInt_t MM; |
| 60 |
|
|
UInt_t DD; |
| 61 |
|
|
|
| 62 |
|
|
public: |
| 63 |
|
|
// |
| 64 |
|
|
RunGlue(); |
| 65 |
|
|
// |
| 66 |
mocchiut |
1.5 |
RunGlue(TSQLServer *dbc,UInt_t run, TString dir, TString wrkdir); |
| 67 |
mocchiut |
1.1 |
// |
| 68 |
|
|
// methods |
| 69 |
|
|
// |
| 70 |
|
|
void Clear(); |
| 71 |
|
|
void Clean(); |
| 72 |
|
|
TList *GetRunList(); |
| 73 |
mocchiut |
1.8 |
// Long64_t Mergy(TChain *, TFile *, Int_t, Option_t *); |
| 74 |
mocchiut |
1.1 |
void MergeRootfile(TList *); |
| 75 |
|
|
Bool_t OpenFile(); |
| 76 |
|
|
void SetDebug(Bool_t); |
| 77 |
|
|
void SetDList(TString); |
| 78 |
|
|
void DeleteRunFiles(TList *); |
| 79 |
|
|
void UpdateDB(TList *); |
| 80 |
mocchiut |
1.9 |
void SetUpgrade(Bool_t set){fUpgrade=set;}; |
| 81 |
mocchiut |
1.1 |
// |
| 82 |
mocchiut |
1.3 |
// inline methods |
| 83 |
mocchiut |
1.1 |
// |
| 84 |
|
|
Bool_t End(){return(fEnd);}; |
| 85 |
mocchiut |
1.2 |
Bool_t FileIsOpen(){return(fOpen);}; |
| 86 |
mocchiut |
1.1 |
Bool_t DebugMode(){return(fDBG);}; |
| 87 |
mocchiut |
1.9 |
Bool_t GetUpgrade(){return(fUpgrade);}; |
| 88 |
mocchiut |
1.1 |
TString GetFilename(){return(fFilename);}; |
| 89 |
|
|
// |
| 90 |
|
|
// |
| 91 |
|
|
// |
| 92 |
|
|
// |
| 93 |
|
|
ClassDef(RunGlue,1); |
| 94 |
|
|
// |
| 95 |
|
|
}; |
| 96 |
|
|
|
| 97 |
|
|
#endif |