Attempt with PyROOT:
import sys
import os
import ROOT as R
R.gROOT.SetBatch(1)
ch=R.TChain("T")
ch.Add(sys.argv[1])
selectorPath = "/home/rahmans/analysis/analyse_col/processD.C+"
sel = R.TSelector.GetSelector(selectorPath);
sel.SetOption(sys.argv[2]+","+sys.argv[3])
print("selector used is: "+ selectorPath+" with option "+sel.GetOption())
pool=R.TTreeProcessorMP(4)
pool.Process(ch, sel);
sel.GetOutputList().Delete();
Error:
TList::Merge:0: RuntimeWarning: list is empty - nothing to merge
TCanvas::Constructor:0: RuntimeWarning: Deleting canvas with same name: c
TCanvas::Constructor:0: RuntimeWarning: Deleting canvas with same name: c1
*** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x00002b7b8730d82e in waitpid () from /lib64/libc.so.6
#1 0x00002b7b8729f479 in do_system () from /lib64/libc.so.6
#2 0x00002b7b9187d90c in TUnixSystem::StackTrace() () at /home/software/src/geant4/2018/root-6.14.04/core/unix/src/TUnixSystem.cxx:2119
#3 0x00002b7b9187ff83 in TUnixSystem::DispatchSignals(ESignals) () at /home/software/src/geant4/2018/root-6.14.04/core/unix/src/TUnixSystem.cxx:3644
#4 <signal handler called>
#5 0x00002b7ba011f92f in processD::Terminate() () from /home/rahmans/analysis/analyse_col/processD_C.so
#6 0x00002b7b8ea2b6d8 in ROOT::TTreeProcessorMP::Process(TTree&, TSelector&, TEntryList&, unsigned long long, unsigned long long) () at /home/software/src/geant4/2018/root-6.14.04/tree/treeplayer/src/TTreeProcessorMP.cxx:149
#7 0x00002b7b8ea2cef2 in ROOT::TTreeProcessorMP::Process(TTree&, TSelector&, unsigned long long, unsigned long long) () at /home/software/src/geant4/2018/root-6.14.04/tree/treeplayer/src/TTreeProcessorMP.cxx:319
#8 0x00002b7b980fd074 in ?? ()
#9 0x00000000052c5820 in ?? ()
#10 0x00002b7b980fd000 in ?? ()
#11 0x00007ffc663f4cc0 in ?? ()
#12 0x0000000000000007 in ?? ()
#13 0x0036315f66635f5f in ?? ()
#14 0x00007ffc663f4ad0 in ?? ()
#15 0x0000000005325b10 in ?? ()
#16 0x0000000000000594 in ?? ()
#17 0x0000000000000594 in ?? ()
#18 0x0000000000000000 in ?? ()
===========================================================
The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at http://root.cern.ch/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#5 0x00002b7ba011f92f in processD::Terminate() () from /home/rahmans/analysis/analyse_col/processD_C.so
#6 0x00002b7b8ea2b6d8 in ROOT::TTreeProcessorMP::Process(TTree&, TSelector&, TEntryList&, unsigned long long, unsigned long long) () at /home/software/src/geant4/2018/root-6.14.04/tree/treeplayer/src/TTreeProcessorMP.cxx:149
#7 0x00002b7b8ea2cef2 in ROOT::TTreeProcessorMP::Process(TTree&, TSelector&, unsigned long long, unsigned long long) () at /home/software/src/geant4/2018/root-6.14.04/tree/treeplayer/src/TTreeProcessorMP.cxx:319
#8 0x00002b7b980fd074 in ?? ()
#9 0x00000000052c5820 in ?? ()
#10 0x00002b7b980fd000 in ?? ()
#11 0x00007ffc663f4cc0 in ?? ()
#12 0x0000000000000007 in ?? ()
#13 0x0036315f66635f5f in ?? ()
#14 0x00007ffc663f4ad0 in ?? ()
#15 0x0000000005325b10 in ?? ()
#16 0x0000000000000594 in ?? ()
#17 0x0000000000000594 in ?? ()
#18 0x0000000000000000 in ?? ()
===========================================================
Traceback (most recent call last):
File "processD.py", line 20, in <module>
pool.Process(ch, sel);
TypeError: none of the 10 overloaded methods succeeded. Full details:
TList* ROOT::TTreeProcessorMP::Process(const vector<string>& fileNames, TSelector& selector, TEntryList& entries, const string& treeName = "", ULong64_t nToProcess = 0, ULong64_t jFirst = 0) =>
takes at least 3 arguments (2 given)
TList* ROOT::TTreeProcessorMP::Process(const string& fileName, TSelector& selector, TEntryList& entries, const string& treeName = "", ULong64_t nToProcess = 0, ULong64_t jFirst = 0) =>
takes at least 3 arguments (2 given)
TList* ROOT::TTreeProcessorMP::Process(TFileCollection& files, TSelector& selector, TEntryList& entries, const string& treeName = "", ULong64_t nToProcess = 0, ULong64_t jFirst = 0) =>
takes at least 3 arguments (2 given)
TList* ROOT::TTreeProcessorMP::Process(TChain& files, TSelector& selector, TEntryList& entries, const string& treeName = "", ULong64_t nToProcess = 0, ULong64_t jFirst = 0) =>
takes at least 3 arguments (2 given)
TList* ROOT::TTreeProcessorMP::Process(TTree& tree, TSelector& selector, TEntryList& entries, ULong64_t nToProcess = 0, ULong64_t jFirst = 0) =>
takes at least 3 arguments (2 given)
TList* ROOT::TTreeProcessorMP::Process(const vector<string>& fileNames, TSelector& selector, const string& treeName = "", ULong64_t nToProcess = 0, ULong64_t jFirst = 0) =>
could not convert argument 1
TList* ROOT::TTreeProcessorMP::Process(const string& fileName, TSelector& selector, const string& treeName = "", ULong64_t nToProcess = 0, ULong64_t jFirst = 0) =>
could not convert argument 1
TList* ROOT::TTreeProcessorMP::Process(TFileCollection& files, TSelector& selector, const string& treeName = "", ULong64_t nToProcess = 0, ULong64_t jFirst = 0) =>
could not convert argument 1
TList* ROOT::TTreeProcessorMP::Process(TChain& files, TSelector& selector, const string& treeName = "", ULong64_t nToProcess = 0, ULong64_t jFirst = 0) =>
problem in C++; program state has been reset
TList* ROOT::TTreeProcessorMP::Process(TTree& tree, TSelector& selector, ULong64_t nToProcess = 0, ULong64_t jFirst = 0) =>
problem in C++; program state has been reset