Event Template
event_template is the base class for all user-defined event types. It
manages the mapping between ROOT branch/leaf data (stored in element_t
structs) and the C++ particle collections registered by subclasses, and exposes
kinematic metadata via cproperty accessors.
Class: event_template
Header: <templates/event_template.h>
Inheritance: tools
Properties
Property |
Type |
Description |
|---|---|---|
|
|
List of ROOT tree names this event reads from. Writable. |
|
|
List of ROOT branch-path filters. Writable. |
|
|
Derived list of fully-resolved ROOT leaf paths (read-only; computed from registered particles). |
|
|
Human-readable event-class name (used as HDF5 dataset label). Writable. |
|
|
18-character hex identifier for this event. Settable and gettable. |
|
|
The ROOT tree name under which this event was read. Gettable/Settable. |
|
|
Monte Carlo event weight. Default |
|
|
Sequential event index within the file. Default |
Public Fields
Field |
Type |
Description |
|---|---|---|
|
|
Internal map of tree-key → ROOT tree name. |
|
|
Internal map of branch-key → ROOT branch name. |
|
|
Resolved leaf-key → ROOT leaf path (populated by |
|
|
Pointer to the dataset metadata object (set by |
|
|
Path of the ROOT file from which this event was read. |
|
|
Raw event-level data struct (index, weight, hash, …). |
Public Methods
Signature |
Description |
|---|---|
|
Registers a particle collection: creates a prototype |
|
Deletes and clears all entries in object. Call in the event destructor. |
|
Adds an event-level ROOT leaf mapping (for event-level scalars, not per-particle). |
|
Called once per event entry. Override to create/populate particle maps from the ROOT branch data in el. |
|
Called after |
|
Returns a heap-allocated copy of this event. Override in subclasses. Caller owns the returned pointer. |
|
Framework-internal: builds a map of fully populated event objects from
the raw |
|
Runs the neutrino combinatorial solver for dilepton events. Parameters: targets (W-decay products), phi (MET φ), met (MET pt), optional mt (top mass, MeV), mw (W mass, MeV), violation, limit. |
|
Hash-equality comparison. |
|
Frees all registered particle collections (called during cleanup). |