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 #include "GET4V10/TGet4v1Event.h" 00012 00013 #include "TRpcEvent.h" 00014 #include "TRpcParam.h" 00015 00016 #include "TGo4Picture.h" 00017 #include "TH1.h" 00018 #include "TH2.h" 00019 00020 class TGo4EventElement; 00021 class TGo4MbsSubEvent; 00022 00023 class TRpcProc : public TCBMBeamtimeProc { 00024 // friend class TCBMBeamtimeProc; 00025 public: 00026 TRpcProc(const char* name = 0); 00027 virtual ~TRpcProc(); 00028 00029 virtual void InitEvent(TGo4EventElement*); 00030 00031 virtual void FinalizeEvent(); 00032 private: 00033 void ProcessCaenStrip( UInt_t uStripIndex, Double_t dCaenOtherOffset = 0 ); 00034 void ProcessVftxStrip( UInt_t uStripIndex, Double_t dVftxOtherOffset = 0 ); 00035 void ProcessGet4v10Strip( UInt_t uEventIndex , UInt_t uStripIndex, Double_t dGet4v10OtherOffset = 0 ); 00036 00037 00038 protected: 00039 TRpcParam * fPar; 00040 TVftxParam * fVftxPar; 00041 TMbsCrateEvent * fCrateInputEvent; 00042 TTriglogEvent * fTriglogInputEvent; 00043 TGet4v1Event * fGet4v1InputEvent; 00044 TVftxEvent * fVftxInputEvent; 00045 00046 TRpcEvent * fOutputEvent; 00047 00048 protected: 00049 Bool_t bIsHdProc; 00050 Bool_t bIsBucRefProc; 00051 Bool_t bIsBucMod1Proc; 00052 Bool_t bIsBucMod2Proc; 00053 Bool_t bIsBucMod3Proc; 00054 Bool_t bIsBucMod4Proc; 00055 00056 Double_t dCaenBinSize; 00057 Double_t dRpcCenterOffset; 00058 Double_t dRpcCenterOffsetCm; 00059 00060 Rpc_Hit hitCurrent; 00061 Rpc_Cluster clusterCurrent; 00062 Rpc_Event eventCurrent; 00063 UInt_t uLastFiredStrip; 00064 UInt_t uMultiplicityStripRpc; 00065 00066 TH2* fBeamProfileStripRpc; // Beam profile in length units with Strip RPCs 00067 TH2* fSingleEvtBeamProfileStripRpc; // Beam profile in length units with Strip RPCs 00068 TH2* fBeamProfileStripRpcTime; // Beam profile in Time units with Strip RPCs 00069 TH2* fReferenceProfileRpc; // Profile against reference signal with Strip RPCs 00070 TH2* fDiamondProfileRpc; // Profile against diamond signal with Strip RPCs 00071 TH2* fTotLeftStripRpc; // Tot profile with Strip RPCs for the left side 00072 TH2* fTotRightStripRpc; // Tot profile with Strip RPCs for the right side 00073 TH1* fMultiplicityStripRpc; // Multiplicity graph with Strip RPCs 00074 TH1* fClusterMultStripRpc; // Cluster multiplicity graph with Strip RPCs 00075 TH1* fClusterSizeStripRpc; // Cluster size graph with Strip RPCs 00076 TH2* fClusterProfileStripRpc; // Beam profile with clusters center Strip RPCs 00077 TH2* fClusterProfileStripRpcMinSize; // Beam profile with clusters center Strip RPCs 00078 00079 ClassDef(TRpcProc,1) 00080 }; 00081 00082 Double_t box(Double_t*, Double_t*); 00083 00084 #endif //TRPCPROC_H 00085