|
BrDataObjectclass description - source file - inheritance tree class BrDataObject : public TObjectpublic: Data Membersprotected: See also
Class DescriptionBrDataObject 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. This class defines the method Print, which will print the basic information on a data obejct. Derived class should overload this method as: void <derived class>::Print(Option_t* option) const { // Print information on this instance of <derived class> // Options: // <list options here> // See also BrDataObject for additional options BrDataObject::Print(option); <print the relevant information> } The overloaded method should not print the name or anything like that. That is taken care of in BrDataObject::Print. ____________________________________________________________________ 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(const Char_t *name, const 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 Char_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. void Print(Option_t* option) const Print information on this data object. Options: D Details C Creator information [not used yet] Inline FunctionsBool_t IsPersistent() const Bool_t IsNode() const Bool_t IsTable() const void SetPersistent(Bool_t b) const Char_t* GetName() const const Char_t* GetTitle() const TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) BrDataObject BrDataObject(BrDataObject&) |
||||||
This page automatically generated by script docBrat by Christian Holm |
Copyright ; 2002 BRAHMS Collaboration
<brahmlib@rcf.rhic.bnl.gov>
|