GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Go4EventServerExample
TGo4SimpleSubEvent.cxx
Go to the documentation of this file.
1
// $Id: TGo4SimpleSubEvent.cxx 999 2013-07-25 11:58:59Z linev $
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 für 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
18
#include "
Go4EventServer.h
"
19
20
Int_t
TGo4SimpleSubEvent::fgiZeroField
[]={0};
21
22
23
TGo4SimpleSubEvent::TGo4SimpleSubEvent
()
24
: fsProcid(0), fiFieldLen(0)
25
{
26
GO4TRACE
((12,
"TGo4SimpleSubEvent::TGo4SimpleSubEvent() "
,__LINE__, __FILE__));
27
//std::cout << "default ctor of simple subevent"<< std::endl;
28
//Clear();
29
fiD0
=0;
30
fiD1
=0;
31
fiD2
=0;
32
fiD3
=0;
33
fiD4
=0;
34
fiD5
=0;
35
fiD6
=0;
36
fiD7
=0;
37
fiD8
=0;
38
fiD9
=0;
39
fiD10
=0;
40
fiD11
=0;
41
fiD12
=0;
42
43
// note: clonesarray within clonesarray won't stream! SEGV
44
// Int_t subevtnum=7;
45
// fxMbsSubEventArray=new TClonesArray("TGo4MbsSubEvent", subevtnum);
46
// fxMbsSubEventArray->BypassStreamer(kFALSE);
47
//
48
// TGo4MbsSubEvent* subeve;
49
// for (Int_t t=0;t<subevtnum;++t)
50
// {
51
// //subeve= new( (*fxMbsSubEventArray) [t] ) TGo4MbsSubEvent();
52
// fxMbsSubEventArray->New(t);
53
// }
54
55
//fxTestSub= new TGo4MbsSubEvent(20);
56
//fxTestSub->Clear();
57
}
58
59
60
61
TGo4SimpleSubEvent::~TGo4SimpleSubEvent
()
62
{
63
GO4TRACE
((12,
"TGo4SimpleSubEvent::~TGo4SimpleSubEvent() "
,__LINE__, __FILE__));
64
65
// delete fxMbsSubEventArray;
66
67
}
68
69
void
TGo4SimpleSubEvent::PrintEvent
()
70
{
71
GO4TRACE
((11,
"TGo4SimpleSubEvent::PrintEvent()"
,__LINE__, __FILE__));
72
73
TGo4Log::Debug
(
" SimpleSubEvent Header printout: "
);
74
TGo4Log::Debug
(
"\tProcid %d"
,
fsProcid
);
75
TGo4Log::Debug
(
"\tFieldLen %d "
,
fiFieldLen
);
76
77
78
}
79
void
TGo4SimpleSubEvent::Clear
(Option_t *t)
80
{
81
GO4TRACE
((11,
"TGo4SimpleSubEvent::Clear()"
,__LINE__, __FILE__));
82
void
* destfield = (
void
*) &
fiD0
;
83
void
* sourcefield= (
void
*)
TGo4SimpleSubEvent::fgiZeroField
;
84
memcpy(destfield,
85
sourcefield,
86
12*
sizeof
(Int_t));
// does this work?
87
88
fiFieldLen
=0;
89
//std::cout << "cleared simple subevent"<< std::endl;
90
}
91
92
Int_t
TGo4SimpleSubEvent::Fill
()
93
{
94
GO4TRACE
((11,
"TGo4SimpleSubEvent::Fill()"
,__LINE__, __FILE__));
95
MayNotUse(
"TGo4SimpleSubEvent::Fill()"
);
96
return
-1;
97
}
TGo4SimpleSubEvent::fiD11
Int_t fiD11
Definition:
TGo4SimpleSubEvent.h:96
TGo4SimpleSubEvent::fsProcid
Short_t fsProcid
Definition:
TGo4SimpleSubEvent.h:30
TGo4SimpleSubEvent::fiFieldLen
Int_t fiFieldLen
Definition:
TGo4SimpleSubEvent.h:36
TGo4SimpleSubEvent::~TGo4SimpleSubEvent
virtual ~TGo4SimpleSubEvent()
Definition:
TGo4SimpleSubEvent.cxx:61
TGo4SimpleSubEvent::fiD0
Int_t fiD0
Definition:
TGo4SimpleSubEvent.h:41
TGo4SimpleSubEvent::fiD8
Int_t fiD8
Definition:
TGo4SimpleSubEvent.h:81
TGo4SimpleSubEvent::TGo4SimpleSubEvent
TGo4SimpleSubEvent()
Definition:
TGo4SimpleSubEvent.cxx:23
TGo4SimpleSubEvent::fiD4
Int_t fiD4
Definition:
TGo4SimpleSubEvent.h:61
TGo4SimpleSubEvent::fiD3
Int_t fiD3
Definition:
TGo4SimpleSubEvent.h:56
TGo4Log.h
TGo4SimpleSubEvent::fiD12
Int_t fiD12
Definition:
TGo4SimpleSubEvent.h:101
TGo4SimpleSubEvent::fiD10
Int_t fiD10
Definition:
TGo4SimpleSubEvent.h:91
TGo4SimpleSubEvent::fgiZeroField
static Int_t fgiZeroField[13]
Definition:
TGo4SimpleSubEvent.h:25
TGo4SimpleSubEvent::fiD1
Int_t fiD1
Definition:
TGo4SimpleSubEvent.h:46
TGo4SimpleSubEvent::Fill
virtual Int_t Fill()
Definition:
TGo4SimpleSubEvent.cxx:92
TGo4SimpleSubEvent::Clear
virtual void Clear(Option_t *t="")
Definition:
TGo4SimpleSubEvent.cxx:79
TGo4SimpleSubEvent::PrintEvent
void PrintEvent()
Definition:
TGo4SimpleSubEvent.cxx:69
TGo4SimpleSubEvent::fiD9
Int_t fiD9
Definition:
TGo4SimpleSubEvent.h:86
GO4TRACE
#define GO4TRACE(X)
Definition:
TGo4Log.h:26
TGo4SimpleSubEvent::fiD6
Int_t fiD6
Definition:
TGo4SimpleSubEvent.h:71
TGo4SimpleSubEvent::fiD2
Int_t fiD2
Definition:
TGo4SimpleSubEvent.h:51
TGo4SimpleSubEvent::fiD5
Int_t fiD5
Definition:
TGo4SimpleSubEvent.h:66
TGo4SimpleSubEvent::fiD7
Int_t fiD7
Definition:
TGo4SimpleSubEvent.h:76
TGo4SimpleSubEvent.h
Go4EventServer.h
TGo4Log::Debug
static void Debug(const char *text,...)
Definition:
TGo4Log.cxx:270
Generated on Fri Oct 26 2018 08:34:51 for GSI Object Oriented Online Offline (Go4) by
1.8.8