Belle II Software development
SectorFriendship.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// includes - stl:
13// includes - tf-related stuff
14#include <tracking/trackFindingVXD/sectorMapTools/Sector.h>
15
16// includes - general fw stuff
17#include <framework/datastore/RelationsObject.h>
18
19
20namespace Belle2 {
25
26
28 class FilterBase;
29
38 public:
40 typedef unsigned int CompatibilityValue;
42 typedef std::vector<std::vector<CompatibilityValue> > CompatibilityTable;
43
46
49
52
55
57 unsigned int checkCombinationsAlive() const;
58 protected:
59
61 std::vector<FilterBase*> m_myFilters;
62
64 std::vector<std::vector<CompatibilityValue> > m_compatibilityTable;
65
67 Sector* m_mainSector = nullptr;
68
71
73 };
74
75} //Belle2 namespace
FilterBase is the baseClass for filters applied on (chains of) spacepoints.
Definition FilterBase.h:36
Sector * m_friendSector
The friendSector is stored once per run and is a link to a compatible inner sector.
std::vector< std::vector< CompatibilityValue > > m_compatibilityTable
This table carries the compatibility for each combination of hits or segments.
void applySegmentFilters()
applies SegmentFilters on each spacepoint of this sector-sector-combination
Sector * m_mainSector
The mainSector is stored once per run and is a link to a compatible outer sector.
Sector * getFriend()
returns friend sector
void prepareCompatibilityTable()
creates a compatibility-table so that the filters can use it
unsigned int CompatibilityValue
is currently a counter which counts number of passed filterTests
std::vector< std::vector< CompatibilityValue > > CompatibilityTable
is currently a table of CompatibilityValues which allows to check which combination of spacepoints/se...
std::vector< FilterBase * > m_myFilters
This vector carries a pointer to all filters allowed for this sector-combination.
unsigned int checkCombinationsAlive() const
iterates through each combination of spacepoints and counts the number of combinations which are stil...
Sector is a central part of storing information for VXD trackFinders.
Definition Sector.h:43
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Abstract base class for different kinds of events.