/* -*- mode:c++ c-file-style:"linux" -*- */ //=================================================================== //== TNeEvent.cxx: //== Version: //=================================================================== using namespace std; #include "TNeEvent.h" #include "Riostream.h" #include 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)); //================================================================== // Si L1.Clear(); 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); // 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; } //-------------------------------------------------------------------