7 #include <UnitTest++.h> 35 CHECK_EQUAL((
unsigned int)0,
52 CHECK_EQUAL((
unsigned int)0,
74 int main(
int argv,
char *argc[]) {
75 return (UnitTest::RunAllTests());
std::vector< unsigned int > GetQdc() const
static const double ts_w_cfd
static const XiaListModeDataMask mask(R30474, 250)
static const unsigned int ts_low
unsigned int GetEventTimeHigh() const
unsigned int header_w_bad_eventlen[6]
A header where the event length doesn't match what it should be.
TEST_FIXTURE(XiaListModeDataDecoder, TestBufferLengthChecks)
unsigned int header_N_Cfd[6]
static const std::vector< unsigned int > trace
unsigned int GetCfdFractionalTime() const
static const unsigned int channelNumber
unsigned int GetChannelNumber() const
unsigned int empty_module_buffer[2]
double GetTime() const
Method that will return the time for the channel. The actual time is a 48-bit number. We multiply 2^32 by the eventTimeHigh_ so that we account for the missing upper 16 bits of the number. The cfdTime_ contains all of the fractional time information, and so we divide by 2^16 here. Verify that this method works properly for all of the different module types and firmwares. It doesn't and this value simply needs to be set explicitly by the Decoder.
static const std::vector< unsigned int > qdc
Class to decode Xia List mode Data.
unsigned int GetSlotNumber() const
Header containing namespaced enumerations that are useful to different parts of the software...
This header provides sample data that can be used by Unit Tests to ensure proper functionality.
unsigned int header_N_qdc[14]
static const unsigned int slotId
unsigned int empty_buffer[2]
unsigned int header_N_trace[68]
unsigned int GetEventTimeLow() const
int main(int argv, char *argc[])
static const unsigned int cfd_fractional_time
Class that handles decoding list mode data from XIA Pixie-16 modules.
static const unsigned int ts_high
std::vector< unsigned int > GetTrace() const
unsigned int header_w_bad_headerlen[6]
A header with a header length 20 instead of the true header length 4.
static const unsigned int energy