1 #ifndef EVENT_LCEVENTIMPL_H
2 #define EVENT_LCEVENTIMPL_H 1
7 #include "EVENT/LCEvent.h"
8 #include "EVENT/LCCollection.h"
10 #include "EVENT/LCIO.h"
11 #include "LCIOTypes.h"
12 #include "AccessChecked.h"
13 #include "LCParametersImpl.h"
19 typedef std::map<std::string,EVENT::LCCollection*> LCCollectionMap ;
20 typedef std::set<EVENT::LCCollection*> LCCollectionSet ;
159 void setAccessMode(
int accessMode ) ;
173 std::string _detectorName ;
176 mutable LCCollectionMap _colMap ;
177 mutable std::vector<std::string> _colNames ;
182 mutable LCCollectionSet _notOwned ;
void setTimeStamp(EVENT::long64 ts)
Sets the event time stamp.
Definition: LCEventImpl.cc:191
void setWeight(double w)
Set the event weight.
Definition: LCEventImpl.cc:197
virtual EVENT::long64 getTimeStamp() const
Returns the time stamp of the event.
Definition: LCEventImpl.cc:73
Implementation of the main event class.
Definition: LCEventImpl.h:31
virtual const std::string & getDetectorName() const
Returns the name of the detector setup used in the simulation.
Definition: LCEventImpl.cc:68
virtual const std::vector< std::string > * getCollectionNames() const
Returns the names of the collections in the event.
Definition: LCEventImpl.cc:85
virtual double getWeight() const
Returns the event weight.
Definition: LCEventImpl.cc:77
virtual int getRunNumber() const
Return the run number off this event.
Definition: LCEventImpl.cc:58
long long long64
64 bit signed integer,e.g.to be used for timestamps
Definition: LCIOTypes.h:14
virtual void addCollection(EVENT::LCCollection *col, const std::string &name)
Adds a collection with the given name (has to be a valid C/C++ variable name).
Definition: LCEventImpl.cc:136
Implementation of Simple interface to store generic named parameters of type int, float and string...
Definition: LCParametersImpl.h:35
void setEventNumber(int en)
Sets the event number.
Definition: LCEventImpl.cc:179
virtual int getEventNumber() const
Returns this event's number .
Definition: LCEventImpl.cc:63
EventException used for errors accessing the event data.
Definition: Exceptions.h:44
Simple interface to store generic named parameters of type int, float and string. ...
Definition: LCParameters.h:28
virtual EVENT::LCCollection * getCollection(const std::string &name) const
Returns the collection for the given name.
Definition: LCEventImpl.cc:100
virtual ~LCEventImpl()
Copy contructor, creates a deep copy of the event.
Definition: LCEventImpl.cc:43
void setRunNumber(int rn)
Sets the run number.
Definition: LCEventImpl.cc:173
virtual EVENT::LCParameters & parameters()
Parameters defined for this run.
Definition: LCEventImpl.h:135
bool validateCollectionName(const char *name)
Tests the validity of a collection name.
Definition: LCEventImpl.cc:226
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
void setDetectorName(const std::string &dn)
Sets the detector name.
Definition: LCEventImpl.cc:185
virtual EVENT::LCCollection * takeCollection(const std::string &name) const
Returns the collection for the given name and transfers the ownership of the collection to the caller...
Definition: LCEventImpl.cc:121
virtual void removeCollection(const std::string &name)
Removes (and deletes) the collection with name (if it exists in the event).
Definition: LCEventImpl.cc:163
virtual const EVENT::LCParameters & getParameters() const
Returns the names of the relations in the event.
Definition: LCEventImpl.h:131
Controls access to objects.
Definition: AccessChecked.h:17
EventException used for signaling a 'read only exception'.
Definition: Exceptions.h:74