#if !defined (__CINT__) || defined (__MAKECINT__) #include "TH1.h" #include "TH2.h" #include "TProfile.h" #include #include #include #include #endif class TMetAnaModule: public TStnModule { public: struct Hist_t { TH1F* fMet [2]; // TH1F* fMetPhi[2]; TH2F* fMet0VsMet1; TH1F* fSumEt; }; protected: // pointers to the data blocks used TStnMetBlock* fMetBlock; // histograms filled Hist_t fHist; Double_t fMinMet; // min MET used for filtering //----------------------------------------------------------------------------- // functions //----------------------------------------------------------------------------- public: TMetAnaModule(const char* name="MetAna", const char* title="MetAna"); ~TMetAnaModule(); // ****** accessors Hist_t* GetHist () { return &fHist; } TStnMetBlock* GetMetBlock() { return fMetBlock; } Double_t MinMet () { return fMinMet; } // ****** modifiers void SetMinMet (Double_t Met) { fMinMet = Met; } // ****** overloaded methods of // TStnModule int BeginJob(); int BeginRun(); int Event (int ientry); int EndJob (); // ****** other methods void BookHistograms(); void PlotHistograms(int run_number, int slide); ClassDef(TMetAnaModule,0) };