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 "MBSUNPACK/TMbsCrateEvent.h" 00011 00012 #define NB_BIN_FTS 1024 00013 #define CLOCK_TIME 5000 //ps 00014 00015 class TVftxBoardData : public TObject { 00016 public: 00017 enum { MaxMult = 8 }; 00018 00019 Int_t iTriggerTime; 00020 Int_t iMultiplicity[FPGA_TDC_NBCHAN]; // how many hits par channel 00021 Int_t iFineTime[FPGA_TDC_NBCHAN][MaxMult]; 00022 Int_t iCoarseTime[FPGA_TDC_NBCHAN][MaxMult]; 00023 UInt_t uFutureBit[FPGA_TDC_NBCHAN][MaxMult]; 00024 Double_t dTimeCorr[FPGA_TDC_NBCHAN][MaxMult]; 00025 Double_t dFineTimeCorr[FPGA_TDC_NBCHAN][MaxMult]; 00026 00027 TVftxBoardData() : TObject() { Clear(); } 00028 void Clear(); 00029 }; 00030 00031 class TVftxEvent : public TGo4EventElement { 00032 public: 00033 00034 00035 TVftxEvent(); 00036 TVftxEvent(const char* name, Short_t id=0); 00037 virtual ~TVftxEvent(); 00038 00040 virtual void Clear(Option_t *t=""); 00041 TVftxBoardData fVftxBoards[MAX_FPGA_TDC]; 00042 ClassDef(TVftxEvent,1) 00043 }; 00044 #endif //TVFTXEVENT_H 00045 00046 00047