]>
Commit | Line | Data |
---|---|---|
db6fdd20 | 1 | #ifndef _AliXRDPROOFtoolkit |
2 | #define _AliXRDPROOFtoolkit | |
3 | ||
4 | #include <TObject.h> | |
5 | #include <TString.h> | |
6 | ||
7 | #include <iostream> | |
8 | #include <vector> | |
9 | #include <TSystem.h> | |
10 | ||
11 | using namespace std; | |
12 | ||
13 | class TObjArray; | |
14 | class TTree; | |
15 | class TChain; | |
16 | class TDSet; | |
17 | ||
18 | ||
19 | ||
20 | class AliXRDPROOFtoolkit : public TObject | |
21 | { | |
22 | ||
23 | ||
24 | public : | |
25 | AliXRDPROOFtoolkit (); | |
26 | void Print(Option_t* option = " ") const; | |
18519053 | 27 | void AddMachine (const char*name); |
db6fdd20 | 28 | public : |
29 | // | |
30 | // Interface for low priority users - NO ssh ACCESS to PROOF machines | |
31 | // | |
1e122ba8 | 32 | // TChain * CountEntries(const char*fileIn, const char * treeName, const char *fName=0, Int_t maxFiles=-1, Int_t startFile=0); |
33 | ||
db6fdd20 | 34 | TChain * MakeChain(const char*fileIn, const char * treeName, const char *fName=0, Int_t maxFiles=-1, Int_t startFile=0); |
35 | TChain * MakeChainRandom(const char*fileIn, const char * treeName, const char *fName=0, Int_t maxFiles=-1, Int_t startFile=0); | |
36 | TDSet * MakeSet(const char*fileIn, const char * treeName, const char *fName=0, Int_t maxFiles=-1); | |
37 | TDSet * MakeSetRandom(const char*fileIn, const char * treeName,const char *fName=0, Int_t maxFiles=-1); | |
38 | // | |
18519053 | 39 | // |
db6fdd20 | 40 | // |
41 | Bool_t ListOfFiles(const char*fileName, const char*path, const char*filter, Bool_t displayMachine); | |
18519053 | 42 | static Bool_t FilterList(const char*inputList, const char*fileList, Int_t checkLevel); |
f792d6b0 | 43 | static Bool_t FilterListZip(const char*inputList, const char*fileList, Int_t checkLevel); |
18519053 | 44 | // |
0034e139 | 45 | // |
46 | // | |
47 | Bool_t XRDCopyDir(const char * idir, const char * files, const char *odir, Bool_t zip); | |
18519053 | 48 | // |
49 | void CheckFiles (const char*fileIn, UInt_t checkLevel, const char*treeToRetrieve, const char*varexp, const char*selection); | |
0034e139 | 50 | |
18519053 | 51 | static Int_t CheckTreeInFile(const char*fileName,const char*treeName, Int_t debugLevel=0, const char *branchName=0); |
52 | // | |
db6fdd20 | 53 | // |
54 | // Interface for users with ssh access to the machines | |
55 | // | |
56 | void FilterSegFault(const char *filter="last"); | |
57 | Bool_t HasSegFault(const char * machine, const char * filter = "last"); | |
58 | TTree * DumpSys(Bool_t verbose=kTRUE); | |
59 | TTree * DumpSys2(Bool_t verbose=kTRUE); | |
60 | TTree * DumpFiles(Bool_t verbose=kTRUE); | |
0034e139 | 61 | // |
18519053 | 62 | |
db6fdd20 | 63 | Int_t fVerbose; // verbso mode - print command |
64 | private : | |
65 | // | |
66 | // | |
67 | // | |
db6fdd20 | 68 | private: |
69 | vector <const TString *> listeMachine; // list of slaves | |
70 | TString fUserName; // user name | |
71 | UserGroup_t *fUserGroup; // user group info | |
72 | ClassDef(AliXRDPROOFtoolkit, 0); | |
73 | }; | |
74 | #endif |