![]() |
AliRoot Core
3dc7879 (3dc7879)
|
TOOLKIT for chain manipulation: More...
#include <AliXRDPROOFtoolkit.h>
Public Member Functions | |
AliXRDPROOFtoolkit () | |
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) |
Bool_t | XRDCopyDir (const char *idir, const char *files, const char *odir, Bool_t zip) |
Static Public Member Functions | |
static TChain * | MakeChain (const char *fileIn, const char *treeName, const char *fName=0, Int_t maxFiles=-1, Int_t startFile=0, Int_t checkLevel=0) |
static TChain * | MakeChainRandom (const char *fileIn, const char *treeName, const char *fName=0, Int_t maxFiles=-1, Int_t startFile=0, Int_t checkLevel=0) |
static Bool_t | FilterList (const char *inputList, const char *fileList, Int_t checkLevel) |
static Bool_t | FilterListZip (const char *inputList, const char *fileList, Int_t checkLevel) |
static Int_t | CheckTreeInFile (const char *fileName, const char *treeName, Int_t debugLevel=0, const char *branchName=0) |
static void | JoinTreesIndex (const char *outputFile, const char *outputTree, const char *indexName, const char *inputTrees, Int_t debugLevel) |
static void | MakeTreeFromList (const char *fout, const char *treeOut, const char *treeIn, const char *flist, Bool_t debug) |
static void | CacheFileList (const char *fileIn, const char *cachePrefix) |
static Int_t | TestFile (const char *fileName, const char *keyNames) |
Private Member Functions | |
AliXRDPROOFtoolkit (const AliXRDPROOFtoolkit &) | |
AliXRDPROOFtoolkit & | operator= (const AliXRDPROOFtoolkit &) |
Private Attributes | |
Int_t | fVerbose |
verbso mode - print command More... | |
TString | fUserName |
user name More... | |
UserGroup_t * | fUserGroup |
user group info More... | |
TOOLKIT for chain manipulation:
Example usage:
Definition at line 15 of file AliXRDPROOFtoolkit.h.
AliXRDPROOFtoolkit::AliXRDPROOFtoolkit | ( | ) |
Definition at line 74 of file AliXRDPROOFtoolkit.cxx.
|
private |
|
static |
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
Definition at line 747 of file AliXRDPROOFtoolkit.cxx.
|
static |
Check the tree in file fileName - the name of the file with tree treeName - the name of file debugLevel - 0 check the existence of the file - 1 make loop over entries branchName - if debugLevel>0 the branch is checked if brnachName =0 the content of full tree is checked return value = 0 - Check things OK -1 - file not exist or not accessible -2 - file is zombie -3 - tree not present -4 - branch not present -5 - no branches
Definition at line 289 of file AliXRDPROOFtoolkit.cxx.
|
static |
Filter the list inputList - list of original file names fileList - list of file to be checked
(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)1 - check the content of the tree -
Definition at line 361 of file AliXRDPROOFtoolkit.cxx.
Referenced by filterESD(), and MakeChain().
|
static |
Filter the list inputList - list of original file names fileList - list of file to be checked
(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)1 - check the content of the tree -
Definition at line 446 of file AliXRDPROOFtoolkit.cxx.
|
static |
Join together several tree according to the index
Parameters:
Output:
Input:
Example usage:
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"
Definition at line 552 of file AliXRDPROOFtoolkit.cxx.
|
static |
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
Definition at line 92 of file AliXRDPROOFtoolkit.cxx.
Referenced by DrawdEdxResolExample(), Init(), InitChains(), MakeChain(), MakeFits(), MakeGlobalFit(), MakeGlobalFitRelative(), MakeTreeFromList(), PseudoCode(), RunAliTPCCalibKrTask(), and TestChainCosmicDedx().
|
static |
Create a TDSet - files are in random order
filein - input list text file treename - containg tree maxFiles - maximum number of files included
Definition at line 143 of file AliXRDPROOFtoolkit.cxx.
Referenced by CalibAlignKalman(), and Init().
TDSet * AliXRDPROOFtoolkit::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
Definition at line 202 of file AliXRDPROOFtoolkit.cxx.
TDSet * AliXRDPROOFtoolkit::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
Definition at line 236 of file AliXRDPROOFtoolkit.cxx.
|
static |
join trees from the list and make a common tree - stored in the file
Example:
Definition at line 794 of file AliXRDPROOFtoolkit.cxx.
|
private |
|
static |
Test selected entries (keynames) in input file
fileName | - input file Name |
keyNames | - : separated list of keys (regular expression) |
Definition at line 884 of file AliXRDPROOFtoolkit.cxx.
Bool_t AliXRDPROOFtoolkit::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";
Definition at line 521 of file AliXRDPROOFtoolkit.cxx.
|
private |
user group info
Definition at line 34 of file AliXRDPROOFtoolkit.h.
|
private |
user name
Definition at line 33 of file AliXRDPROOFtoolkit.h.
|
private |
verbso mode - print command
Definition at line 32 of file AliXRDPROOFtoolkit.h.