00001 #ifndef TVFTXEVENT_H 00002 #define TVFTXEVENT_H 00003 00004 #include "TGo4EventElement.h" 00005 00006 /* 00007 * Put all definitions here and use them in processor, 00008 * since they are necessary for data structure of event 00009 */ 00010 #include "TMbsCrateEvent.h" 00011 00012 class TVftxBoardData : public TObject { 00013 public: 00014 enum { MaxMult = 8 }; 00015 00016 Int_t iTriggerTime; 00017 Int_t iMultiplicity[FPGA_TDC_NBCHAN]; // how many hits par channel 00018 Int_t iFineTime[FPGA_TDC_NBCHAN][MaxMult]; 00019 Int_t iCoarseTime[FPGA_TDC_NBCHAN][MaxMult]; 00020 UInt_t uFutureBit[FPGA_TDC_NBCHAN][MaxMult]; 00021 Double_t dTimeCorr[FPGA_TDC_NBCHAN][MaxMult]; 00022 Double_t dFineTimeCorr[FPGA_TDC_NBCHAN][MaxMult]; 00023 00024 TVftxBoardData() : TObject() { Clear(); } 00025 void Clear(); 00026 }; 00027 00028 class TVftxEvent : public TGo4EventElement { 00029 public: 00030 00031 00032 TVftxEvent(); 00033 TVftxEvent(const char* name, Short_t id=0); 00034 virtual ~TVftxEvent(); 00035 00037 virtual void Clear(Option_t *t=""); 00038 TVftxBoardData fVftxBoards[MAX_FPGA_TDC]; 00039 ClassDef(TVftxEvent,1) 00040 }; 00041 #endif //TVFTXEVENT_H 00042 00043 00044