Belle II Software development
FilterBase.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
9#pragma once
10
11// includes - rootStuff:
12#include <TObject.h>
13
14// includes - stl:
15#include <vector>
16
17// includes - tf-related stuff
18// includes - general fw stuff
19
20
21namespace Belle2 {
28 class SectorFriendship;
29
30
36 class FilterBase : public TObject {
37 public:
39 typedef unsigned int CompatibilityValue;
41 typedef std::vector<std::vector<CompatibilityValue> > CompatibilityTable;
42
44 FilterBase(float minValue = 0, float maxValue = 0):
45 m_minCutoff(minValue),
46 m_maxCutoff(maxValue) {}
47
49 virtual void checkSpacePoints(const SectorFriendship* thisFriendship, CompatibilityTable& compatibilityTable) = 0;
50
51 protected:
52
53
56
59
60 ClassDef(FilterBase, 1)
61 };
63} //Belle2 namespace
FilterBase is the baseClass for filters applied on (chains of) spacepoints.
Definition: FilterBase.h:36
float m_maxCutoff
if value is higher than cutoff, the value will be neglected
Definition: FilterBase.h:58
FilterBase(float minValue=0, float maxValue=0)
constructor
Definition: FilterBase.h:44
unsigned int CompatibilityValue
is currently a counter which counts number of passed filterTests
Definition: FilterBase.h:39
std::vector< std::vector< CompatibilityValue > > CompatibilityTable
is currently a table of CompatibilityValues which allows to check which combination of spacepoints/se...
Definition: FilterBase.h:41
virtual void checkSpacePoints(const SectorFriendship *thisFriendship, CompatibilityTable &compatibilityTable)=0
called for each compatible sector-sector-combination inhabiting spacePoints
float m_minCutoff
if value is lower than cutoff, the value will be neglected
Definition: FilterBase.h:55
SectorFriendship is carrying the link between parent sector and a connected sector (socalled Friendse...
Abstract base class for different kinds of events.