00001 /* Generated by Together */ 00002 00003 #include "TPlasticsEvent.h" 00004 #include "TGo4Version.h" 00005 #if __GO4BUILDVERSION__ > 40502 00006 #include "go4iostream.h" 00007 #else 00008 #include "Riostream.h" 00009 #endif 00010 00011 void Plastics_Hit::Clear() 00012 { 00013 dTimeLeft = -1 ; 00014 dTotLeft = -1 ; 00015 dTimeRight = -1 ; 00016 dTotRight = -1 ; 00017 } 00018 00019 TPlasticsEvent::TPlasticsEvent(const char* name, Short_t id) : 00020 TGo4EventElement(name,name,id) 00021 { 00022 cout << "**** TPlasticsEvent: Create instance " << name <<" with composite id "<<id<< endl; 00023 } 00024 TPlasticsEvent::TPlasticsEvent() : 00025 TGo4EventElement() 00026 { 00027 } 00028 00029 TPlasticsEvent::~TPlasticsEvent() 00030 { 00031 Clear(); 00032 } 00033 00034 void TPlasticsEvent::Clear(Option_t *t) 00035 { 00036 // all members should be cleared. 00037 for(Int_t iPlastic = 0; iPlastic<NB_PLASTICS_MAX; iPlastic++) 00038 fHits[iPlastic].clear(); 00039 SetValid(kFALSE); 00040 } 00041