Hi Rooters, our software crashes if I try to fill a custom class which contains a vaild pointer to an empty TClonesArray into a TTree.The default constructor of our class is similar to the event example that comes with root. The software crashes after the following calling sequence: TBranchclones->Fill(); ->GetEntriesFast(); ->GetAbsLast(); Is this the supposed behaviour or did we write stupid code ?? Cheers, Norbert MTEventRaw::MTEventRaw() { MultWire=MultBgoR=MultAnti=MultT=MultCosmic=MultPlane=0; EventNumber = 0; if(!gWireList) { gWireList = new TClonesArray("MTWireRaw", MAX_MULT_WIRE); ..... } //initialize Pointers to global lists WireList=gWireList; BgoListR=gBgoListR; AntiList=gAntiList; TList=gTList; CosmicList=gCosmicList; } -- Norbert Danneberg ETH Zurich - Institute for Particle Physics Laboratory for Nuclear Physics Phone.: +41-1-633-2034 Hoenggerberg Fax.: +41-1-633-1067 CH-8093 Zurich ETH Zurich - Institute for Particle Physics Paul Scherrer Institute Phone.: +41-56-310-3284 CH-5232 Villigen PSI Fax.: +41-56-310-4362 email: Norbert.Danneberg@psi.ch
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:29 MET