Belle II Software  release-05-01-25
binnedEventT0.cc
1 #include <framework/dataobjects/BinnedEventT0.h>
2 #include <gtest/gtest.h>
3 
4 using namespace Belle2;
5 
6 namespace {
7 
9  TEST(BinnedEventT0, Basic)
10  {
11  BinnedEventT0 t0;
12 
13  ASSERT_FALSE(t0.hasBinnedEventT0(Const::SVD));
14  ASSERT_EQ(t0.getBinnedEventT0(Const::SVD), 0);
15 
16  t0.addBinnedEventT0(-10, Const::SVD);
17  ASSERT_TRUE(t0.hasBinnedEventT0(Const::SVD));
18  ASSERT_FALSE(t0.hasBinnedEventT0(Const::CDC));
19  ASSERT_EQ(t0.getBinnedEventT0(Const::SVD), -10);
20  ASSERT_EQ(t0.getBinnedEventT0(Const::CDC), 0);
21 
22  t0.clear();
23  ASSERT_FALSE(t0.hasBinnedEventT0(Const::SVD));
24  ASSERT_EQ(t0.getBinnedEventT0(Const::SVD), 0);
25  }
26 }
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TEST
TEST(TestgetDetectorRegion, TestgetDetectorRegion)
Test Constructors.
Definition: utilityFunctions.cc:18
Belle2::BinnedEventT0
Database object for storing a binned EventT0 coming from the trigger.
Definition: BinnedEventT0.h:43