er  dev
TLiEvent.cxx
1 //===================================================================
2 //== TLiEvent.cxx: exp1210
3 //== Version: 2010-11-12
4 //===================================================================
5 
6 #include "TLiEvent.h"
7 #include "Riostream.h"
8 
9 using namespace std;
10 
11 TLiEvent::TLiEvent()
12  :TGo4EventElement()
13 {
14  cout << "**** TLiEvent: Create instance" << endl;
15 } //-------------------------------------------------------------------
16 
17 TLiEvent::TLiEvent(const char* name)
18  :TGo4EventElement(name)
19 {
20  cout << "**** TLiEvent: Create instance " << name << endl;
21 } //-------------------------------------------------------------------
22 
23 TLiEvent::~TLiEvent()
24 {
25  cout << "**** TLiEvent: Delete instance " << endl;
26 } //-------------------------------------------------------------------
27 
28 void TLiEvent::Clear(Option_t *t)
29 {
30  //==================================================================
31  //== all members should be cleared.
32  //== memset(fRawData,0, sizeof(fRawData));
33  //==================================================================
34 
35  memset(SQ11, 0, sizeof(SQ11));
36  memset(SQ12, 0, sizeof(SQ12));
37  memset(SQ13, 0, sizeof(SQ13));
38  memset(SQ21, 0, sizeof(SQ21));
39  memset(SQ22, 0, sizeof(SQ22));
40  memset(SQ23, 0, sizeof(SQ23));
41  memset(ANR, 0, sizeof(ANR));
42  memset(ANS, 0, sizeof(ANS));
43  memset(ANC, 0, sizeof(ANC));
44  memset(TSQ11, 0, sizeof(TSQ11));
45  memset(TSQ12, 0, sizeof(TSQ12));
46  memset(TSQ21, 0, sizeof(TSQ21));
47  memset(TSQ22, 0, sizeof(TSQ22));
48  memset(TANR, 0, sizeof(TANR));
49  memset(TANS, 0, sizeof(TANS));
50  memset(unusedQDC, 0, sizeof(unusedQDC));
51  memset(unusedTDC, 0, sizeof(unusedTDC));
52  memset(SCR, 0, sizeof(SCR));
53  memset(NeuTDC,0,sizeof(NeuTDC));
54  memset(Amp_TDC,0,sizeof(Amp_TDC));
55 
56 qdcF3L =0;
57 qdcF3R=0;
58 qdcF4L=0;
59 qdcF4R=0;
60 qdcF4U=0;
61 qdcF5L=0;
62 qdcF5R=0;
63 qdcF5U=0;
64 qdcF5D=0;
65 tdcF3L=0;
66 tdcF3R=0;
67 tdcF4L=0;
68 tdcF4R=0;
69 tdcF4U=0;
70 tdcF5L=0;
71 tdcF5R=0;
72 tdcF5U=0;
73 tdcF5D=0;
74 mainTRIGGER=0;
75 beamTRIGGER=0;
76 annTRIGGER=0;
77  memset(x1, 0, sizeof(x1));
78  memset(y1, 0, sizeof(y1));
79  memset(x2, 0, sizeof(x2));
80  memset(y2, 0, sizeof(y2));
81  memset(adc1, 0, sizeof(adc1));
82  memset(adc2, 0, sizeof(adc2));
83  memset(adc3, 0, sizeof(adc3));
84  memset(adc4, 0, sizeof(adc4));
85 // memset(tdc1, 0, sizeof(tdc1));
86 // memset(tdc2, 0, sizeof(tdc2));
87  time = 0;
88  nevent = 0;
89  trigger = 0;
90  subevents = 0;
91  evsize = 0;
92 } //-------------------------------------------------------------------
void Clear(Option_t *t="")
Definition: TLiEvent.cxx:28