Error at GetEvent()

Hello,

I got a segmentation fault when trying to retrieve an event from a tree with the following command:
EventCut *TreeCut = new EventCut();

TreeCut->fChainCut->GetEvent(jentry);
TreeCut is an object of the class EventCut which has as member the TChain fChainCut.
Note that I could successfully run the code on Scientific Linux, and I got this error with ROOT>5.34.21 on Mac OS X.

The error message looks like this:
*** Break *** segmentation violation
Generating stack trace…
0x000000010c0313a6 in TBranch::GetEntry(long long, int) (in libTree.so) + 326
0x000000010c042b6d in TBranchElement::GetEntry(long long, int) (in libTree.so) + 173
0x000000010c07fc98 in TTree::GetEntry(long long, int) (in libTree.so) + 168
0x000000010a22806c in main (in runAnalysisCut) + 13900
0x00007fff8f7445fd in start (in libdyld.dylib) + 1

Do you have any suggestion?
Cheers,
Anna

We need the definition of EventCut to debug this.

Hello, the definition of EventCut is attached.
Cheers,
Anna
EventCut.h (14.6 KB)
EventCut.C (45 KB)


root [0] .L EventCut.C
In file included from input_line_10:1:
/Users/couet/Downloads/EventCut.C:376:1: warning: '/*' within block comment
      [-Wcomment]
/*
^
root [1] EventCut *TreeCut = new EventCut();
Error in <TFile::TFile>: file ../rootfiles/psp151008_112mocut.root does not exist
root [2] 

Here is a sample file (name is different from the one in the code).
Anna
psp151006_full_2.root (112 KB)