/*! * @file STriggerRecord.cpp * @author Nick Ryder, on behalf of the SoLid collaboration. * @date 31 Oct 2016 */ #include "STriggerRecord.h" STriggerRecord::STriggerRecord( uint8_t plane, uint64_t timestamp, uint16_t triggermask, std::vector channeltriggers): m_plane(plane), m_timestamp(timestamp), m_htime(0.0), m_triggermask(triggermask), m_channeltriggers(channeltriggers), m_requestedchans(0), m_includedchans(0) { m_htime = 25e-9 * (double) timestamp; } void STriggerRecord::addchannels(uint64_t requestedchans, uint64_t includedchans) { m_requestedchans = requestedchans; m_includedchans = includedchans; }