7 #ifndef EVENT_LCEVENT_H
8 #define EVENT_LCEVENT_H 1
13 #include "EVENT/LCParameters.h"
14 #include "Exceptions.h"
15 #include "LCIOTypes.h"
virtual const LCParameters & getParameters() const =0
Parameters defined for this event.
virtual double getWeight() const =0
Returns the event weight.
virtual LCCollection * takeCollection(const std::string &name) const =0
Returns the collection for the given name and transfers the ownership of the collection to the caller...
virtual int getRunNumber() const =0
Return the run number off this event.
virtual const std::vector< std::string > * getCollectionNames() const =0
Returns the names of the collections in the event.
virtual long64 getTimeStamp() const =0
Returns the time stamp of the event.
long long long64
64 bit signed integer,e.g.to be used for timestamps
Definition: LCIOTypes.h:14
virtual LCParameters & parameters()=0
Parameters defined for this event.
EventException used for errors accessing the event data.
Definition: Exceptions.h:44
virtual LCCollection * getCollection(const std::string &name) const =0
Returns the collection for the given name.
Simple interface to store generic named parameters of type int, float and string. ...
Definition: LCParameters.h:28
virtual const std::string & getDetectorName() const =0
Returns the name of the detector setup used in the simulation.
virtual void removeCollection(const std::string &name)=0
Removes (and deletes) the collection with name (if it exists in the event).
The main event interface.
Definition: LCEvent.h:30
EventException used for data not available.
Definition: Exceptions.h:60
The generic collection used in LCIO.
Definition: LCCollection.h:29
virtual int getEventNumber() const =0
Returns this event's number .
virtual void addCollection(LCCollection *col, const std::string &name)=0
Adds a collection with the given name (has to be a valid C/C++ variable name).
virtual ~LCEvent()
Destructor.
Definition: LCEvent.h:34
EventException used for signaling a 'read only exception'.
Definition: Exceptions.h:74