/*! * @file SEightChan_swTrig.h * @author Dan Saunders, on behalf of the SoLid collaboration. * @date 17 Feb 2016 */ #ifndef SEightChan_swTrig_h_ #define SEightChan_swTrig_h_ #include "SAlgorithms/ISAlgorithm.h" //! Builder for the eight channel setup at Bristol, using software trigger data format. /* Files contain a tree with 8 vectors - one per channel - each entry corresponds * to a software trigger, and will be used for a saffron cycle. */ class SEightChan_swTrig : public ISAlgorithm { private: //! Input chain - files passed via command line and/or options file. TChain * m_chain; //! Waveform vector branch. std::vector * br_waveform0; std::vector * br_waveform1; std::vector * br_waveform2; std::vector * br_waveform3; std::vector * br_waveform4; std::vector * br_waveform5; std::vector * br_waveform6; std::vector * br_waveform7; std::vector **> br_waveforms; long long m_nBytesIn; void updateConditions(); public: SEightChan_swTrig(SDetector * dtr, SClipboard * cb); ~SEightChan_swTrig(); void initialize(); void execute(); void finalize(); }; #endif /* SEightChan_swTrig_h_ */