EventTemplate (Python)
The EventTemplate Cython class wraps the C++ event_template.
User event classes must subclass it, call register_particle in
__cinit__, and override CompileEvent for post-processing.
Special Methods
Signature |
Description |
|---|---|
|
Integer hash derived from the first 8 hex digits of |
|
Equality based on C++ |
|
Return |
Properties
Property |
Type |
Description |
|---|---|---|
|
|
Sequential event index within the current ROOT file. |
|
|
Event weight (default |
|
|
Active ROOT TTree name for this event (read/write). |
|
|
List of TTree names this event type reads from. Set in the subclass
constructor before |
|
|
List of TBranch names to read. |
|
|
Human-readable event class name (read-only, from the C++ |
C++ Interface (called from subclass build)
Method / field |
Description |
|---|---|
|
Register a |
|
Post-processing hook called once after all particles are built.
Override in subclasses to set |
|
Register an additional ROOT leaf under the given key. |