00001 #ifndef TPLASTICSEVENT_H 00002 #define TPLASTICSEVENT_H 00003 00004 #include "TGo4EventElement.h" 00005 #include "TPlasticsParam.h" 00006 00007 /* 00008 * Put all definitions here and use them in processor, 00009 * since they are necessary for data structure of event 00010 */ 00011 00012 class Plastics_Hit: public TObject { 00013 public: 00014 Double_t dTimeLeft; // in ps 00015 Double_t dTotLeft; // in ps 00016 Double_t dTimeRight; // in ps 00017 Double_t dTotRight; // in ps 00018 00019 Plastics_Hit() : TObject() { Clear(); }; 00020 00021 void Clear(void); 00022 00023 /* 00024 // copy constructor, used by vector to copy content 00025 Plastics_Hit(const Plastics_Hit& src) : 00026 iStrip(src.iStrip), 00027 dTimeLeft(src.dTimeLeft), dTotLeft(src.dTotLeft), 00028 dTimeRight(src.dTimeRight), dTotRight(src.dTotRight) {} 00029 */ 00030 00031 ClassDef(Plastics_Hit, 1) 00032 }; 00033 00034 class TPlasticsEvent : public TGo4EventElement { 00035 public: 00036 00037 00038 TPlasticsEvent(); 00039 TPlasticsEvent(const char* name, Short_t id=0); 00040 virtual ~TPlasticsEvent(); 00041 00043 virtual void Clear(Option_t *t=""); 00044 00045 // Maybe to be transformed into a TObjArray or TCloneArray 00046 std::vector<Plastics_Hit> fHits[NB_PLASTICS_MAX]; 00047 00048 ClassDef(TPlasticsEvent,1) 00049 }; 00050 #endif //TPLASTICSEVENT_H 00051 00052 00053