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