Re: [ROOT] Alpha/Linux and a TTree::Branch crash

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Wed Jul 24 2002 - 18:40:33 MEST


Hi Thomas,

 please provide a runable example so we can quickly test.

Cheers, Fons.



On Wed, 2002-07-24 at 11:13, Thomas Bretz wrote:
> 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.
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:00 MET