• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

beamtime/tof-tdctest/go4/VFTX/TVftxEvent.h (r4864/r4678)

Go to the documentation of this file.
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 #include "MBSUNPACK/MbsCrateDefines.h"
00013 
00014 #define NB_BIN_FTS      1024
00015 #define CLOCK_TIME      5000 //ps
00016 
00017 class TVftxBoardData : public TObject {
00018    public:
00019       enum { MaxMult = 8 };
00020       
00021       Int_t    iTriggerTime;
00022       Int_t    iMultiplicity[FPGA_TDC_NBCHAN]; // how many hits par channel
00023       Int_t    iFineTime[FPGA_TDC_NBCHAN][MaxMult];
00024       Int_t    iCoarseTime[FPGA_TDC_NBCHAN][MaxMult];
00025       UInt_t   uFutureBit[FPGA_TDC_NBCHAN][MaxMult];
00026       Double_t dTimeCorr[FPGA_TDC_NBCHAN][MaxMult];    
00027       Double_t dFineTimeCorr[FPGA_TDC_NBCHAN][MaxMult]; 
00028       
00029       TVftxBoardData() : TObject() { Clear(); }
00030       void Clear();
00031       Double_t GetCalibratedTime( UInt_t uChan, UInt_t uMult);
00032       Double_t GetCoarseCorrectedTime( UInt_t uChan, UInt_t uMult);
00033 };
00034 */
00035 
00036 #include "TVftxBoardData.h"
00037 
00038 class TVftxEvent : public TGo4EventElement {
00039    public:      
00040    
00041 
00042       TVftxEvent();
00043       TVftxEvent(const char* name, Short_t id=0);
00044       virtual ~TVftxEvent();
00045 
00047       virtual void Clear(Option_t *t="");
00048       TVftxBoardData fVftxBoards[MAX_FPGA_TDC];
00049 
00050       Bool_t   IsHitThere( UInt_t uBoard, UInt_t uChan, Int_t iMult ){
00051                     return fVftxBoards[uBoard].IsHitThere( uChan, iMult); };
00052       Double_t GetCoarseCorrectedTime( UInt_t uBoard, UInt_t uChan, UInt_t uMult);
00053       Double_t GetCalibratedTime( UInt_t uBoard, UInt_t uChan, UInt_t uMult, UInt_t uCoarseCorrected = 0);
00054 
00055    ClassDef(TVftxEvent,1)
00056 };
00057 #endif //TVFTXEVENT_H
00058 
00059 
00060 

Generated on Tue Dec 10 2013 04:52:21 for ROCsoft by  doxygen 1.7.1