Belle II Software  release-05-01-25
Box.test.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2014 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost <oliver.frost@desy.de> *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #include <tracking/trackFindingCDC/hough/boxes/Box.h>
11 
12 #include <gtest/gtest.h>
13 
14 
15 using namespace Belle2;
16 using namespace TrackFindingCDC;
17 
18 TEST(TrackFindingCDCTest, Box_intersects)
19 {
20  Box<float, float> box({{0, 1}}, {{0, 1}});
21  EXPECT_TRUE(box.intersects(box));
22 
23  Box<float, float> box2({{0.5, 1.5}}, {{0.5, 1.5}});
24  EXPECT_TRUE(box.intersects(box2));
25  EXPECT_TRUE(box2.intersects(box));
26 
27  Box<float, float> box3({{1.5, 2.5}}, {{0.5, 1.5}});
28  EXPECT_FALSE(box.intersects(box3));
29  EXPECT_FALSE(box3.intersects(box));
30 }
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TEST
TEST(TestgetDetectorRegion, TestgetDetectorRegion)
Test Constructors.
Definition: utilityFunctions.cc:18