2 #ifndef EVENT_LCWGTRELATIONIMPL_H
3 #define EVENT_LCWGTRELATIONIMPL_H 1
8 #include "EVENT/LCRelation.h"
9 #include "EVENT/LCObject.h"
10 #include "AccessChecked.h"
31 int id()
const {
return simpleUID() ; }
39 void setWeight(
float weight ) { _weight = weight ; }
The generic object that is held in an LCCollection.
Definition: LCObject.h:30
Implementation of the LCRelation.
Definition: LCRelationImpl.h:21
EVENT::LCObject * getTo() const
The 'to' object of the given relation.
Definition: LCRelationImpl.h:34
EVENT::LCObject * getFrom() const
The 'from' object of the given relation.
Definition: LCRelationImpl.h:33
float getWeight() const
The weight of the given relation - only if collection flag bit LCIO::LCREL_WEIGHTED is set...
Definition: LCRelationImpl.h:35
int id() const
Returns an object id for internal (debugging) use in LCIO.
Definition: LCRelationImpl.h:31
A single weighted relationship between two LCObjects.
Definition: LCRelation.h:29
Controls access to objects.
Definition: AccessChecked.h:17