-
- Downloads
From Andreas:
here are my modifications to interface the Grid file catalog (AliEn in this case) with TChain data sets. Some changes are just one-liner changes to make some base class things virtual or to set some members. With these changes one can do: // connect TGrid::Connect("alien://"); // query TGridResult* result = gGrid->Query("/alice/cern.ch/user/p/peters/analysis/miniesd/","*.root","",""); or TGridResult* result = gGrid->Query("/alice/cern.ch/user/p/peters/analysis/miniesd/","*.root","","-l 50"); // to query maximum 50 files result->Print(""); // or result->Print("l") or result->Print("all"); => Tells you also the complete size of the TDSet (the ALICE one is 68 GB) // build chain for ALICE files TChain* mychain = new TChain("esdTree","AliceSession"); // Get a list of FileInfo Objects // -> I cannot use directly a list of FileInfo objects in TGridResult, // because TGridResult can be also a list of jobs etc .... TList* list = result->GetFileInfoList() // add them to a chain mychain->AddFileInfoList(list); // adds all mychain->AddFileInfoList(list,10); // adds only the first 10 // to use PROOF then, you need to do mychain->Lookup(); // open's all files via TAlienFile over the redirector and replaces the alien URL with the physical location of the file on the cluster (including the access token) mychain->SetProof(); mychain->Draw("ESD.fTrigger"); git-svn-id: http://root.cern.ch/svn/root/trunk@12825 27541ba8-7e3a-0410-8455-c3a389f83636
Showing
- alien/inc/TAlien.h 8 additions, 3 deletionsalien/inc/TAlien.h
- alien/inc/TAlienCollection.h 8 additions, 1 deletionalien/inc/TAlienCollection.h
- alien/inc/TAlienFile.h 6 additions, 2 deletionsalien/inc/TAlienFile.h
- alien/inc/TAlienResult.h 4 additions, 2 deletionsalien/inc/TAlienResult.h
- alien/src/TAlien.cxx 8 additions, 3 deletionsalien/src/TAlien.cxx
- alien/src/TAlienCollection.cxx 55 additions, 4 deletionsalien/src/TAlienCollection.cxx
- alien/src/TAlienFile.cxx 15 additions, 5 deletionsalien/src/TAlienFile.cxx
- alien/src/TAlienResult.cxx 75 additions, 2 deletionsalien/src/TAlienResult.cxx
- base/Module.mk 1 addition, 1 deletionbase/Module.mk
- base/inc/LinkDef3.h 2 additions, 1 deletionbase/inc/LinkDef3.h
- base/inc/TDirectory.h 3 additions, 3 deletionsbase/inc/TDirectory.h
- base/inc/TFile.h 74 additions, 72 deletionsbase/inc/TFile.h
- base/src/TFile.cxx 2 additions, 2 deletionsbase/src/TFile.cxx
- io/inc/TFile.h 74 additions, 72 deletionsio/inc/TFile.h
- io/src/TFile.cxx 2 additions, 2 deletionsio/src/TFile.cxx
- net/inc/TGrid.h 2 additions, 9 deletionsnet/inc/TGrid.h
- net/inc/TGridResult.h 7 additions, 1 deletionnet/inc/TGridResult.h
- tree/inc/TChain.h 4 additions, 1 deletiontree/inc/TChain.h
- tree/src/TChain.cxx 59 additions, 1 deletiontree/src/TChain.cxx
Loading
Please register or sign in to comment