Re: [ROOT] Create my own class without compilation

From: Jacek M. Holeczek (holeczek@us.edu.pl)
Date: Wed Apr 04 2001 - 08:52:52 MEST


> (...)
> root [0]  .L Myclass.C
> (...)
> root [3] event = new Event();
> (...)
> root [6] mytree->Branch("event", "Event", &event, bufsize,split);
> Error in <TTree::BranchObject>: Cannot find class:Event
> 
> It seems not to recognize my class Event. Do you have any idea?

To me it seems that you meet the limitation that using interpreted class
you cannot do ROOT I/O. Most probably you should inherit from TObject and
try to use ACLiC. For examples see chapters :
	"CINT the C++ Interpreter" -> "ACLiC - The Automatic Compiler ..."
	"Adding a Class" -> "Adding a Class with ACLiC"
Jacek.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:41 MET