11#include <tracking/trackFindingCDC/numerics/Weight.h>
13#include <tracking/trackFindingCDC/utilities/Scalar.h>
20 namespace TrackFindingCDC {
53 const T& otherT(other);
A mixin class to attach a weight to an object.
Weight getWeight() const
Getter for the weight.
WithWeight(const T &t, Weight weight)
Constructor which may also initialise the weight to a desired value.
Weight & weight()
Mutable getter for the weight.
ScalarToClass< T > Super
Type of the base class.
Weight m_weight
Memory for the weight.
void setWeight(Weight weight)
Setter for the weight of the object.
WithWeight(const T &t)
Also forward the copy constructor form the base class object.
bool operator<(const WithWeight< T > &other) const
Comparison operator establishing an ordering considering the pointer first and the weight second.
Abstract base class for different kinds of events.