LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
LCRelation.h
1 // -*- C++ -*-
2 // AID-GENERATED
3 // =========================================================================
4 // This class was generated by AID - Abstract Interface Definition
5 // DO NOT MODIFY, but use the org.freehep.aid.Aid utility to regenerate it.
6 // =========================================================================
7 #ifndef EVENT_LCRELATION_H
8 #define EVENT_LCRELATION_H 1
9 
10 #include "EVENT/LCObject.h"
11 
12 namespace EVENT {
13 
14 class LCObject;
15 
29 class LCRelation : public LCObject {
30 
31 public:
33  virtual ~LCRelation() { /* nop */; }
34 
35 
38 
41  virtual LCObject * getFrom() const = 0;
42 
45  virtual LCObject * getTo() const = 0;
46 
49  virtual float getWeight() const = 0;
50 }; // class
51 } // namespace EVENT
52 #endif /* ifndef EVENT_LCRELATION_H */
The generic object that is held in an LCCollection.
Definition: LCObject.h:30
virtual LCObject * getTo() 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...
A single weighted relationship between two LCObjects.
Definition: LCRelation.h:29
LCRelation lcobject_type
Useful typedef for template programming with LCIO.
Definition: LCRelation.h:37
virtual LCObject * getFrom() const =0
The 'from' object of the given relation.
virtual ~LCRelation()
Destructor.
Definition: LCRelation.h:33