![]() |
AliPhysics
45843cc (45843cc)
|
Public Types | |
enum | { kVerbose = 0x1, kRecursive = 0x2, kMC = 0x4, kCheck = 0x8, kClean = 0x10, kScan = 0x20, kTrRef = 0x40, kRemote = 0x80 } |
enum | { kInvalid, kDirectory, kXML, kAscii, kROOT, kZip } |
Static Public Member Functions | |
static UShort_t | CheckSource (TString &src, UShort_t flags) |
static TChain * | Create (const TUrl &url) |
static TChain * | Create (const TString &src, const TString &treeName, const TString &pattern, Bool_t mc, Bool_t recursive, Bool_t verbose=false, Bool_t checkFiles=false, Bool_t removeFiles=false, Bool_t trackRefs=false, Bool_t remote=false) |
static TChain * | Create (UShort_t type, const TString &src, const TString &treeName, const TString &pattern, Bool_t mc, Bool_t recursive, Bool_t verbose=false, Bool_t checkFiles=false, Bool_t removeFiles=false, Bool_t trackRefs=false, Bool_t remote=false) |
static TChain * | Create (UShort_t type, const TString &src, const TString &treeName, const TString &pattern, UShort_t flags) |
static void | CreateCollection (const TString &output, const TUrl &url, const char *remote=0) |
static void | CreateCollection (const TString &output, const TChain *chain, const char *remote=0) |
static void | ExtractAnchor (TString &src, TString &anchor) |
static Bool_t | CreateFromFile (TChain *chain, const TString &src, const TString &anchor, UShort_t flags=0) |
static Bool_t | CreateFromXML (TChain *chain, const TString &src) |
static Bool_t | CreateFromList (TChain *chain, const TString &src, UShort_t flags=0) |
static Bool_t | CreateFromDirectory (TChain *chain, const TString &src, const TString &pattern, const TString &anchor, UShort_t flags) |
static void | RemoveFile (const TString &path) |
static TFileCollection * | Remotify (TFileCollection *fc, const char *remote=0) |
static Bool_t | CheckFile (const TString &path, const TString &anchor, TChain *chain, UShort_t flags=0) |
static Bool_t | ScanDirectory (TChain *chain, TSystemDirectory *dir, const TString &pattern, const TString &anchor, UShort_t flags) |
Build a chain
Definition at line 60 of file ChainBuilder.C.
anonymous enum |
Enumerator | |
---|---|
kVerbose | |
kRecursive | |
kMC | |
kCheck | |
kClean | |
kScan | |
kTrRef | |
kRemote |
Definition at line 62 of file ChainBuilder.C.
anonymous enum |
Enumerator | |
---|---|
kInvalid | |
kDirectory | |
kXML | |
kAscii | |
kROOT | |
kZip |
Definition at line 72 of file ChainBuilder.C.
|
inlinestatic |
Check if we can add a file to the chain
path | Full path to file |
anchor | Anchor (tree name) |
chain | Chain |
flags | Some flags |
Definition at line 605 of file ChainBuilder.C.
Definition at line 81 of file ChainBuilder.C.
Referenced by CreateFileCollection(), and Railway::LocalChain().
Create a TChain from a URL specification.
The URL should have the format
* PROTOCOL://PATH?OPTIONS#TREENAME *
where
PROTOCOL
is any protocolPATH
is a file, top-directory, file containing a TFileCollection, ASCII file with list of files, etc.OPTIONS
is a list of options, separate by &
TREENAME
is the tree nameOPTIONS
can be one or more of
mc
Also check for auxiliary MC filesrecursive
When scanning directories, do so recursivelyverbose
Be verbosecheck
Check files by trying to open themclean
Remove invalid filestrackref
For MC input, insist on TrackRefs.root presencepattern=PATTERN
Search pattern when scanning directoriesurl | The input url |
Definition at line 155 of file ChainBuilder.C.
Referenced by CreateFileCollection(), and Railway::LocalChain().
|
inlinestatic |
Create a chain
src | Source |
treeName | Tree name |
pattern | Pattern for scans |
mc | If true, check for MC files |
recursive | If true, scan recursively |
verbose | If true, be verbose |
checkFiles | If true, check that files can be opened |
removeFiles | If true, remove bad files |
trackRefs | If true, look for track references too |
remote | For remote access |
Definition at line 209 of file ChainBuilder.C.
|
inlinestatic |
Create a chain
type | Type of input |
src | Source |
treeName | Tree name |
pattern | Pattern for scans |
mc | If true, check for MC files |
recursive | If true, scan recursively |
verbose | If true, be verbose |
checkFiles | If true, check that files can be opened |
removeFiles | If true, remove bad files |
trackRefs | If true, look for track references too |
remote | For remote access |
Definition at line 252 of file ChainBuilder.C.
|
inlinestatic |
Create a chain from the inputs
type | Type of input |
src | Source |
treeName | Tree name |
pattern | Pattern for scans |
flags | Flags |
Definition at line 293 of file ChainBuilder.C.
|
inlinestatic |
Create a collection
output | Output file |
url | Input url |
remote | For remote access |
Definition at line 364 of file ChainBuilder.C.
Referenced by CreateIndex().
|
inlinestatic |
Create a collection
output | Input url |
chain | Chain to make collection from |
remote | For remote access |
Definition at line 381 of file ChainBuilder.C.
|
inlinestatic |
Make a chain from a base directory, pattern, and treename - possibly recursively
Definition at line 538 of file ChainBuilder.C.
|
inlinestatic |
Create a chain consiting of a single file
chain | The chain |
anchor | Anchor (tree name) |
src | File name. |
flags | Flags |
Definition at line 458 of file ChainBuilder.C.
|
inlinestatic |
Create a chain from a file containing a list of files
Definition at line 505 of file ChainBuilder.C.
Create a chain from an XML containing an collection
Definition at line 474 of file ChainBuilder.C.
Exrtact the anchor
src | Source url |
anchor | On return, contains the anchor |
Definition at line 435 of file ChainBuilder.C.
|
inlinestatic |
Definition at line 565 of file ChainBuilder.C.
|
inlinestatic |
Definition at line 557 of file ChainBuilder.C.
|
inlinestatic |
Scan directory dir (possibly recursive) for tree files to add to the chain. This does not follow sym-links
dir | Directory to scan |
chain | Chain to add to |
pattern | File name pattern |
anchor | Anchor (tree name) |
flags | Flags |
Definition at line 707 of file ChainBuilder.C.