TPC module
[u/mrichter/AliRoot.git] / TPC / TPCbase / AliXRDPROOFtoolkit.h
CommitLineData
ffab0c37 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
11using namespace std;
12
13class TObjArray;
14class TTree;
15class TChain;
16class TDSet;
17
18
19
20class AliXRDPROOFtoolkit : public TObject
21{
22 public :
23 AliXRDPROOFtoolkit ();
18445bcf 24 static TChain * MakeChain(const char*fileIn, const char * treeName, const char *fName=0, Int_t maxFiles=-1, Int_t startFile=0);
25 static TChain * MakeChainRandom(const char*fileIn, const char * treeName, const char *fName=0, Int_t maxFiles=-1, Int_t startFile=0);
ffab0c37 26 TDSet * MakeSet(const char*fileIn, const char * treeName, const char *fName=0, Int_t maxFiles=-1);
27 TDSet * MakeSetRandom(const char*fileIn, const char * treeName,const char *fName=0, Int_t maxFiles=-1);
28 static Bool_t FilterList(const char*inputList, const char*fileList, Int_t checkLevel);
29 static Bool_t FilterListZip(const char*inputList, const char*fileList, Int_t checkLevel);
30 Bool_t XRDCopyDir(const char * idir, const char * files, const char *odir, Bool_t zip);
ffab0c37 31 static Int_t CheckTreeInFile(const char*fileName,const char*treeName, Int_t debugLevel=0, const char *branchName=0);
e87bf665 32 static void JoinTreesIndex(const char * outputFile, const char * outputTree, const char *indexName, const char *inputTrees, Int_t debugLevel);
d4e3890b 33 static void MakeTreeFromList(const char *fout, const char * treeOut, const char * treeIn, const char * flist, Bool_t debug);
34 static void CacheFileList(const char * fileIn, const char* cachePrefix);
ffab0c37 35 private:
36 Int_t fVerbose; // verbso mode - print command
37 TString fUserName; // user name
38 UserGroup_t *fUserGroup; // user group info
39 AliXRDPROOFtoolkit(const AliXRDPROOFtoolkit&);
40 AliXRDPROOFtoolkit&operator=(const AliXRDPROOFtoolkit&);
41 ClassDef(AliXRDPROOFtoolkit, 0);
42};
43#endif