ROOT logo
AliRoot » TPC » BASE » AliXRDPROOFtoolkit

class AliXRDPROOFtoolkit: public TObject

Function Members (Methods)

public:
AliXRDPROOFtoolkit()
~AliXRDPROOFtoolkit()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static voidCacheFileList(const char* fileIn, const char* cachePrefix)
static Int_tCheckTreeInFile(const char* fileName, const char* treeName, Int_t debugLevel = 0, const char* branchName = 0)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
static Bool_tFilterList(const char* inputList, const char* fileList, Int_t checkLevel)
static Bool_tFilterListZip(const char* inputList, const char* fileList, Int_t checkLevel)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
static voidJoinTreesIndex(const char* outputFile, const char* outputTree, const char* indexName, const char* inputTrees, Int_t debugLevel)
virtual voidTObject::ls(Option_t* option = "") const
static TChain*MakeChain(const char* fileIn, const char* treeName, const char* fName = 0, Int_t maxFiles = -1, Int_t startFile = 0)
static TChain*MakeChainRandom(const char* fileIn, const char* treeName, const char* fName = 0, Int_t maxFiles = -1, Int_t startFile = 0)
TDSet*MakeSet(const char* fileIn, const char* treeName, const char* fName = 0, Int_t maxFiles = -1)
TDSet*MakeSetRandom(const char* fileIn, const char* treeName, const char* fName = 0, Int_t maxFiles = -1)
static voidMakeTreeFromList(const char* fout, const char* treeOut, const char* treeIn, const char* flist, Bool_t debug)
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
Bool_tXRDCopyDir(const char* idir, const char* files, const char* odir, Bool_t zip)
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

private:
UserGroup_t*fUserGroupuser group info
TStringfUserNameuser name
Int_tfVerboseverbso mode - print command

Class Charts

Inheritance Chart:
TObject
AliXRDPROOFtoolkit

Function documentation

AliXRDPROOFtoolkit()


TChain* MakeChain(const char* fileIn, const char* treeName, const char* fName = 0, Int_t maxFiles = -1, Int_t startFile = 0)
 Create a chain of files using the file 'fileIn' as input list
 where one line per root file is expected

 treeName : Name of the tree
 fName    : file name inside of a zip file, will add '#fName'
            to the file name
 maxFiles : maximum number of files in the chain
            -1 (default) add all possible files starting from 'startFile'
 startFile: position of the first file, starting with 0

TChain* MakeChainRandom(const char* fileIn, const char* treeName, const char* fName = 0, Int_t maxFiles = -1, Int_t startFile = 0)
 Create a TDSet - files are in random order

 filein    - input list text file
 treename  - containg tree
 maxFiles  - maximum number of files included
TDSet* MakeSet(const char* fileIn, const char* treeName, const char* fName = 0, Int_t maxFiles = -1)
 Create the TDSet out of list
 filein    - input list text file
 treename  - containg tree
 maxFiles  - maximum number of files included
TDSet* MakeSetRandom(const char* fileIn, const char* treeName, const char* fName = 0, Int_t maxFiles = -1)
 Create a TDSet - files are in random order

 filein    - input list text file
 treename  - containg tree
 maxFiles  - maximum number of files included
Int_t CheckTreeInFile(const char* fileName, const char* treeName, Int_t debugLevel = 0, const char* branchName = 0)
 Check the tree in file
 fileName   - the name of the file with tree
 treeName   - the name of file
 debugLevel - 0 check the existance of the file -  1 make loop over entries
 branchName - if debugLevel>0 the branch is chcecked
              if brnachName =0 the content of full tree is chcecked
 return value = 0 - Check things  OK
               -1 - file not exist or not accesible
               -2 - file is zombie
		   -3 - tree not present
               -4 - branch not present
Bool_t FilterList(const char* inputList, const char* fileList, Int_t checkLevel)
 Filter the list
 inputList - list of original file names
 fileList  - list of file to be checked
           - 0 - fileName
           - 1 - treeName (if * not checked)
           - 2 - fileName

 checkLevel - 0 - check only existance of the files and tree's +
                  simple file corruption
            > 1 - check the content of the tree -
                  (can crash as there do not exest exception handling in ROOT)
 Output -  two streams are created - file with good entries
 "%s.Good a,d file with bad entries %s.Bad
EXAMPLE:
 AliXRDPROOFtoolkit::FilterList("ppgrid2.txt","AliESDs.root esdTree AliESDfriends.root * Kinematics.root *",1)
Bool_t FilterListZip(const char* inputList, const char* fileList, Int_t checkLevel)
 Filter the list
 inputList - list of original file names
 fileList  - list of file to be checked
           - 0 - fileName
           - 1 - treeName (if * not checked)
           - 2 - fileName

 checkLevel - 0 - check only existance of the files and tree's +
                  simple file corruption
            > 1 - check the content of the tree -
                  (can crash as there do not exest exception handling in ROOT)
 Output -  two streams are created - file with good entries
 "%s.Good a,d file with bad entries %s.Bad
EXAMPLE:
 AliXRDPROOFtoolkit::FilterList("ppgrid2.txt","AliESDs.root esdTree AliESDfriends.root * Kinematics.root *",1)
Bool_t XRDCopyDir(const char* idir, const char* files, const char* odir, Bool_t zip)
 idir  - input directory
 odir  - output directory
 files - the list of files to be coppied
 zip   - not supported yet

 Example :

 idir ="root://gsiaf.gsi.de:1094//sma/sim/v4-05-Rev-03/pp/0000";
 odir ="root://lxgrid2.gsi.de:1094//miranov/test/pp/0000";
 char *files="AliESDs.root AliESDfriend.root Kinematics.root";
void JoinTreesIndex(const char* outputFile, const char* outputTree, const char* indexName, const char* inputTrees, Int_t debugLevel)
 Join together several tree according to the index

 Parameters:
 Output:
     outputFile : name of the output file
     outputTree : name of the output Tree
     indexName  : name of the branch to be used as an index
 Input:
     inputTrees : decription of the input trees setup

    Example usage:

    AliXRDPROOFtoolkit::JoinTreesIndex("outAll.root","joinAll","run","1#CPass1#run#tpcQA#TPCCPass1.root+1#VPass1#run#tpcQA#TPCVPass1.root+1#Pass1#run#tpcQA#TPCPass1.root+0#DAQ#run#joinTree#fproductionJoin.root+0#C#run#dcs#OCDBscan.root+0#CE#run#Fits#CEtrend.root");
    ==>
    Combine information form the Cpass1,VPass, and Pass1QA, calibration tree, DAQ information, trigger information
    Make a File "outAll.root",  with tree "joinAll", index of tree with name "run"
    //
    // Input tree configuration string:
    //
    const char *inputTrees="1#CPass1#run#tpcQA#TPCCPass1.root+1#VPass1#run#tpcQA#TPCVPass1.root+1#Pass1#run#tpcQA#TPCPass1.root+0#DAQ#run#joinTree#/home/miranov/test/dbQueries/fproductionJoin.root+0#C#run#dcs#OCDBscan.root+0#CE#run#Fits#CEtrend.root"
    Describe 6 trees to be merged (string separated be +):
      TObjArray *arrayInput = TString(inputTrees).Tokenize("+");
      TObjString = 1#CPass1#run#tpcQA#TPCCPass1.root
      TObjString = 1#VPass1#run#tpcQA#TPCVPass1.root
      TObjString = 1#Pass1#run#tpcQA#TPCPass1.root
      TObjString = 0#DAQ#run#joinTree#/home/miranov/test/dbQueries/fproductionJoin.root
      TObjString = 0#C#run#dcs#OCDBscan.root
      TObjString = 0#CE#run#Fits#CEtrend.root
    //
    Each tree is characterize by 5 parameters - separate by #
       description="1#CPass1#run#tpcQA#TPCCPass1.root"
       TString(description)->Tokenize("#").Print()
       Collection name='TObjArray', class='TObjArray', size=16
       TObjString = 1                    ==> (0/1) index is used
       TObjString = CPass1               ==> name of output branch  in output tree
       TObjString = run                  ==> name of the index
       TObjString = tpcQA                ==> name of the input tree in the input file
       TObjString = TPCCPass1.root       ==> name of the input file




void CacheFileList(const char* fileIn, const char* cachePrefix)
 cache the list of file locally, cache valeus are stored in the location
 specified by optional argumen prefix
 2 new files are created
       <fileIn>.cache    - file with the location of cahe files
       <fileIn>.cacheLog - log file +list of files which can not be cached


    fileIn = "TPCCPass1.list";
    cachePrefix = "";

void MakeTreeFromList(const char* fout, const char* treeOut, const char* treeIn, const char* flist, Bool_t debug)
 join trees from the list  and make a common tree - stored in the file


    Example:
    const char * fout="TPCCpass1.root";
    const char *treeOut="tpcQA"
    const char *treeIn="tpcQA"
    const char * flist="TPCCPass1.list"

AliXRDPROOFtoolkit()
AliXRDPROOFtoolkit& operator=(const AliXRDPROOFtoolkit& )