GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4SimpleEvent.h
Go to the documentation of this file.
1 // $Id$
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGo4SimpleEvent_H
15 #define TGo4SimpleEvent_H
16 
17 #include "TGo4EventElement.h"
18 
19 #include "TClonesArray.h"
20 
21 class TIterator;
22 class TGo4MbsSubEvent;
23 class TGo4SimpleSubEvent;
24 
34 
36 
37  public:
39 
40  TGo4SimpleEvent(Int_t subevtnum);
41 
42  virtual ~TGo4SimpleEvent();
43 
53  Int_t Fill() override;
54 
59  void Clear(Option_t *opt = "") override;
64  void ResetIterator();
65 
72 
73  void PrintEvent() override;
74 
79  TGo4SimpleSubEvent *GetSubEvent(Short_t procid);
80 
86  TGo4SimpleSubEvent *AddSubEvent(Short_t procid);
87 
88  Int_t GetCount() const;
89 
90  private:
91  Int_t fiCount{0};
92 
96  Int_t fiLastSlot{0};
97 
101  Int_t fiMaxSlot{0};
102 
107  /*# TGo4SimpleSubEvent fxSubEventArray1; */
108  TClonesArray* fxSubEventArray{nullptr};
109 
110  Int_t fiArrLen{0};
111 
112  Int_t fiTestArray[10]; //[fiArrLen]
113 
114  char fcTestCharArr[10]; //[fiArrLen]
118  TIterator *fxIterator{nullptr};
119 
120  ClassDefOverride(TGo4SimpleEvent,1)
121 };
122 
123 #endif
Int_t Fill() override
char fcTestCharArr[10]
TIterator * fxIterator
TGo4SimpleSubEvent * AddSubEvent(Short_t procid)
TGo4SimpleSubEvent * GetSubEvent(Short_t procid)
virtual ~TGo4SimpleEvent()
TClonesArray * fxSubEventArray
void PrintEvent() override
Int_t GetCount() const
TGo4SimpleSubEvent * NextSubEvent()
Int_t fiTestArray[10]
void Clear(Option_t *opt="") override