// $Id$ // // File: DEventRFBunch_factory_L3.h // Created: Tue Aug 9 14:29:24 EST 2011 // Creator: pmatt (on Linux ifarml6 2.6.18-128.el5 x86_64) // #ifndef _DEventRFBunch_factory_L3_ #define _DEventRFBunch_factory_L3_ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using namespace jana; class DEventRFBunch_factory_L3 : public jana::JFactory { public: DEventRFBunch_factory_L3(){use_factory = 1;}; ~DEventRFBunch_factory_L3(){}; const char* Tag(void){return "L3";} //bool Find_TrackTimes(const DDetectorMatches* locDetectorMatches, const vector& locTrackTimeBasedVector, vector& locTimes); bool Find_NeutralTimes(JEventLoop* locEventLoop, vector& locTimes); int Find_BestRFBunchShift(double locRFHitTime, const vector& locTimes); private: double dRFBunchFrequency; DVector3 dTargetCenter; jerror_t init(void); ///< Called once at program start. jerror_t brun(jana::JEventLoop *locEventLoop, int32_t runnumber); ///< Called everytime a new run number is detected. jerror_t evnt(jana::JEventLoop *locEventLoop, uint64_t 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. }; #endif // _DEventRFBunch_factory_L3_