Belle II Software  release-05-01-25
RelationElement.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Martin Ritter *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #include <framework/dataobjects/RelationElement.h>
12 
13 #include <framework/logging/Logger.h>
14 
15 #include <climits>
16 
17 using namespace std;
18 using namespace Belle2;
19 
20 RelationElement::RelationElement(index_type from, const std::vector<index_type>& to, const std::vector<weight_type>& weights):
21  TObject(),
22  m_from(from),
23  m_to(to.begin(), to.end()),
24  m_weights(weights.begin(), weights.end())
25 {
26  if (to.size() != weights.size()) {
27  B2FATAL("Index and weight vector sizes differ!");
28  }
29 }
31  TObject(), m_from(UINT_MAX), m_to(), m_weights()
32 {
33 
34 }
Belle2::RelationElement::RelationElement
RelationElement()
Empty constructor for ROOT.
Definition: RelationElement.cc:30
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::RelationElement::index_type
unsigned int index_type
type used for indices.
Definition: RelationElement.h:37