Belle II Software development
OverlapNetwork.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#pragma once
9
10#include <framework/datastore/RelationsObject.h>
11#include <vector>
12
13
14namespace Belle2 {
21 public:
23 explicit OverlapNetwork(const std::vector <std::vector <unsigned short> >& overlapMatrix) :
24 m_overlapMatrix(overlapMatrix)
25 {}
26
34 std::vector<unsigned short> const& getOverlapForTrackIndex(unsigned short trackIndex) const
35 {
36 return m_overlapMatrix[trackIndex];
37 }
38
39 private:
40 std::vector<std::vector <unsigned short> > const m_overlapMatrix;
42 };
44}
Hold information about overlap of SpacePointTrackCand.
std::vector< unsigned short > const & getOverlapForTrackIndex(unsigned short trackIndex) const
Returns a vector of indices of SpacePointTrackCand, that overlap with the one at trackIndex.
OverlapNetwork(const std::vector< std::vector< unsigned short > > &overlapMatrix)
Takes an OverlapMatrix in the form, that comes from the OverlapMatrixCreator.
std::vector< std::vector< unsigned short > > const m_overlapMatrix
Input, format see OverlapMatrixCreator.
Defines interface for accessing relations of objects in StoreArray.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.