39 :
TLeaf(parent, name,type)
73 object->SetUniqueID(123456789);
78 Error(
"FillBasket",
"Attempt to write a NULL object in leaf:%s",
GetName());
91 char *namecpy =
new char[strlen(name)+1];
93 char *params = strchr(namecpy,
'(');
94 if (params) { *params = 0; params++; }
95 else params = (
char *)
")";
101 Error(
"GetMethodCall",
"Unknown method:%s",name);
162 Warning(
"ReadBasket",
"%s::Streamer not available, using TClass::ReadBuffer instead",
fClass->
GetName());
190 void TLeafObject::Streamer(
TBuffer &b)
195 if (R__v > 3 || R__v == 2) {
virtual const char * GetTitle() const
Returns title of object.
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
Bool_t IsOnTerminalBranch() const
Return true if this leaf is does not have any sub-branch/leaf.
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
Bool_t fVirtual
Address of Pointer to object.
virtual void SetAddress(void *add)
Set address of this branch.
A TLeaf for a general object derived from TObject.
Long_t Property() const
Set TObject::fBits and fStreamerType to cache information about the class.
Buffer base class used for serializing objects.
TBranch * GetBranch() const
Int_t GetEntriesFast() const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
Int_t ReadBuffer(TBuffer &b, void *pointer, Int_t version, UInt_t start, UInt_t count)
Function called by the Streamer functions to deserialize information from buffer b into object at p...
const char * Data() const
void * New(ENewType defConstructor=kClassNew, Bool_t quiet=kFALSE) const
Return a pointer to a newly allocated object of this class.
TMethodCall * GetMethodCall(const char *name)
Returns pointer to method corresponding to name.
TClass * fClass
pointer to the foreign object
const char * GetTypeName() const
Returns name of leaf type.
TObjArray * GetListOfBranches()
virtual void ReadBasket(TBuffer &b)
Read leaf elements from Basket input buffer.
Method or function calling interface.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void * GetValuePointer() const
ClassImp(TLeafObject) TLeafObject
Default constructor for LeafObject.
void ** fObjAddress
pointer to class
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void SetAddress(void *add=0)
Set leaf buffer data address.
void Destructor(void *obj, Bool_t dtorOnly=kFALSE)
Explicitly call destructor for object.
virtual ~TLeafObject()
Default destructor for a LeafObject.
Bool_t TestBit(UInt_t f) const
virtual const char * GetName() const
Returns name of object.
virtual void ReadFastArray(Bool_t *b, Int_t n)=0
virtual void WriteFastArray(const Bool_t *b, Int_t n)=0
virtual void FillBasket(TBuffer &b)
Pack leaf elements in Basket output buffer.
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
TFunction * GetMethod()
Returns the TMethod describing the method to be executed.
virtual Bool_t Notify()
This method must be overridden to handle object notifcation.
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
Bool_t IsAutoDelete() const
Return kTRUE if an existing object in a TBranchObject must be deleted.
TObject * GetObject() const
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
virtual UInt_t GetUniqueID() const
Return the unique object id.
Mother of all ROOT objects.
A TTree is a list of TBranches.
virtual void SetTitle(const char *title="")
Change (i.e. set) the title of the TNamed.
virtual void PrintValue(Int_t i=0) const
Prints leaf value.
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.