TNeEvent.cxx 2.02 KB
Newer Older
Pavel Sharov's avatar
Pavel Sharov committed
1 2
/* -*- mode:c++ c-file-style:"linux" -*- */

Pavel Sharov's avatar
Pavel Sharov committed
3 4
//===================================================================
//== TNeEvent.cxx:
Pavel Sharov's avatar
Pavel Sharov committed
5
//== Version:
Pavel Sharov's avatar
Pavel Sharov committed
6 7 8 9 10
//===================================================================
using namespace std;

#include "TNeEvent.h"
#include "Riostream.h"
Pavel Sharov's avatar
Pavel Sharov committed
11
#include <algorithm>
Pavel Sharov's avatar
Pavel Sharov committed
12

Pavel Sharov's avatar
Pavel Sharov committed
13
TNeEvent::TNeEvent()
Pavel Sharov's avatar
Pavel Sharov committed
14 15 16 17 18
	:TGo4EventElement()
{
	cout << "**** TNeEvent: Create instance" << endl;
} //-------------------------------------------------------------------

Pavel Sharov's avatar
Pavel Sharov committed
19
TNeEvent::TNeEvent(const char* name)
Pavel Sharov's avatar
Pavel Sharov committed
20 21 22 23 24 25 26 27 28 29 30 31
	:TGo4EventElement(name)
{
	cout << "**** TNeEvent: Create instance " << name << endl;
} //-------------------------------------------------------------------

TNeEvent::~TNeEvent()
{
	cout << "**** TNeEvent: Delete instance " << endl;
} //-------------------------------------------------------------------

void  TNeEvent::Clear(Option_t *t)
{
Pavel Sharov's avatar
Pavel Sharov committed
32 33 34 35
	//==================================================================
	//== all members should be cleared.
	//== memset(fRawData,0, sizeof(fRawData));
	//==================================================================
36
//	Si
37
	L1.Clear();
Pavel Sharov's avatar
Pavel Sharov committed
38 39 40 41 42 43 44 45
	memset(Lxa, 0, sizeof(Lxa));
	memset(Lxt, 0, sizeof(Lxt));
	memset(Lya, 0, sizeof(Lya));
	memset(Lyt, 0, sizeof(Lyt));
	memset(Rxa, 0, sizeof(Rxa));
	memset(Rxt, 0, sizeof(Rxt));
	memset(Rya, 0, sizeof(Rya));
	memset(Ryt, 0, sizeof(Ryt));
mbsdaq's avatar
mbsdaq committed
46 47
	memset(Rva, 0, sizeof(Rva));
	memset(Rvt, 0, sizeof(Rvt));
Pavel Sharov's avatar
Pavel Sharov committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
	memset(R20a, 0, sizeof(R20a));
	memset(R20t, 0, sizeof(R20t));
	memset(AnSa, 0, sizeof(AnSa));
	memset(AnSt, 0, sizeof(AnSt));
	memset(AnRa, 0, sizeof(AnRa));
	memset(AnRt, 0, sizeof(AnRt));
	memset(AnVa, 0, sizeof(AnVa));
	memset(AnVt, 0, sizeof(AnVt));
	std::fill_n(Rcsa,16,0);
	std::fill_n(Rcst,16,0);
	std::fill_n(Lcsa,16,0);
	std::fill_n(Lcst,16,0);



Pavel Sharov's avatar
Pavel Sharov committed
63 64

// ToF
Pavel Sharov's avatar
Pavel Sharov committed
65 66 67 68
	memset(F3, 0, sizeof(F3));
	memset(tF3, 0, sizeof(tF3));
	memset(F5, 0, sizeof(F5));
	memset(tF5, 0, sizeof(tF5));
Pavel Sharov's avatar
Pavel Sharov committed
69 70

// MWPC
Pavel Sharov's avatar
Pavel Sharov committed
71
	memset(tMWPC, 0, sizeof(tMWPC));
Pavel Sharov's avatar
Pavel Sharov committed
72 73 74 75 76


	nevent = 0;
	trigger = 0;
	subevents = 0;
Pavel Sharov's avatar
Pavel Sharov committed
77
	evsize = 0;
Pavel Sharov's avatar
Pavel Sharov committed
78 79 80
	mtime = 0;

} //-------------------------------------------------------------------