13TEST(_GTestEventBuilder, CheckEventBuilderAlgorithmSimple)
15 SCOPED_TRACE(
"CheckEventBuilderAlgorithSimple");
18 YAML::Node configNode;
31 const uint nInput = 1000;
32 const double inputSpacing = 10.0;
35 for (uint i = 0; i < nInput; i++) {
37 tsIn.
fSts.push_back(
CbmStsDigi(268502050, 1, i * inputSpacing, 1.0));
46 std::vector<double> triggerIn;
47 const uint nTrigger = 99;
48 const double triggerSpacing = 100.0;
50 for (uint i = 1; i <= nTrigger; i++) {
51 triggerIn.push_back(i * triggerSpacing);
55 std::vector<DigiEvent>& eventsOut = result.first;
58 EXPECT_EQ(eventsOut.size(), nTrigger);
60 for (uint i = 0; i < eventsOut.size(); i++) {
61 EXPECT_EQ(eventsOut[i].fMuch.size(), 9);
62 EXPECT_EQ(eventsOut[i].fSts.size(), 9);
63 EXPECT_EQ(eventsOut[i].fTof.size(), 9);
64 EXPECT_EQ(eventsOut[i].fTrd.size(), 9);
65 EXPECT_EQ(eventsOut[i].fRich.size(), 9);
66 EXPECT_EQ(eventsOut[i].fPsd.size(), 9);
67 EXPECT_EQ(eventsOut[i].fFsd.size(), 9);
68 EXPECT_EQ(eventsOut[i].fBmon.size(), 9);
69 EXPECT_EQ(eventsOut[i].fTime, triggerIn[i]);