Dear expert
I am using pyROOT to create RooHistPdf and use it.
The problem lies with the RooHistPdf object. It seems that even when I define it as self.pdf = RooHistPdf(), the content of RooHistPdf gets deleted once the member function completes, although the type of the instance is retained.
For example, when I define sigpdf in one function (HZZAnalysis/SignalModel/ConstructSiganl2l2q.py at cbf0b63514ad533371ce5ae470d9df8672f9d11f · jialin-guo1/HZZAnalysis · GitHub), I am unable to use it in another function (HZZAnalysis/SignalModel/ConstructSiganl2l2q.py at cbf0b63514ad533371ce5ae470d9df8672f9d11f · jialin-guo1/HZZAnalysis · GitHub). when I check the type of sigpdf outside the function. it is still a RooHistPdf but no content in it.
Best
Jialin