2 #ifndef EVENT_LCWGTRELATIONIMPL_H
3 #define EVENT_LCWGTRELATIONIMPL_H 1
The generic object that is held in an LCCollection.
Implementation of the LCRelation.
EVENT::LCObject * getTo() const
The 'to' object of the given relation.
EVENT::LCObject * getFrom() const
The 'from' object of the given relation.
LCRelationImpl(EVENT::LCObject *from, EVENT::LCObject *to, float weight=1.0f)
float getWeight() const
The weight of the given relation - only if collection flag bit LCIO::LCREL_WEIGHTED is set...
void setFrom(EVENT::LCObject *from)
int id() const
Returns an object id for internal (debugging) use in LCIO.
A single weighted relationship between two LCObjects.
virtual int simpleUID() const
void setTo(EVENT::LCObject *to)
LCRelationImpl & operator=(const LCRelationImpl &)=default
default assignment operator - use with care
Controls access to objects.
void setWeight(float weight)