#include <LCEventImpl.h>
Inheritance diagram for IMPL::LCEventImpl:

Public Member Functions | |
| LCEventImpl () | |
| virtual | ~LCEventImpl () |
| virtual int | getRunNumber () const |
| virtual int | getEventNumber () const |
| virtual const std::string & | getDetectorName () const |
| virtual EVENT::long64 | getTimeStamp () const |
| virtual const std::vector< std::string > * | getCollectionNames () const |
| virtual EVENT::LCCollection * | getCollection (const std::string &name) const throw (EVENT::DataNotAvailableException, std::exception) |
| virtual EVENT::LCCollection * | takeCollection (const std::string &name) const throw (EVENT::DataNotAvailableException, std::exception ) |
| virtual void | addCollection (EVENT::LCCollection *col, const std::string &name) throw (EVENT::EventException, std::exception) |
| virtual void | removeCollection (const std::string &name) throw (EVENT::ReadOnlyException, std::exception) |
| virtual const EVENT::LCParameters & | getParameters () const |
| virtual EVENT::LCParameters & | parameters () |
| void | setRunNumber (int rn) |
| void | setEventNumber (int en) |
| void | setDetectorName (const std::string &dn) |
| void | setTimeStamp (EVENT::long64 ts) |
| virtual void | addCollection (LCCollection *col, const std::string &name)=0 throw (EventException, std::exception ) |
| virtual int | simpleUID () const |
Protected Member Functions | |
| void | setAccessMode (int accessMode) |
| virtual void | setReadOnly (bool readOnly) |
| void | checkAccess () throw ( EVENT::ReadOnlyException ) |
| void | checkAccess (const char *what) throw ( EVENT::ReadOnlyException ) |
Protected Attributes | |
| int | _runNumber |
| int | _eventNumber |
| EVENT::long64 | _timeStamp |
| std::string | _detectorName |
| LCCollectionMap | _colMap |
| std::vector< std::string > | _colNames |
| LCParametersImpl | _params |
| LCCollectionSet | _notOwned |
| bool | _readOnly |
| int | _id |
LCCollection
Definition at line 31 of file LCEventImpl.h.
|
|
Definition at line 13 of file LCEventImpl.cc. |
|
|
Destructor. Definition at line 39 of file LCEventImpl.cc. |
|
||||||||||||
|
Adds a collection with the given name. Throws an exception if the name already exists in the event. NB: Adding collections is allowed even when the event is 'read only'.
Referenced by tpc_tracking::Event::addCollection(), tpc_tracking::CustomLCIOCollection< lcio::MCParticle >::derived_write(), and marlin::SimpleFastMCProcessor::processEvent(). |
|
||||||||||||
|
Adds a collection with the given name. Throws an exception if the name already exists in the event. NB: Adding collections is allowed even when the event is 'read only'.
Definition at line 121 of file LCEventImpl.cc. Referenced by marlin::StdHepReader::readDataSource(), and SIO::SIOEventHandler::xfer(). |
|
|
Definition at line 20 of file AccessChecked.cc. |
|
|
|
Returns the collection for the given name.
Implements EVENT::LCEvent. Definition at line 89 of file LCEventImpl.cc. |
|
|
Returns the names of the collections in the event. Implements EVENT::LCEvent. Definition at line 74 of file LCEventImpl.cc. |
|
|
Returns the name of the detector setup used in the simulation. Implements EVENT::LCEvent. Definition at line 64 of file LCEventImpl.cc. |
|
|
Returns this event's number . Implements EVENT::LCEvent. Definition at line 59 of file LCEventImpl.cc. |
|
|
Parameters defined for this event. Implements EVENT::LCEvent. Definition at line 125 of file LCEventImpl.h. |
|
|
Return the run number off this event. Implements EVENT::LCEvent. Definition at line 54 of file LCEventImpl.cc. |
|
|
Returns the time stamp of the event. Implements EVENT::LCEvent. Definition at line 69 of file LCEventImpl.cc. References EVENT::long64. |
|
|
Parameters defined for this run. Implements EVENT::LCEvent. Definition at line 129 of file LCEventImpl.h. |
|
|
Removes (and deletes) the collection with name (if it exists in the event). Throws an exception if the event is 'read only' as defined by the read mode in LCReader.
Implements EVENT::LCEvent. Definition at line 141 of file LCEventImpl.cc. |
|
|
Definition at line 176 of file LCEventImpl.cc. References _colMap, and IMPL::AccessChecked::setReadOnly(). |
|
|
Sets the detector name. Definition at line 163 of file LCEventImpl.cc. References _detectorName, and IMPL::AccessChecked::checkAccess(). Referenced by SIO::SIOEventHandler::xfer(). |
|
|
Sets the event number. Definition at line 157 of file LCEventImpl.cc. References _eventNumber, and IMPL::AccessChecked::checkAccess(). Referenced by marlin::StdHepReader::readDataSource(). |
|
|
Reimplemented in IMPL::LCCollectionVec, and IMPL::LCRunHeaderImpl. Definition at line 14 of file AccessChecked.cc. References IMPL::AccessChecked::_readOnly. Referenced by setAccessMode(), and IMPL::LCCollectionVec::setReadOnly(). |
|
|
Sets the run number. Definition at line 151 of file LCEventImpl.cc. References _runNumber, and IMPL::AccessChecked::checkAccess(). Referenced by marlin::StdHepReader::readDataSource(). |
|
|
Sets the event time stamp. Definition at line 169 of file LCEventImpl.cc. References _timeStamp, and IMPL::AccessChecked::checkAccess(). |
|
|
Definition at line 24 of file AccessChecked.h. |
|
|
Returns the collection for the given name and transfers the ownership of the collection to the caller. The caller is responsible for deleting the collection _after_ the Event is deleted. The collection is still in the event but flagged as transient after the call returns.
Implements EVENT::LCEvent. Definition at line 106 of file LCEventImpl.cc. References IMPL::LCCollectionVec::setTransient(). |
|
|
Definition at line 163 of file LCEventImpl.h. Referenced by getCollectionNames(), setAccessMode(), and ~LCEventImpl(). |
|
|
Definition at line 164 of file LCEventImpl.h. Referenced by getCollectionNames(). |
|
|
Definition at line 160 of file LCEventImpl.h. Referenced by setDetectorName(). |
|
|
Definition at line 158 of file LCEventImpl.h. Referenced by setEventNumber(). |
|
|
Definition at line 34 of file AccessChecked.h. Referenced by IMPL::AccessChecked::AccessChecked(). |
|
|
Definition at line 169 of file LCEventImpl.h. Referenced by ~LCEventImpl(). |
|
|
Definition at line 166 of file LCEventImpl.h. |
|
|
Definition at line 33 of file AccessChecked.h. Referenced by IMPL::AccessChecked::setReadOnly(). |
|
|
Definition at line 157 of file LCEventImpl.h. Referenced by setRunNumber(). |
|
|
Definition at line 159 of file LCEventImpl.h. Referenced by setTimeStamp(). |
1.3.9.1