00001 #include "TTriglogEvent.h" 00002 00003 #include "TGo4Log.h" 00004 00005 TTriglogEvent::TTriglogEvent() : 00006 TGo4EventElement() 00007 { 00008 } 00009 00010 TTriglogEvent::TTriglogEvent(const char* name, Short_t id) : 00011 TGo4EventElement(name,name,id) 00012 { 00013 TGo4Log::Info("TTriglogEvent: Create instance %s with composite id %d", name, id); 00014 } 00015 00016 00017 TTriglogEvent::~TTriglogEvent() 00018 { 00019 } 00020 00021 void TTriglogEvent::Clear(Option_t *t) 00022 { 00023 // all members should be cleared. 00024 00025 if (IsValid()) { 00026 00027 fVulomSyncNumber = 0; 00028 fVulomTriggerPattern = 0; 00029 fMbsTimeSecs = 0; 00030 fMbsTimeMillisec = 0; 00031 00032 for (int n=0;n<NUM_SCALERS;n++) 00033 for (int k=0;k<N_SCALERS_CH;k++) 00034 fVulomScaler[n][k] = 0; 00035 00036 SetValid(kFALSE); 00037 } 00038 00039 TGo4EventElement::Clear(t); 00040 00041 } 00042