#include <Event.h>
Definition at line 35 of file Event.h.
◆ Event()
◆ ~Event()
◆ add()
void add |
( |
const std::string |
name, |
|
|
TObject * |
object |
|
) |
| |
|
virtual |
Add a TObject to the event.
Implements IEvent.
Definition at line 26 of file Event.cxx.
◆ addCollection() [1/2]
template<typename T >
void addCollection |
( |
const std::string & |
name, |
|
|
std::vector< T * > * |
collection |
|
) |
| |
|
inline |
TODO fix docu Add a collection (std::vector) of objects to the event.
Definition at line 62 of file Event.h.
◆ addCollection() [2/2]
void addCollection |
( |
const std::string |
name, |
|
|
TClonesArray * |
collection |
|
) |
| |
Add a collection (TClonesArray) of objects to the event.
- Parameters
-
name | Name of the collection |
collection | The TClonesArray containing the object. |
Definition at line 45 of file Event.cxx.
◆ Clear()
Clear all of the collections in the event
Definition at line 82 of file Event.cxx.
◆ exists()
bool exists |
( |
const std::string |
name | ) |
|
Checks if a collection already exist.
- Parameters
-
- Returns
- True if the collection exist, false otherwise.
Definition at line 73 of file Event.cxx.
◆ getCollection()
TClonesArray * getCollection |
( |
const std::string |
name | ) |
|
- Parameters
-
name | Name of the collection |
- Returns
- Get a collection from the event.
Definition at line 57 of file Event.cxx.
◆ getEventHeaderMutable()
◆ getLCCollection()
EVENT::LCCollection * getLCCollection |
( |
std::string |
name | ) |
|
|
inline |
Get the LCIO event.
Definition at line 102 of file Event.h.
◆ getLCEvent()
EVENT::LCEvent * getLCEvent |
( |
| ) |
|
|
inline |
- Returns
- LCIO event.
Definition at line 99 of file Event.h.
◆ getTree()
- Returns
- The ROOT tree containing the event.
Definition at line 93 of file Event.h.
◆ hasLCCollection()
bool hasLCCollection |
( |
const std::string |
name | ) |
|
Check if an LCEvent has a collection of the given name.
- Returns
- True if the collection exists, False otherwise.
Definition at line 89 of file Event.cxx.
◆ setEntry()
void setEntry |
( |
const int |
entry | ) |
|
|
inline |
Set the current entry.
- Parameters
-
Definition at line 118 of file Event.h.
◆ setLCEvent()
void setLCEvent |
( |
EVENT::LCEvent * |
lc_event | ) |
|
|
inline |
Set the LCIO event.
Definition at line 96 of file Event.h.
◆ setTree()
void setTree |
( |
TTree * |
tree | ) |
|
|
inline |
◆ branches_
std::map<std::string, TBranch*> branches_ |
|
private |
Container will all branches.
Definition at line 135 of file Event.h.
◆ entry_
The current entry.
Definition at line 138 of file Event.h.
◆ event_header_
The event headeer object (as pointer).
Definition at line 123 of file Event.h.
◆ lc_event_
EVENT::LCEvent* lc_event_ {nullptr} |
|
private |
Object used to load all of current LCIO event information.
Definition at line 129 of file Event.h.
◆ objects_
std::map<std::string, TObject*> objects_ |
|
private |
Container with all TClonesArray collections.
Definition at line 132 of file Event.h.
◆ tree_
The ROOT tree containing the event.
Definition at line 126 of file Event.h.
The documentation for this class was generated from the following files: