Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

/Go4Event/TGo4ClonesElement.h

Go to the documentation of this file.
00001 //---------------------------------------------------------------
00002 //        Go4 Release Package v2.10-5 (build 21005) 
00003 //                      03-Nov-2005
00004 //---------------------------------------------------------------
00005 //       The GSI Online Offline Object Oriented (Go4) Project
00006 //       Experiment Data Processing at DVEE department, GSI
00007 //---------------------------------------------------------------
00008 //
00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI
00010 //                    Planckstr. 1, 64291 Darmstadt, Germany
00011 //Contact:            http://go4.gsi.de
00012 //----------------------------------------------------------------
00013 //This software can be used under the license agreements as stated
00014 //in Go4License.txt file which is part of the distribution.
00015 //----------------------------------------------------------------
00016 #ifndef TGO4CLONESELEMENT_H
00017 #define TGO4CLONESELEMENT_H
00018 
00019 #include "TGo4EventElement.h"
00020 
00021 #include "TNamed.h"
00022 #include "TBranch.h"
00023 #include "TCollection.h"
00024 #include "TClonesArray.h"
00025 #include "TTree.h"
00026 
00027 class TGo4ClonesElement : public TGo4EventElement {
00028   protected:
00030      TString fClassName; 
00031      
00033      Int_t fNDataObjs; 
00034      
00036      TClonesArray *fData; 
00037 
00038   public:
00039      TGo4ClonesElement(void);
00040      TGo4ClonesElement(const char* className, 
00041                        Int_t size,
00042                        const char* aName=0,
00043                        const char* aTitle=0, 
00044                        Short_t aBaseCat=0);
00045      virtual ~TGo4ClonesElement(void);
00046 
00047      virtual void makeBranch(TBranch *parent);
00048      virtual Int_t activateBranch(TBranch *branch,Int_t splitLevel, Int_t init=0);
00049      virtual void clearAll(Int_t level){}
00050      virtual void Clear(Option_t *t="");
00051 
00052      virtual TObject* getObject(Int_t index);
00053      Short_t  getId(){ return fIdentifier;}
00054      TObject *&getSlot();
00055      virtual TClonesArray* getData() { return fData;}
00056 
00057    ClassDef(TGo4ClonesElement,1) // Data level
00058 };
00059 
00060 #endif
00061 
00062 //----------------------------END OF GO4 SOURCE FILE ---------------------

Generated on Tue Nov 8 10:55:52 2005 for Go4-v2.10-5 by doxygen1.2.15