TNeEvent.cxx 2.01 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
Pavel Sharov's avatar
Pavel Sharov committed
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
	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));
	memset(RVa, 0, sizeof(RVa));
	memset(RVt, 0, sizeof(RVt));
	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
62 63

// ToF
Pavel Sharov's avatar
Pavel Sharov committed
64 65 66 67
	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
68 69

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


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

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