8 #include <svd/dataobjects/SVDModeByte.h>
9 #include <gtest/gtest.h>
28 SVDModeByte s_en(SVDRunType::zero_suppressed, SVDEventType::global_run,
29 SVDDAQModeType::daq_6samples, uint8_t(7));
33 EXPECT_EQ(s_def, s_en);
34 EXPECT_EQ(s_en, s_num);
36 EXPECT_EQ(uint8_t(151), s0.
getID());
37 EXPECT_EQ((
string)s0,
"0-suppr/global/6 samples/???");
40 EXPECT_EQ((
string)s0,
"0-suppr/global/6 samples/3");
42 EXPECT_EQ((
string)s0,
"0-suppr/global/3 samples/3");
50 EXPECT_EQ(s.getTriggerBin(), 3);
51 EXPECT_EQ(s.getDAQMode(), SVDDAQModeType::daq_3samples);
52 EXPECT_EQ(s.getEventType(), SVDEventType::local_run);
53 EXPECT_EQ(s.getRunType(), SVDRunType::zero_suppressed_timefit);
57 EXPECT_EQ(s0.
getDAQMode(), SVDDAQModeType::daq_6samples);
Class to store SVD mode information.
void setTriggerBin(baseType triggerBin)
Set the triggerBin id.
baseType getID() const
Get the unique id.
void setDAQMode(baseType daqMode)
Set the daqMode id.
baseType getTriggerBin() const
Get the triggerBin id.
baseType getDAQMode() const
Get the daqMode id.
TEST(TestgetDetectorRegion, TestgetDetectorRegion)
Test Constructors.
Abstract base class for different kinds of events.