TNeEvent.cxx 2.22 KB
Newer Older
Vratislav Chudoba's avatar
Vratislav Chudoba 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 35 36 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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
//===================================================================
//== TNeEvent.cxx:
//== Version:
//===================================================================

#include "TNeEvent.h"

#include "Riostream.h"
using std::cout;
using std::endl;

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

   memset(CsI_L, 0, sizeof(CsI_L));
   memset(CsI_R, 0, sizeof(CsI_R));
   memset(tCsI_L, 0, sizeof(tCsI_L));
   memset(tCsI_R, 0, sizeof(tCsI_R));
   memset(SQX_L, 0, sizeof(SQX_L));
   memset(tSQX_L, 0, sizeof(tSQX_L));
   memset(SQY_L, 0, sizeof(SQY_L));
   memset(tSQY_L, 0, sizeof(tSQY_L));
   memset(SQX_R, 0, sizeof(SQX_R));
   memset(tSQX_R, 0, sizeof(tSQX_R));
   memset(SQY_R, 0, sizeof(SQY_R));
   memset(SQ20, 0, sizeof(SQ20));
   memset(tSQ20, 0, sizeof(tSQ20));
   memset(SQY_R, 0, sizeof(SQY_R));
   memset(tSQY_R, 0, sizeof(tSQY_R));
   memset(ANR, 0, sizeof(ANR));
   memset(ANS, 0, sizeof(ANS));
   memset(F3, 0, sizeof(F3));
   memset(tF3, 0, sizeof(tF3));
   memset(F5, 0, sizeof(F5));
   memset(tF5, 0, sizeof(tF5));
   memset(F6, 0, sizeof(F6));
   memset(tF6, 0, sizeof(tF6));
   memset(tMWPC, 0, sizeof(tMWPC));

/*
   memset(ADC, 0, sizeof(ADC));
   memset(TDC, 0, sizeof(TDC));
   memset(mQDC, 0, sizeof(mQDC));
   memset(mTDC, 0, sizeof(mTDC));
*/
   memset(neutAmp, 0, sizeof(neutAmp));
   memset(neutTAC, 0, sizeof(neutTAC));
   memset(neutTDC, 0, sizeof(neutTDC));



	nevent = 0;
	trigger = 0;
	subevents = 0;
	evsize = 0;
//	time = 0;

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