20 gROOT->LoadMacro(
"$ALICE_PHYSICS/PWGLF/FORWARD/trains/ChainBuilder.C+");
26 Info(
"",
"type=%d, dir=%s tN=%s pa=%s, flags=0x%x", type,
27 dir.Data(), tN.Data(), pa.Data(), flags);
30 Error(
"CreateFileCollection",
"Failed to make chain");
36 TUrl u(Form(
"root://%s//foo",
gSystem->HostName()));
37 port = u.GetPort() * 10;
38 host = u.GetHostFQDN();
42 TFileCollection* fc =
new TFileCollection(
"files");
44 TChainElement* cE = 0;
46 while ((cE= static_cast<TChainElement*>(next()))) {
48 TFile* f = TFile::Open(fN,
"READ");
51 fN.Prepend(Form(
"root://%s:%d/", host.Data(), port));
52 TFileInfo* fi =
new TFileInfo(Form(
"%s tree:%s,%d",
53 fN.Data(), tN.Data(), t->GetEntries()),
60 TFile* files = TFile::Open(
"files.root",
"RECREATE");
static UShort_t CheckSource(TString &src, UShort_t flags)
void CreateFileCollection(const TString &dir="/data/alice/data/ppb/LHC12g/pass1/188359/", const TString &tN="esdTree", const TString &pa="AliESD*", Bool_t mc=false, Bool_t recursive=false))
static TChain * Create(const TUrl &url)