9 #include <framework/dataobjects/RelationElement.h>
11 #include <framework/logging/Logger.h>
18 RelationElement::RelationElement(
index_type from,
const std::vector<index_type>& to,
const std::vector<weight_type>& weights):
21 m_to(to.begin(), to.end()),
22 m_weights(weights.begin(), weights.end())
24 if (to.size() != weights.size()) {
25 B2FATAL(
"Index and weight vector sizes differ!");
29 TObject(), m_from(UINT_MAX), m_to(), m_weights()
RelationElement()
Empty constructor for ROOT.
unsigned int index_type
type used for indices.
Abstract base class for different kinds of events.