00001 #ifndef _TFaspUNPACKPROCESSOR_H_ 00002 #define _TFaspUNPACKPROCESSOR_H_ 00003 00004 #include "TCBMBeamtimeProc.h" 00005 #include "TFaspEvent.h" 00006 #include "TFaspParam.h" 00007 #include "TFaspSource.h" 00008 00009 #include "TH1.h" 00010 #include "TH2.h" 00011 #include "TGo4WinCond.h" 00012 00013 class TFaspProc : public TCBMBeamtimeProc 00014 { 00015 public: 00016 TFaspProc (); 00017 TFaspProc (const char* name); 00018 virtual ~TFaspProc (); 00019 00020 virtual void InitEvent (TGo4EventElement* evt); 00021 virtual void ProcessSubevent (TGo4MbsSubEvent* subevt); 00022 00023 protected: 00024 00025 TFaspParam* fPar; 00026 00027 TFaspEvent* fOutEvent; 00028 00029 TH1* hADCs[Fasp_NumChannels]; 00030 00031 TH1* fSignalTmDiff; 00032 TH1* fSignalTmDiffFine; 00033 TH1* fSyncTmDiff; 00034 TH1* fSyncDiff; 00035 00036 UInt_t fLastSync; 00037 UInt_t fLastSyncTm; 00038 UInt_t fLastAdcTm; 00039 00040 TGo4WinCond* fTmCond; 00041 00042 00043 ClassDef(TFaspProc,1) 00044 }; 00045 00046 #endif // _TFaspUNPACKPROCESSOR_H_