// $Id$ // // File: DBCALTimeSpectrum_factory_2006BeamTest.h // Created: Thu Aug 30 9:34:05 EDT 2011 // Creator: davidl (on Linux ifarm1102 2.6.18-128.7.1.el5 x86_64) // #ifndef _DBCALTimeSpectrum_factory_2006BeamTest_ #define _DBCALTimeSpectrum_factory_2006BeamTest_ #include #include "DBCALTimeSpectrum.h" class DBCALTimeSpectrum_factory_2006BeamTest:public jana::JFactory{ public: DBCALTimeSpectrum_factory_2006BeamTest(){}; ~DBCALTimeSpectrum_factory_2006BeamTest(){}; const char* Tag(void){return "2006BeamTest";} int GetSummedLayer(int layer, int sector); int GetSummedSector(int layer, int sector); int GetSummedCell(int layer, int sector); void GetSummedLayerAndSectorFromCell(int cell, int &summed_layer, int &summed_sector); private: jerror_t init(void); ///< Called once at program start. jerror_t brun(jana::JEventLoop *eventLoop, int runnumber); ///< Called everytime a new run number is detected. jerror_t evnt(jana::JEventLoop *eventLoop, 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. map > sum_map; }; #endif // _DBCALTimeSpectrum_factory_2006BeamTest_