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

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

Go to the documentation of this file.
00001 #ifndef TVFTXBOARDDATA_H
00002 #define TVFTXBOARDDATA_H
00003 
00004 #include "MBSUNPACK/MbsCrateDefines.h"
00005 
00006 #ifdef WITHGO4ROC
00007    #include "TGo4Version.h"
00008    #if __GO4BUILDVERSION__ > 40502
00009       #include "go4iostream.h"
00010    #endif
00011 #else
00012    #include "Riostream.h"
00013 #endif // WITHGO4ROC
00014 
00015 #include "TObject.h"
00016 
00017 #define NB_BIN_FTS      1024
00018 #define CLOCK_TIME      5000 //ps
00019 
00020 class TVftxBoardData : public TObject {
00021    public:
00022       enum { MaxMult = 8 };
00023 
00024       Int_t    iTriggerTime;
00025       Int_t    iMultiplicity[FPGA_TDC_NBCHAN]; // how many hits par channel
00026       Int_t    iFineTime[FPGA_TDC_NBCHAN][MaxMult];
00027       Int_t    iCoarseTime[FPGA_TDC_NBCHAN][MaxMult];
00028       UInt_t   uFutureBit[FPGA_TDC_NBCHAN][MaxMult];
00029       Double_t dTimeCorr[FPGA_TDC_NBCHAN][MaxMult];
00030       Double_t dFineTimeCorr[FPGA_TDC_NBCHAN][MaxMult];
00031 
00032       TVftxBoardData() : TObject() { Clear(); }
00033       void Clear();
00034       Bool_t   IsHitThere( UInt_t uChan, Int_t iMult ){
00035               return iMult < iMultiplicity[ uChan ]? kTRUE : kFALSE; };
00036       Double_t GetCalibratedTime( UInt_t uChan, UInt_t uMult);
00037       Double_t GetCoarseCorrectedTime( UInt_t uChan, UInt_t uMult);
00038 
00039       ClassDef(TVftxBoardData,1)
00040 };
00041 #endif //TVFTXBOARDDATA_H

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