Hi Wim,
Here is the code attached and see below for the output.
[code]siva > python test.py /Users/cppualberta/afsWorkContent/MultiplicityAnalysis/mc12/Root/mc12_8TeV.147913.Pythia8_AU2CT10_jetjet_JZ3W.merge.NTUP_SUSY.e1126_s1469_s1470_r3542_r3549_p1032_tid00810393_00/NTUP_SUSY.00810393._000019.root.1
sys.argv = [‘test.py’, ‘/Users/cppualberta/afsWorkContent/MultiplicityAnalysis/mc12/Root/mc12_8TeV.147913.Pythia8_AU2CT10_jetjet_JZ3W.merge.NTUP_SUSY.e1126_s1469_s1470_r3542_r3549_p1032_tid00810393_00/NTUP_SUSY.00810393._000019.root.1’]
inputFiles = [’/Users/cppualberta/afsWorkContent/MultiplicityAnalysis/mc12/Root/mc12_8TeV.147913.Pythia8_AU2CT10_jetjet_JZ3W.merge.NTUP_SUSY.e1126_s1469_s1470_r3542_r3549_p1032_tid00810393_00/NTUP_SUSY.00810393._000019.root.1’]
+++ 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
py: beginning
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
Validating files: OK (1 files)
Info in TPacketizerAdaptive::InitStats: fraction of remote files 1.000000
entries: 100 (100)tput objects … \ (2 workers still sending)
Info in TPacketizerAdaptive::InitStats: fraction of remote files 1.000000
py: terminating output objects … / (1 workers still sending)
Lite-0: all output objects have been merged
0
[/code].
So, in the above dataset, I am using TDSet. Now I will use TChain by commenting the TDSet line in test.py and also not set the dataset.SetProof() ie. this will also be commented and here is my output below.
siva > python test.py /Users/cppualberta/afsWorkContent/MultiplicityAnalysis/mc12/Root/mc12_8TeV.147913.Pythia8_AU2CT10_jetjet_JZ3W.merge.NTUP_SUSY.e1126_s1469_s1470_r3542_r3549_p1032_tid00810393_00/NTUP_SUSY.00810393._000019.root.1
sys.argv = ['test.py', '/Users/cppualberta/afsWorkContent/MultiplicityAnalysis/mc12/Root/mc12_8TeV.147913.Pythia8_AU2CT10_jetjet_JZ3W.merge.NTUP_SUSY.e1126_s1469_s1470_r3542_r3549_p1032_tid00810393_00/NTUP_SUSY.00810393._000019.root.1']
inputFiles = ['/Users/cppualberta/afsWorkContent/MultiplicityAnalysis/mc12/Root/mc12_8TeV.147913.Pythia8_AU2CT10_jetjet_JZ3W.merge.NTUP_SUSY.e1126_s1469_s1470_r3542_r3549_p1032_tid00810393_00/NTUP_SUSY.00810393._000019.root.1']
+++ 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)
TClass::TClass:0: RuntimeWarning: no dictionary for class AttributeListLayout is available
TClass::TClass:0: RuntimeWarning: no dictionary for class pair<string,string> is available
py: beginning
py: slave beginning
py: process beginning
py: processing 17
py: process beginning
py: processing 8 ...
...
...
py: processing 10
py: slave terminating
py: terminating
0
Now, this is the output below when I set dataset.SetProof() using TChain only.
[code]siva > python test.py /Users/cppualberta/afsWorkContent/MultiplicityAnalysis/mc12/Root/mc12_8TeV.147913.Pythia8_AU2CT10_jetjet_JZ3W.merge.NTUP_SUSY.e1126_s1469_s1470_r3542_r3549_p1032_tid00810393_00/NTUP_SUSY.00810393._000019.root.1
sys.argv = [‘test.py’, ‘/Users/cppualberta/afsWorkContent/MultiplicityAnalysis/mc12/Root/mc12_8TeV.147913.Pythia8_AU2CT10_jetjet_JZ3W.merge.NTUP_SUSY.e1126_s1469_s1470_r3542_r3549_p1032_tid00810393_00/NTUP_SUSY.00810393._000019.root.1’]
inputFiles = [’/Users/cppualberta/afsWorkContent/MultiplicityAnalysis/mc12/Root/mc12_8TeV.147913.Pythia8_AU2CT10_jetjet_JZ3W.merge.NTUP_SUSY.e1126_s1469_s1470_r3542_r3549_p1032_tid00810393_00/NTUP_SUSY.00810393._000019.root.1’]
+++ 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
py: beginning
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
Validating files: OK (1 files)
Info in TPacketizerAdaptive::InitStats: fraction of remote files 1.000000
entries: 100 (100)tput objects … \ (2 workers still sending)
Info in TPacketizerAdaptive::InitStats: fraction of remote files 1.000000
py: terminating output objects … / (1 workers still sending)
Lite-0: all output objects have been merged
0
[/code]
My ROOT version is
[code]siva > root -v
ROOT 5.34/00 (branches/v5-34-00-patches@44569, Jun 05 2012, 15:31:56 on macosx64)
CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0]
[/code]
So, if you see, setting PROOF somehow does not work even in this basic version of the code.
Thanks for helping out,
Cheers,
Siva.
test.py (526 Bytes)
aapje.py (587 Bytes)