Greetings,
I’ve implemented a small macro to process several TTree’s with a TChain using the Selector code produced from TChain::MakeSelector(), to be use in PROOF-Lite.
I’ve added the file information to the TChain via TFileCollection like this
TFileCollection *fc=new TFileCollection("fc","alldata","list_small.txt");
chain->AddFileInfoList(fc->GetList());
The output is
[code][lsilva@fermi03 tree]$ root -l run.cc
root [0]
Processing run.cc…
+++ Starting PROOF-Lite with 4 workers +++
Opening connections to workers: OK (4 workers)
Setting up worker servers: OK (4 workers)
PROOF set to parallel mode (4 workers)
Info in TProofLite::SetQueryRunning: starting query: 1
Info in TProofQueryResult::SetRunning: nwrks: 4
Looking up for exact location of files: OK (1 files)
Looking up for exact location of files: OK (1 files)
Info in TPacketizerAdaptive::TPacketizerAdaptive: Setting max number of workers per node to 4
Error in TPacketizerAdaptive::ValidateFiles: cannot get entries for file: /u/data/comp/lsilva/analise/HADES/tree/tree_096_1.root - skipping
Info in TPacketizerAdaptive::InitStats: no valid or non-empty file found: setting invalid
Error in TProofPlayerLite::InitPacketizer: instantiated packetizer object ‘TPacketizerAdaptive’ is invalid
Error in TProofPlayerLite::Process: cannot init the packetizer
Info in TProofLite::UpdateDialog: processing was aborted - 0 events processed
[/code]
I think the problem is how the file information is interpreted in PROOF-Lite.
I’m new using PROOF, so for sure problem is very simple. Any hint?
I’ve attached a simple example to reproduce my problem: a list with one root file containing a TTree, the selector code and the main macro to run it.
Many thanks in advance.
Cheers,
Luís.
tree_096_1.root (5.92 KB)
mytree.C (3.33 KB)
mytree.h (5.12 KB)
run.cc (454 Bytes)
list_small.txt (55 Bytes)