00001 // $Id: TGo4SimpleEvent.h 1037 2013-11-06 13:39:24Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4SIMPLEEVENT_H 00015 #define TGO4SIMPLEEVENT_H 00016 00017 #include "TGo4EventElement.h" 00018 00019 #include "TClonesArray.h" 00020 00021 class TIterator; 00022 class TGo4MbsSubEvent; 00023 class TGo4SimpleSubEvent; 00024 00033 class TGo4SimpleEvent : public TGo4EventElement { 00034 00035 friend class TGo4SimpleEventProcessor; 00036 00037 public: 00038 TGo4SimpleEvent(); 00039 00040 TGo4SimpleEvent(Int_t subevtnum); 00041 00042 virtual ~TGo4SimpleEvent() ; 00043 00053 virtual Int_t Fill(); 00054 00059 virtual void Clear(Option_t *t=""); 00064 void ResetIterator(); 00065 00071 TGo4SimpleSubEvent* NextSubEvent(); 00072 00073 void PrintEvent(); 00074 00079 TGo4SimpleSubEvent * GetSubEvent(Short_t procid); 00080 00086 TGo4SimpleSubEvent * AddSubEvent(Short_t procid); 00087 00088 Int_t GetCount() const; 00089 00090 private: 00091 Int_t fiCount; 00092 00096 Int_t fiLastSlot; 00097 00101 Int_t fiMaxSlot; 00102 00107 /*# TGo4SimpleSubEvent fxSubEventArray1; */ 00108 TClonesArray* fxSubEventArray; 00109 00110 Int_t fiArrLen; 00111 00112 Int_t fiTestArray[10]; //[fiArrLen] 00113 00114 char fcTestCharArr[10]; //[fiArrLen] 00118 TIterator * fxIterator; 00119 00120 // TGo4SimpleSubEvent fxFirstsubevent; 00121 // TGo4SimpleSubEvent fxSecondsubevent; 00122 // TGo4MbsSubEvent fxTestSub; 00123 00124 ClassDef(TGo4SimpleEvent,1) 00125 }; 00126 00127 #endif //TGO4SIMPLEEVENT_H