Hi, why does the follwing work on Linux (Suse 7.3, root 3.02/06) but not on Alpha (Tru64 Unix 5.1, root 3.02/07): void *ptr = NULL; TFile file("name", "RECREATE", "", 9); TTree *T1=new TTree("P", ""); TTree *T2=new TTree("E", ""); TBranch *B1=T1->Branch("MPhoton.", "MPhoton", &ptr); TBranch *B2=T2->Branch("MElectron.", "MElectron", &ptr); while MPhoton and MElectron are only container classes (derived from TObject) storing values (no arrays, no pointers, only floats). The Address is later on setup with B1/B2->SetAddress(..) before calling Fill. On Alpha the second call to T2->Branch craches... Thanks, Thomas.
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:00 MET