Belle II Software  release-08-01-10
filterID.h
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
7  **************************************************************************/
8 #include <tracking/dataobjects/FilterID.h>
9 #include <gtest/gtest.h>
10 
11 namespace Belle2 {
20  class FilterIDTest : public ::testing::Test {
21  protected:
22  };
23 
25  TEST_F(FilterIDTest, simpleTest)
26  {
27  // provides a usefull filterType
28  Belle2::FilterID aFilterIDTranslator;
30  EXPECT_EQ(Belle2::FilterID::nameHelixParameterFit, aFilterIDTranslator.getFilterString(aFilterType));
31 
32  EXPECT_EQ(aFilterType, aFilterIDTranslator.getFilterType(Belle2::FilterID::nameHelixParameterFit));
33 
34  }
36 }
Set up a few arrays and objects in the datastore.
Definition: filterID.h:20
Class to identify a filter type used by sectorFriends.
Definition: FilterID.h:28
static filterTypes getFilterType(const std::string &filterString)
converts existing string with name of filter type into suitable enum value.
Definition: FilterID.cc:287
static const std::string nameHelixParameterFit
string name of filter helix Parameter Fit
Definition: FilterID.h:149
filterTypes
filterTyoes contains enums assigning unique values for each filter type allowing fast filter type rec...
Definition: FilterID.h:31
static std::string getFilterString(filterTypes filterType)
converts existing enum value into suitable string with name of filter type.
Definition: FilterID.h:231
TEST_F(GlobalLabelTest, LargeNumberOfTimeDependentParameters)
Test large number of time-dep params for registration and retrieval.
Definition: globalLabel.cc:72
Abstract base class for different kinds of events.