// $Id$ // // File: DAnalysisResults_factory.h // Created: Tue Aug 9 14:29:24 EST 2011 // Creator: pmatt (on Linux ifarml6 2.6.18-128.el5 x86_64) // #ifndef _DAnalysisResults_factory_ #define _DAnalysisResults_factory_ #include #include #include #include "TH1D.h" #include "TH2D.h" #include "TDirectoryFile.h" #include "JANA/JFactory.h" #include "DANA/DApplication.h" #include "ANALYSIS/DReaction.h" #include "ANALYSIS/DParticleCombo.h" #include "ANALYSIS/DAnalysisAction.h" #include "ANALYSIS/DAnalysisResults.h" #include "ANALYSIS/DHistogramActions.h" using namespace jana; using namespace std; class DAnalysisResults_factory : public jana::JFactory { public: DAnalysisResults_factory(){}; ~DAnalysisResults_factory(){}; private: jerror_t init(void); ///< Called once at program start. jerror_t brun(jana::JEventLoop *locEventLoop, int runnumber); ///< Called everytime a new run number is detected. jerror_t evnt(jana::JEventLoop *locEventLoop, int eventnumber); ///< Called every event. jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called. jerror_t fini(void); ///< Called after last event of last event source has been processed. void Get_Reactions(jana::JEventLoop* locEventLoop, vector& locReactions) const; bool dROOTObjectsCreatedFlag; unsigned int dDebugLevel; DApplication* dApplication; deque dReactionIndependentAnalysisActions; map dHistMap_NumEventsSurvivedAction; map dHistMap_NumCombosSurvivedAction; map dHistMap_NumCombosSurvivedAction1D; }; #endif // _DAnalysisResults_factory_