Hi Rooters,
since I upgraded to ROOT v3.03/06 (as recommended by Rene), I am
experiencing
problems with trees. For example, if I run the following macro using the
Event class in ./root/test/, I get a segmentation violation at the
T->Print() statement, while everything worked without problems under
v3.02.
ROOT: 3.03/06
Linux Kernel 2.4.9-31.1.cern
Does anybody have a hint on what could be wrong?
Thank you,
Bernhard
void write() {
gROOT->Reset();
gSystem->Load("libEvent.so");
TFile f("Event.root","recreate");
TTree *T = new TTree("T","Event example");
Event *event = new Event();
T->Branch("event","Event",&event,16000,2);
T->Print();
for (Int_t ev=0;ev<100;ev++) {
printf("Event :%d\n",ev);
event->Build(ev, 600, 1.);
T->Fill();
}
T->Print();
T->Write();
}
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:59 MET