TNeEvent.cxx 1.9 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
//===================================================================
//== 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));
   //==================================================================
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
//	Si
   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(R60a, 0, sizeof(R60a));
   memset(R60t, 0, sizeof(R60t));
   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));
Pavel Sharov's avatar
Pavel Sharov committed
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70

// 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;

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