/* It looks like problem lies somwhere within XEvent constructor/destructor */ #include "TFile.h" #include "TTree.h" #include "TClonesArray.h" #include "XEvent.h" #include "TLine.h" #include "TRandom.h" #include "Tmath.h" #include using namespace std; void Test(int splot=0,int buff=32000){ cout<<"Here is the beginning"<Branch("min_branch","XEvent",&xe,buff,splot); //The error magically disappers when I change splitting level?? why is that?? //Create 15 events and add them to my tree for(Int_t eve=1;eve<16;eve++){ bull=0; ball=0; Int_t event_value=(Int_t) floor(gRandom->Uniform(0,100)); cout<<"Writing entry eve="<SetEventNumber(eve); for(int ii=0;ii<3;ii++){ xe->AddVadc(eve+ii,event_value+ii); xe->AddVtdc(eve+ii,2*event_value+ii); bull=(TVadc*) xe->GetVadc()->At(ii); cout<<"The adc loop i="<Index()<<" data: "<Data()<GetVtdc()->At(ii); cout<<"The tdc loop i="<Index()<<" data: "<Data()<