RE: [ROOT] GetDataMemberOffset error and TClonesArray

From: Philippe Canal (pcanal@fnal.gov)
Date: Tue Mar 23 2004 - 17:17:30 MET


Hi Heather,

> Has this really been fixed?

I think so.  If this still does not work with ROOT 4.00/02 or 4.00/03, let
me know
how to reproduce it.

Cheers,
Philippe.


-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Heather Kelly
Sent: Tuesday, March 23, 2004 1:39 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] GetDataMemberOffset error and TClonesArray


Hi,

I'm using Root 3.10.02 on RedHat 9.

I see a previous thread that is related to my own troubles, which was
apparently fixed back in July 2003:
http://root.cern.ch/cgi-bin/print_hit_bold.pl/root/roottalk/roottalk03/3089.
html?GetDataMemberOffsetobsolete#first_hit

Currently I am seeing similar behavior:
root [2] TFile f("check.root","RECREATE")
root [3] TTree *t = new TTree("myTree", "test")
root [4] DigiEvent *evt = new DigiEvent();
root [5] t->Branch("DigiEvent", "DigiEvent", &evt, 64000, 99)
Error in <TBranchElement::GetDataMemberOffset>: obsolete call with
(CalDigi,m_calDigiCloneCol)
(class TBranch*)0x880db40

That call to TBranchElement::GetDataMemberOffset("CalDigi", "m_calDigiCol")
fails, since there is no m_calDigiCloneCol data member in the CalDigi class
- rather it is a data member of the main data object,
DigiEvent.  m_calDigiCloneCol is a TClonesArray of CalDigi objects.

This same call to create a branch succeeds just fine when the split level
is set to 1.

Has this really been fixed?

Thanks,
Heather


#################################################################
#################################################################
#################################################################
#####
#####
#####
#################################################################
#################################################################
#################################################################



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET