//-------------------------------------------------------------------------- // // Description: // Class ExampleSourceAnalysis. This is a simple example of a user module. // It books a few histograms, fills them. Also makes use of talk-to, // filtering, and uses a modern (i.e. non-banks) analysis-level // data structure in the event record. // // Environment: // Software developed for CDF. // // Author List: // Ken Bloom // //------------------------------------------------------------------------ #ifndef EXAMPLESOURCEANA_HH #define EXAMPLESOURCEANA_HH //---------------------- // Base Class Headers -- //---------------------- #include "FrameMods/HepHistModule.hh" #ifdef CDF #include "BaBar/Cdf.hh" #endif //------------------------------------ // Collaborating Class Declarations -- //------------------------------------ #include "Framework/AbsParmDouble.hh" class HepHist1D; class HepNtuple; // --------------------- // -- Class Interface -- // --------------------- class ExampleSourceAnalysis : public HepHistModule { //-------------------- // Instance Members -- //-------------------- public: // Constructors ExampleSourceAnalysis( const char* const theName = "ExampleSourceAnalysis", const char* const theDescription = "Example user analysis"); // Destructor virtual ~ExampleSourceAnalysis( ); // Operations virtual AppResult beginJob( AbsEvent* aJob ); virtual AppResult event( AbsEvent* event ); virtual AppModule* clone( const char* cloneName ); virtual AppResult endRun( AbsEvent* event ); const char* rcsId( ) const; private: // HepHist1D* _ptHisto; //HepHist1D* _phi0Histo; //HepHist1D* _d0Histo; //HepHist1D* _z0Histo; //HepHist1D* _etaHisto; //HepHist1D* _algHisto; //HepHist1D* _paralgHisto; HepNtuple* _ntuple; AbsParmGeneral _nphiCut; AbsParmGeneral _nSubphiCut; AbsParmGeneral _naverage; }; #endif