#if !defined (__CINT__) || defined (__MAKECINT__) #include "TH1.h" #include "TH2.h" #include "TProfile.h" #include #include #include #endif class TConversionFilterModule: public TStnModule { public: struct Hist_t { TH2F* fNSeg; TH1F* fDeltaLamRS[2]; TH1F* fDeltaLamWS[2]; TH1F* fSeparationRS[2]; TH1F* fSeparationWS[2]; TH1F* fRConvRS[7]; TH1F* fRConvWS[7]; TH1F* fNCand[7]; TH2F* fYConvVsXConv; }; protected: // pointers to the data blocks used, // header block is always available via // TStnModule::GetHeaderBlock() TStnTrackBlock* fTrackBlock; TStnTriggerBlock* fTriggerBlock; // histograms filled Hist_t fHist; // cuts Double_t fMaxSeparation; Double_t fMaxDeltaLam; public: TConversionFilterModule(const char* name ="ConversionFilter", const char* title="ConversionFilter"); ~TConversionFilterModule(); // ****** accessors Hist_t* GetHist () { return &fHist; } TStnTrackBlock* GetTrackBlock () { return fTrackBlock; } TStnTriggerBlock* GetTriggerBlock() { return fTriggerBlock; } // cut values Double_t GetMaxSeparation() { return fMaxSeparation; } Double_t GetMaxDeltaLam () { return fMaxDeltaLam; } // ****** setters void SetMaxSeparation(Double_t sep ) { fMaxSeparation = sep; } void SetMaxDeltaLam (Double_t dlam) { fMaxDeltaLam = dlam; } // ****** overloaded methods of // TStnModule int BeginJob(); int BeginRun(); int Event (int ientry); int EndJob (); // ****** other methods void BookHistograms(); ClassDef(TConversionFilterModule,0) };