BrDataObject


class description - source file - inheritance tree

class BrDataObject : public TObject


    public:
BrDataObject BrDataObject(Char_t* Name, Char_t* Title = NULL) BrDataObject BrDataObject(BrDataObject&) BrDataObject BrDataObject() void ~BrDataObject() TClass* Class() virtual void Copy(BrDataObject& dataobject) virtual const Text_t* GetName() virtual const Text_t* GetTitle() virtual TClass* IsA() virtual Bool_t IsNode() virtual Bool_t IsPersistent() virtual void SetCreationID(TObject* Creator) virtual void SetName(Text_t* name) virtual void SetPersistent(Bool_t b) virtual void SetTitle(Text_t* title) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
Bool_t fIsPersistent Flag marking object as persistent Char_t fName[64] Name of data object; Char_t fTitle[64] Title of data object;


See also

BrDataTable, BrEventNode

Class Description

                                                                   
 BrDataObject is the base class for all BRAHMS classes             
 containing data, either as raw data from the DAQ or               
 calibrated data from the calibration procedures or the            
 results from the reconstruction or analysis processors.           
                                                                   
 The main purpose of the BrDataObject class is to provide          
 a uniform interface for bookkeeping, information exchange         
 between procedural classes and persistent I/O                     
                                                                   
 The individual data objects referring to one event are            
 kept with the BrEvent object, where they are stored in            
 a hash table using a unique name for retrieval.                   
                                                                   


BrDataObject()
 Default constructor. Does nothing.
 Don't use this constructor unless you have to and know
 what you are doing
 Use BrDataObject(Char_t *name) instead.

BrDataObject(Char_t *Name, Char_t *Title)
 Constructor. Create the data container setting the name
 (and title, if supplied)


~BrDataObject()
 Destructor. Delete BrDataObject and all the data objects
 currently owned by BrDataObject

void SetCreationID(TObject *Creator)
 Store the details on when, by which calling class and by
 which user the data object was added to the event.

void SetName(const Text_t *name)
Set Name of object.
This object does not inherit from TNamed as originally because ROOT crashes
when a BrDataObject is used in the top level of a Tree with split=1
Problem was traced back to TString not writing or reading (or both) correctly.  We
therefore inherit from TObject and set our own name as a character variable.

void SetTitle(const Text_t *title)
Set Title of object.
This object does not inherit from TNamed as originally because ROOT crashes
when a BrDataObject is used in the top level of a Tree with split=1
Problem was traced back to TString not writing or reading (or both) correctly.  We
therefore inherit from TObject and set our own title as a character variable.

void Copy(BrDataObject &dataobject)
Copy method.  Copy All elements of object from argument; also involk copy method
of object we inherit from.



Inline Functions


               Bool_t IsPersistent()
               Bool_t IsNode()
                 void SetPersistent(Bool_t b)
        const Text_t* GetName()
        const Text_t* GetTitle()
              TClass* Class()
              TClass* IsA()
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
         BrDataObject BrDataObject(BrDataObject&)


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.