Running roofit with custom PDF class with pointers as member


I found that if I put any pointer as a member into a PDF class PROOF will crash due to Seg Faults. In the example psuedo codes below the instruction of the TH1* causes the seg fault. I’ve tried initializing it in the constructor , making it public and tried just using int * myint for example. Anytime I put a pointer there, the job crashes. It probably has to do with other parallel processes not having access to the memory address. I was wondering if someone has found a way around this.

class mypdf : public RooAbsPdf {
mypdf() {} ;
mypdf(const char *name, const char *title,RooAbsReal& _x);

TH1 * myhist;




What are doing in PROOF with the class? Streaming?
Where is the crash?

Which version of ROOT?

G. Ganis