Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

EVENT::LCRelation Class Reference

A single weighted relationship between two LCObjects. More...

#include <EVENT/LCRelation.h>

Inheritance diagram for EVENT::LCRelation:

EVENT::LCObject lcrtrel::LCRTRelations IMPL::LCRelationImpl IOIMPL::LCRelationIOImpl List of all members.

Public Types

typedef LCRelation lcobject_type
 Useful typedef for template programming with LCIO.

Public Member Functions

virtual ~LCRelation ()
 Destructor.
virtual LCObjectgetFrom () const =0
 The 'from' object of the given relation.
virtual LCObjectgetTo () const =0
 The 'to' object of the given relation.
virtual float getWeight () const =0
 The weight of the given relation - only if collection flag bit LCIO::LCREL_WEIGHTED is set.

Detailed Description

A single weighted relationship between two LCObjects.

Stored in an LCCollection like any other LCObject. Use inplementations of LCRelationNavigator to navigate the relation efficiently. the types of the objects is decoded in the collection paramters 'RelationFromType' and 'RelationToType'. In order to store weights != 1. with the relation set the collection flag bit LCIO::LCREL_WEIGHTED, this is done automatically in UTIL::LCRelationNavigator if a weight != 1. exists.

Author:
gaede
Version:
Id
LCRelation.aid,v 1.7 2006/09/14 10:16:11 gaede Exp
See also:
LCRelationNavigator


The documentation for this class was generated from the following file:
Generated on Wed Dec 2 17:39:54 2009 for LCIO by  doxygen 1.3.9.1