GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4SimpleSubEvent.cxx
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 #include "TGo4SimpleSubEvent.h"
15 
16 #include "TGo4Log.h"
17 
19 {
20  GO4TRACE((12,"TGo4SimpleSubEvent::TGo4SimpleSubEvent() ",__LINE__, __FILE__));
21  //Clear();
22  fiD0 = 0;
23  fiD1 = 0;
24  fiD2 = 0;
25  fiD3 = 0;
26  fiD4 = 0;
27  fiD5 = 0;
28  fiD6 = 0;
29  fiD7 = 0;
30  fiD8 = 0;
31  fiD9 = 0;
32  fiD10 = 0;
33  fiD11 = 0;
34  fiD12 = 0;
35 
36  // note: clonesarray within clonesarray won't stream! SEGV
37  // Int_t subevtnum=7;
38  // fxMbsSubEventArray=new TClonesArray("TGo4MbsSubEvent", subevtnum);
39  // fxMbsSubEventArray->BypassStreamer(kFALSE);
40  //
41  // TGo4MbsSubEvent *subeve;
42  // for (Int_t t = 0; t < subevtnum; ++t)
43  // {
44  // //subeve= new( (*fxMbsSubEventArray) [t] ) TGo4MbsSubEvent();
45  // fxMbsSubEventArray->New(t);
46  // }
47 
48  // fxTestSub= new TGo4MbsSubEvent(20);
49  // fxTestSub->Clear();
50 }
51 
53 {
54  GO4TRACE((12,"TGo4SimpleSubEvent::~TGo4SimpleSubEvent() ",__LINE__, __FILE__));
55 }
56 
58 {
59  GO4TRACE((11,"TGo4SimpleSubEvent::PrintEvent()",__LINE__, __FILE__));
60 
61  TGo4Log::Debug( " SimpleSubEvent Header printout: ");
62  TGo4Log::Debug( "\tProcid %d", fsProcid);
63  TGo4Log::Debug( "\tFieldLen %d ", fiFieldLen);
64 }
65 
66 void TGo4SimpleSubEvent::Clear(Option_t *)
67 {
68  GO4TRACE((11,"TGo4SimpleSubEvent::Clear()",__LINE__, __FILE__));
69 
70  fiD0 = 0;
71  fiD1 = 0;
72  fiD2 = 0;
73  fiD3 = 0;
74  fiD4 = 0;
75  fiD5 = 0;
76  fiD6 = 0;
77  fiD7 = 0;
78  fiD8 = 0;
79  fiD9 = 0;
80  fiD10 = 0;
81  fiD11 = 0;
82  fiD12 = 0;
83 
84  fiFieldLen = 0;
85 }
86 
88 {
89  GO4TRACE((11,"TGo4SimpleSubEvent::Fill()",__LINE__, __FILE__));
90  MayNotUse("TGo4SimpleSubEvent::Fill()");
91  return -1;
92 }
Int_t Fill() override
void PrintEvent() override
static void Debug(const char *text,...) GO4_PRINTF_ARGS
Definition: TGo4Log.cxx:281
#define GO4TRACE(X)
Definition: TGo4Log.h:25
void Clear(Option_t *opt="") override