7 #ifndef EVENT_LCGENERICOBJECT_H
8 #define EVENT_LCGENERICOBJECT_H 1
12 #include "EVENT/LCObject.h"
39 virtual int getNInt()
const = 0;
51 virtual int getIntVal(
int index)
const = 0;
83 virtual int id()
const {
return 0 ; }
The generic object that is held in an LCCollection.
Definition: LCObject.h:30
virtual int getNDouble() const =0
Number of double values stored in this object.
virtual bool isFixedSize() const =0
True if objects of the implementation class have a fixed size, i.e getNInt, getNFloat and getNDouble ...
virtual float getFloatVal(int index) const =0
Returns the float value for the given index.
LCGenericObject lcobject_type
Useful typedef for template programming with LCIO.
Definition: LCGenericObject.h:35
virtual int getNFloat() const =0
Number of float values stored in this object.
virtual const std::string getDataDescription() const =0
The description string.
virtual double getDoubleVal(int index) const =0
Returns the double value for the given index.
virtual ~LCGenericObject()
Destructor.
Definition: LCGenericObject.h:31
virtual int getNInt() const =0
Number of integer values stored in this object.
virtual int getIntVal(int index) const =0
Returns the integer value for the given index.
Simple interface to store generic user data.
Definition: LCGenericObject.h:27
virtual const std::string getTypeName() const =0
The type name of the user class (typically the class name) This type name is stored as a collection p...
virtual int id() const
Provide default implementation for id.
Definition: LCGenericObject.h:83