/*! * @file SEventFinder.h * @author Dan Saunders, on behalf of the SoLid collaboration. * @date Halloween 2016 */ #ifndef SEventFinder_h_ #define SEventFinder_h_ #include "SAlgorithms/ISAlgorithm.h" //! Forming events from peaks. class SEventFinder : public ISAlgorithm { private: //! See htimeWindow() double m_htimeWindow; uint m_nEventsFound; TH1D * h_size; TH1D * h_htimeInCycle; TH1D * h_chans; public: SEventFinder(SDetector * dtr, SClipboard * cb); ~SEventFinder(); void initialize(); void execute(); void finalize(); // Setters and getters _______________________________________________________ //! Time window used for form events (ns). double htimeWindow() {return m_htimeWindow;} }; #endif /* SEventFinder_h_ */