00001 #ifndef TPLASTICSPROC_H 00002 #define TPLASTICSPROC_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 "TPlasticsEvent.h" 00014 #include "TPlasticsParam.h" 00015 00016 #include "TGo4Picture.h" 00017 #include "TH1.h" 00018 #include "TH2.h" 00019 00020 class TGo4EventElement; 00021 class TGo4MbsSubEvent; 00022 00023 class TPlasticsProc : public TCBMBeamtimeProc { 00024 // friend class TCBMBeamtimeProc; 00025 public: 00026 TPlasticsProc(const char* name = 0); 00027 virtual ~TPlasticsProc(); 00028 00029 virtual void InitEvent(TGo4EventElement*); 00030 00031 virtual void FinalizeEvent(); 00032 private: 00033 void ProcessCaenPlasticDouble( UInt_t uPlasticIndex, Double_t dCaenOtherOffset = 0 ); 00034 void ProcessVftxPlasticDouble( UInt_t uPlasticIndex, Double_t dVftxOtherOffset = 0 ); 00035 void ProcessGet4v10PlasticDouble( UInt_t uEventIndex , UInt_t uPlasticIndex, Double_t dGet4v10OtherOffset = 0 ); 00036 00037 00038 protected: 00039 TPlasticsParam * fPar; 00040 TVftxParam * fVftxPar; 00041 TMbsCrateEvent * fCrateInputEvent; 00042 TTriglogEvent * fTriglogInputEvent; 00043 TVftxEvent * fVftxInputEvent; 00044 TGet4v1Event * fGet4v1InputEvent; 00045 00046 TPlasticsEvent * fOutputEvent; 00047 00048 protected: 00049 Double_t dCaenBinSize; 00050 Plastics_Hit hitCurrent; 00051 00052 TH2 * fBeamProfilePlasticsTime; 00053 TH2 * fDiamondProfilePlastics; 00054 TH2 * fReferenceProfilePlastics; 00055 TH2 * fTotLeftPlastics; 00056 TH2 * fTotRightPlastics; 00057 TH2 * fMultiplicityPlastics; 00058 00059 ClassDef(TPlasticsProc,1) 00060 }; 00061 #endif //TPLASTICSPROC_H 00062