Belle II Software  release-05-02-19
OverlapNetwork.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Martin Heck *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <framework/datastore/RelationsObject.h>
13 #include <vector>
14 
15 
16 namespace Belle2 {
22  class OverlapNetwork : public RelationsObject {
23  public:
25  explicit OverlapNetwork(const std::vector <std::vector <unsigned short> >& overlapMatrix) :
26  m_overlapMatrix(overlapMatrix)
27  {}
28 
36  std::vector<unsigned short> const& getOverlapForTrackIndex(unsigned short trackIndex) const
37  {
38  return m_overlapMatrix[trackIndex];
39  }
40 
41  private:
42  std::vector<std::vector <unsigned short> > const m_overlapMatrix;
44  };
46 }
Belle2::RelationsInterface::ClassDef
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::OverlapNetwork::OverlapNetwork
OverlapNetwork(const std::vector< std::vector< unsigned short > > &overlapMatrix)
Takes an OverlapMatrix in the form, that comes from the OverlapMatrixCreator.
Definition: OverlapNetwork.h:33
Belle2::OverlapNetwork::getOverlapForTrackIndex
std::vector< unsigned short > const & getOverlapForTrackIndex(unsigned short trackIndex) const
Returns a vector of indices of SpacePointTrackCand, that overlap with the one at trackIndex.
Definition: OverlapNetwork.h:44
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::OverlapNetwork::m_overlapMatrix
const std::vector< std::vector< unsigned short > > m_overlapMatrix
Input, format see OverlapMatrixCreator.
Definition: OverlapNetwork.h:50