TNeEvent.cxx 1.46 KB
Newer Older
Pavel Sharov's avatar
Pavel Sharov committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
//===================================================================
//== TNeEvent.cxx:
//== Version: 
//===================================================================
using namespace std;

#include "TNeEvent.h"
#include "Riostream.h"

TNeEvent::TNeEvent() 
	:TGo4EventElement()
{
	cout << "**** TNeEvent: Create instance" << endl;
} //-------------------------------------------------------------------

TNeEvent::TNeEvent(const char* name) 
	:TGo4EventElement(name)
{
	cout << "**** TNeEvent: Create instance " << name << endl;
} //-------------------------------------------------------------------

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

void  TNeEvent::Clear(Option_t *t)
{
   //==================================================================
   //== all members should be cleared.
   //== memset(fRawData,0, sizeof(fRawData));
   //==================================================================
//	SQ
   memset(T1xa, 0, sizeof(T1xa));
35 36 37
   memset(T1xt, 0, sizeof(T1xt));
   memset(T1ya, 0, sizeof(T1ya));
   memset(T1yt, 0, sizeof(T1yt));
Pavel Sharov's avatar
Pavel Sharov committed
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56

// ToF
   memset(F3, 0, sizeof(F3)); 
   memset(tF3, 0, sizeof(tF3)); 
   memset(F5, 0, sizeof(F5)); 
   memset(tF5, 0, sizeof(tF5)); 

// MWPC
   memset(tMWPC, 0, sizeof(tMWPC)); 


 
	nevent = 0;
	trigger = 0;
	subevents = 0;
	evsize = 0;	
	mtime = 0;

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