Implementation of the LCRelation. More...
#include <IMPL/LCRelationImpl.h>
Public Member Functions | |
LCRelationImpl (EVENT::LCObject *from, EVENT::LCObject *to, float weight=1.0f) | |
LCRelationImpl (const LCRelationImpl &) | |
default copy constructor - use with care | |
LCRelationImpl & | operator= (const LCRelationImpl &) |
default assignment operator - use with care | |
int | id () const |
Returns an object id for internal (debugging) use in LCIO. | |
EVENT::LCObject * | getFrom () const |
The 'from' object of the given relation. | |
EVENT::LCObject * | getTo () const |
The 'to' object of the given relation. | |
float | getWeight () const |
The weight of the given relation - only if collection flag bit LCIO::LCREL_WEIGHTED is set. | |
void | setFrom (EVENT::LCObject *from) |
void | setTo (EVENT::LCObject *to) |
void | setWeight (float weight) |
Protected Attributes | |
EVENT::LCObject * | _from |
EVENT::LCObject * | _to |
float | _weight |
Implementation of the LCRelation.