#if !defined (__CINT__) || defined (__MAKECINT__) #include "TH1.h" #include "TH2.h" #include "TProfile.h" #include "TBranch.h" #include #include #endif class TMcAnaModule: public TStnModule { public: struct Hist_t { TH1F* fNParticles; // total number of particles TH1F* fPt; TH1F* fEta; TH1F* fParent; }; protected: // pointers to the data blocks used TGenpBlock* fGenpBlock; // histograms filled Hist_t fHist; public: TMcAnaModule(const char* name="McAna", const char* title="McAna"); ~TMcAnaModule(); // ****** accessors Hist_t* GetHist () { return &fHist; } // ****** setters // ****** other methods void BookHistograms(); // plot given slide with the histograms // filled by the module, `run_number' // will appear in the title void PlotHistograms(int run_number, int slide); // ****** fitting methods // ****** overloaded methods of // TStnModule virtual int BeginJob(); virtual int BeginRun(); virtual int Event (int ientry); virtual int EndRun (); virtual int EndJob (); // ****** overloaded methods of // TObject void Print(Option_t* opt) const ; ClassDef(TMcAnaModule,0) };