Belle II Software  release-05-02-19
FilterBase.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jakob Lettenbichler *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 // includes - rootStuff:
14 #include <TObject.h>
15 
16 // includes - stl:
17 #include <vector>
18 
19 // includes - tf-related stuff
20 // includes - general fw stuff
21 
22 
23 namespace Belle2 {
30  class SectorFriendship;
31 
32 
38  class FilterBase : public TObject {
39  public:
41  typedef unsigned int CompatibilityValue;
43  typedef std::vector<std::vector<CompatibilityValue> > CompatibilityTable;
44 
46  FilterBase(float minValue = 0, float maxValue = 0):
47  m_minCutoff(minValue),
48  m_maxCutoff(maxValue) {}
49 
51  virtual void checkSpacePoints(const SectorFriendship* thisFriendship, CompatibilityTable& compatibilityTable) = 0;
52 
53  protected:
54 
55 
57  float m_minCutoff;
58 
60  float m_maxCutoff;
61 
62  ClassDef(FilterBase, 1)
63  };
65 } //Belle2 namespace
Belle2::FilterBase::CompatibilityValue
unsigned int CompatibilityValue
is currently a counter which counts number of passed filterTests
Definition: FilterBase.h:49
Belle2::FilterBase::m_minCutoff
float m_minCutoff
if value is lower than cutoff, the value will be neglected
Definition: FilterBase.h:65
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::FilterBase::m_maxCutoff
float m_maxCutoff
if value is higher than cutoff, the value will be neglected
Definition: FilterBase.h:68
Belle2::SectorFriendship
SectorFriendship is carrying the link between parent sector and a connected sector (socalled Friendse...
Definition: SectorFriendship.h:47
Belle2::FilterBase
FilterBase is the baseClass for filters applied on (chains of) spacepoints.
Definition: FilterBase.h:46
Belle2::FilterBase::checkSpacePoints
virtual void checkSpacePoints(const SectorFriendship *thisFriendship, CompatibilityTable &compatibilityTable)=0
called for each compatible sector-sector-combination inhabiting spacePoints
Belle2::FilterBase::CompatibilityTable
std::vector< std::vector< CompatibilityValue > > CompatibilityTable
is currently a table of CompatibilityValues which allows to check which combination of spacepoints/se...
Definition: FilterBase.h:51
Belle2::FilterBase::FilterBase
FilterBase(float minValue=0, float maxValue=0)
constructor
Definition: FilterBase.h:54