00001 #ifndef TRPCPROC_H 00002 #define TRPCPROC_H 00003 00004 #include "TGsiAug12Analysis.h" 00005 #include "TCBMBeamtimeProc.h" 00006 00007 #include "MBSUNPACK/TMbsCrateEvent.h" 00008 #include "TTriglogEvent.h" 00009 #include "VFTX/TVftxEvent.h" 00010 #include "VFTX/TVftxParam.h" 00011 00012 #include "TRpcEvent.h" 00013 #include "TRpcParam.h" 00014 00015 #include "TGo4Picture.h" 00016 #include "TH1.h" 00017 #include "TH2.h" 00018 00019 class TGo4EventElement; 00020 class TGo4MbsSubEvent; 00021 00022 class TRpcProc : public TCBMBeamtimeProc { 00023 // friend class TCBMBeamtimeProc; 00024 public: 00025 TRpcProc(const char* name = 0); 00026 virtual ~TRpcProc(); 00027 00028 virtual void InitEvent(TGo4EventElement*); 00029 00030 virtual void FinalizeEvent(); 00031 private: 00032 void ProcessCaenStrip( UInt_t uStripIndex, Double_t dCaenOtherOffset = 0 ); 00033 void ProcessVftxStrip( UInt_t uStripIndex, Double_t dVftxOtherOffset = 0 ); 00034 00035 00036 protected: 00037 TRpcParam * fPar; 00038 TVftxParam * fVftxPar; 00039 TMbsCrateEvent * fCrateInputEvent; 00040 TTriglogEvent * fTriglogInputEvent; 00041 TVftxEvent * fVftxInputEvent; 00042 00043 TRpcEvent * fOutputEvent; 00044 00045 protected: 00046 Bool_t bIsHdProc; 00047 Bool_t bIsBucRefProc; 00048 Bool_t bIsBucMod1Proc; 00049 Bool_t bIsBucMod2Proc; 00050 Bool_t bIsBucMod3Proc; 00051 Bool_t bIsBucMod4Proc; 00052 00053 Double_t dCaenBinSize; 00054 Double_t dRpcCenterOffset; 00055 Double_t dRpcCenterOffsetCm; 00056 00057 Rpc_Hit hitCurrent; 00058 Rpc_Cluster clusterCurrent; 00059 UInt_t uLastFiredStrip; 00060 UInt_t uMultiplicityStripRpc; 00061 00062 TH2* fBeamProfileStripRpc; // Beam profile in length units with Strip RPCs 00063 TH2* fSingleEvtBeamProfileStripRpc; // Beam profile in length units with Strip RPCs 00064 TH2* fBeamProfileStripRpcTime; // Beam profile in Time units with Strip RPCs 00065 TH2* fReference1ProfileRpc; // Profile against reference signal with Strip RPCs 00066 TH2* fReference2ProfileRpc; // Profile against diamond signal with Strip RPCs 00067 TH2* fMeanRefProfileRpc; // Profile against mean of 1st and 2nd reference signal with Strip RPCs 00068 TH2* fTotLeftStripRpc; // Tot profile with Strip RPCs for the left side 00069 TH2* fTotRightStripRpc; // Tot profile with Strip RPCs for the right side 00070 TH1* fMultiplicityStripRpc; // Multiplicity graph with Strip RPCs 00071 TH1* fTdcMultiRejectStripRpc; // Nb of rejected hits because of multiple TDc hits with Strip RPCs 00072 TH1* fClusterMultStripRpc; // Cluster multiplicity graph with Strip RPCs 00073 TH1* fClusterSizeStripRpc; // Cluster size graph with Strip RPCs 00074 TH2* fClusterProfileStripRpc; // Beam profile with clusters center Strip RPCs 00075 TH2* fClusterProfileStripRpcMinSize; // Beam profile with clusters center Strip RPCs 00076 00077 ClassDef(TRpcProc,1) 00078 }; 00079 00080 Double_t box(Double_t*, Double_t*); 00081 00082 #endif //TRPCPROC_H 00083