Use TCutG object in TSelector

Hi All,

I have been trying to read a TCutG object from a root file and then apply it as a condition in the member function Process() for each entry. However, I found that in the function Begin(), the TCutG pointer is recognized while in Process() it is not (it is always a null ponter here). Can someone help solve this problem? Thanks a lot!

The associated files are attached below. The TCutG object I wanted to use is blob53 which is saved in XBlobs.root .

XSelector.C (3.5 KB)
XSelector.h (29.5 KB)

The root file is here:
XBlobs.root (12.2 KB)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.