00001 #include "TFaspEvent.h" 00002 00003 #include "TGo4Log.h" 00004 00005 00006 TFaspEvent::TFaspEvent(const char* name, Short_t id) : 00007 TGo4EventElement (name,name,id) 00008 { 00009 TGo4Log::Info("TFaspData: Create instance %s with composite id %d", name, id); 00010 Clear(); 00011 } 00012 00013 TFaspEvent::TFaspEvent() : 00014 TGo4EventElement () 00015 { 00016 Clear(); 00017 } 00018 00019 void TFaspEvent::Clear (Option_t *t) 00020 { 00021 for (int n=0;n<Fasp_NumChannels;n++) fAdcs[n] = 0; 00022 fSyncNumber = 0; 00023 fAdcTm = 0; 00024 fSyncTm = 0; 00025 00026 SetValid(kFALSE); 00027 }