Belle II Software light-2406-ragdoll
|
Public Member Functions | |
def | __init__ (self, output_file_name) |
def | initialize (self) |
def | event (self) |
def | terminate (self) |
Public Attributes | |
output_file_name | |
Name of the output file. | |
tfile | |
Will host the pointer to the opened TFile later. | |
statistics | |
Will host the TTree later. | |
event_number | |
The columns to store the event number. | |
ttree_inputs | |
The columns for the statistics TTree (they will be filled in the event function). | |
last_time_sum | |
Last recored sum of event calls for all modules. | |
branches_added | |
A flag to indicate that we have already added the Branches to the TTree (which we will do in the first event) | |
event_meta_data | |
The event meta data. | |
A basf2 python module to export *all* module time statistics (of every event, not just averaged) into a ROOT TTree written to a file.
Definition at line 13 of file per_event_statistics.py.
def __init__ | ( | self, | |
output_file_name | |||
) |
Create a new PerEventStatisticsGetterModule. You have to give the name of the file, where the TTree with the full event statistics will be saved.
Definition at line 19 of file per_event_statistics.py.
def event | ( | self | ) |
The event loop: Store the statistics as a new row in the TTree.
Definition at line 76 of file per_event_statistics.py.
def initialize | ( | self | ) |
Create the needed store object pointer in the DataStore and the TFile with the TTree.
Definition at line 49 of file per_event_statistics.py.
def terminate | ( | self | ) |
Write out the merged statistics to the ROOT file. This should only be called once, as we would end up with different versions otherwise.
Definition at line 130 of file per_event_statistics.py.
branches_added |
A flag to indicate that we have already added the Branches to the TTree (which we will do in the first event)
Definition at line 41 of file per_event_statistics.py.
event_meta_data |
The event meta data.
Definition at line 47 of file per_event_statistics.py.
event_number |
The columns to store the event number.
Definition at line 34 of file per_event_statistics.py.
last_time_sum |
Last recored sum of event calls for all modules.
Definition at line 38 of file per_event_statistics.py.
output_file_name |
Name of the output file.
Definition at line 27 of file per_event_statistics.py.
statistics |
Will host the TTree later.
Definition at line 31 of file per_event_statistics.py.
tfile |
Will host the pointer to the opened TFile later.
Definition at line 29 of file per_event_statistics.py.
ttree_inputs |
The columns for the statistics TTree (they will be filled in the event function).
Definition at line 36 of file per_event_statistics.py.