Hello,
I use TChain following my ROOT users guide:
TChain chain("mytree");
chain.Add("filename1.root");
chain.Add("filename2.root");
...
...
MyClass *obj = new MyClass();
chain.SetBranchAddress("obj",&obj);
Int_t nentries = chain->GetEntries();
for(Int_t i=0; i<entries; i++) {
chain.GetEvent(i);
}
}
What I obtain is:
Error in <TBuffer::CheckByteCount>: object of class MyClass read too
many bytes
What is the matter?
Thanks for any help,
Giusepe Lo Re
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:02 MET