I send a post in PROOF support last week but i think PROOF is not my problem, it’s TPySelector. I’ve created a TPySelector class, called Selec_good.py, to analyze a TTree file, “mytree.root”. At the moment, to make it easy and focus the problem, I only analyze one of the branches. I want to do this using PROOF (since a main file, main.py, attached below) but It doesn’t work, it displays an error “Events skipped”. If i run the same analysis (I think it is the same) in C++ or without chain.setProof() line, it gives me the correct output.
Script unrunnable: load external modules, etc. Can not know problem is problem with script, setup, …
Guess: not have PYTHONPATH envar point Selec_good.py location.
Guess also: Selec_good data members only set on Begin() and is not called on slave. Better init or both Begin/SlaveBegin set all envar.
My problem is fixed! I hadn’t copied the Selec_good.py module to the PYTHONPATH location. And yes, i have to create the histograms and other members in the SlaveBegin function.