/* *Goal is to provide a fast coinc window for rejecting si. *And a way to orgainize focal plane data within slow cw. * */ #ifndef FASTSORT_H #define FASTSORT_H #include "DataStructs.h" #include class FastSort { public: FastSort(float si_windowSize, float ion_windowSize); ~FastSort(); std::vector GetFastEvents(CoincEvent& event); private: void ResetSABRE(); void ResetFocalPlane(); void ProcessSABRE(unsigned int scint_index); void ProcessFocalPlane(unsigned int scint_index, unsigned int ionch_index); float si_coincWindow, ion_coincWindow; CoincEvent *event_address, slowEvent; CoincEvent fastEvent, blank; SabreDetector sblank; FPDetector fpblank; }; #endif