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 {
28 class FilterBase;
29
38 public:
40 typedef unsigned int CompatibilityValue;
42 typedef std::vector<std::vector<CompatibilityValue> > CompatibilityTable;
43
46 m_mainSector(nullptr),
47 m_friendSector(nullptr) {}
48
51
54
57
59 unsigned int checkCombinationsAlive() const;
60 protected:
61
64
67
69 std::vector<FilterBase*> m_myFilters;
70
72 std::vector<std::vector<CompatibilityValue> > m_compatibilityTable;
73
75 };
77} //Belle2 namespace
Defines interface for accessing relations of objects in StoreArray.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
SectorFriendship is carrying the link between parent sector and a connected sector (socalled Friendse...
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
Abstract base class for different kinds of events.