00001 //------------------------------------------------------------- 00002 // Go4 Release Package v3.04-01 (build 30401) 00003 // 28-November-2008 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at EE 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 TGO4SIMPLEEVENT_H 00017 #define TGO4SIMPLEEVENT_H 00018 00019 #include "TGo4EventElement.h" 00020 00021 #include "TClonesArray.h" 00022 00023 class TIterator; 00024 class TGo4MbsSubEvent; 00025 class TGo4SimpleSubEvent; 00026 00035 class TGo4SimpleEvent : public TGo4EventElement { 00036 00037 friend class TGo4SimpleEventProcessor; 00038 00039 public: 00040 TGo4SimpleEvent() ; 00041 00042 TGo4SimpleEvent(Int_t subevtnum) ; 00043 00044 00045 00046 virtual ~TGo4SimpleEvent() ; 00047 00057 virtual Int_t Fill(); 00058 00063 virtual void Clear(Option_t *t=""); 00068 void ResetIterator(); 00069 00075 TGo4SimpleSubEvent* NextSubEvent(); 00076 00077 void PrintEvent(); 00078 00083 TGo4SimpleSubEvent * GetSubEvent(Short_t procid); 00084 00090 TGo4SimpleSubEvent * AddSubEvent(Short_t procid); 00091 00092 Int_t GetCount() const; 00093 00094 private: 00095 Int_t fiCount; 00096 00100 Int_t fiLastSlot; 00101 00105 Int_t fiMaxSlot; 00106 00111 /*# TGo4SimpleSubEvent fxSubEventArray1; */ 00112 TClonesArray* fxSubEventArray; 00113 00114 Int_t fiArrLen; 00115 00116 Int_t fiTestArray[10]; //[fiArrLen] 00117 00118 char fcTestCharArr[10]; //[fiArrLen] 00122 TIterator * fxIterator; 00123 00124 // TGo4SimpleSubEvent fxFirstsubevent; 00125 // TGo4SimpleSubEvent fxSecondsubevent; 00126 // TGo4MbsSubEvent fxTestSub; 00127 00128 private: 00129 00130 ClassDef(TGo4SimpleEvent,1) 00131 }; 00132 #endif //TGO4SIMPLEEVENT_H 00133 00134 00135 00136 00137 //----------------------------END OF GO4 SOURCE FILE ---------------------