GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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
21class TIterator;
22class TGo4MbsSubEvent;
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
Subevent class for gsi mbs data.
Simple Event structure containing a fixed size TClonesArray of subevents.
TClonesArray * fxSubEventArray
aggregation 1 1..* TClonesArray
Int_t Fill() override
Method called by the event owner (analysis step) to fill the event element from the set event source.
void PrintEvent() override
Method prints content of the event.
virtual ~TGo4SimpleEvent()
void ResetIterator()
Set the internal iterator of the subevent array to the beginning of the array.
TGo4SimpleSubEvent * NextSubEvent()
Iterator for subevent array.
Int_t fiMaxSlot
Index of last existing slot in the clonesarray.
Int_t GetCount() const
friend class TGo4SimpleEventProcessor
TGo4SimpleSubEvent * GetSubEvent(Short_t procid)
Access to subevent in list by procid.
TIterator * fxIterator
Iterator for array.
TGo4SimpleSubEvent * AddSubEvent(Short_t procid)
Add subevent ito clonesarray with new procid.
void Clear(Option_t *opt="") override
Method called by the event owner (analysis step) to clear the event element.
Int_t fiLastSlot
Index of last used slot in the clonesarray.