BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrDataObject


class description - source file - inheritance tree

class BrDataObject : public TObject


    public:
BrDataObject BrDataObject() BrDataObject BrDataObject(const Char_t* name, const Char_t* title = "NULL") BrDataObject BrDataObject(BrDataObject&) virtual void ~BrDataObject() static TClass* Class() virtual void Copy(BrDataObject& dataobject) virtual const Char_t* GetName() const virtual const Char_t* GetTitle() const virtual TClass* IsA() const virtual Bool_t IsNode() const virtual Bool_t IsPersistent() const virtual Bool_t IsTable() const virtual void Print(Option_t* option) const virtual void SetCreationID(TObject* Creator) virtual void SetName(const Text_t* name) virtual void SetPersistent(Bool_t b) virtual void SetTitle(const Text_t* title) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(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; public:
static const Float_t kInvalidValue


See also

BrBbCalHits, BrBbRdo, BrBbVertex, BrC1Dig, BrChkvRdo, BrDataTable, BrDvDig, BrEventNode, BrGeantHeader, BrInelVertex, BrMultCent, BrMultRdo, BrRichDig, BrSiCent, BrSiDig, BrTMrsFRdo, BrTd1Rdo, BrTileCent, BrTileDig, BrTofRdo, BrTpcFibDig, BrTpcRdo, BrTrigScaler, BrTrigStart, BrVertex, BrZdcDig, BrZdcRdo

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.

 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 Functions


               Bool_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>
Last Update on 2001/06/21 14:54:58 $ by hagel $

Validate HTML
Validate CSS