Belle II Software development
SummarizeTriggerVariables Class Reference
Inheritance diagram for SummarizeTriggerVariables:
PickleHarvestingModule HarvestingModule

Public Member Functions

def __init__ (self, root_file_name="save_vars.pkl", store_object_name="SoftwareTriggerVariables")
 
def peel (self, variables)
 

Detailed Description

Read in the trigger variables stored in the data store and write them out into a ROOT file after all events have
passed.

Definition at line 90 of file variable_modules.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  root_file_name = "save_vars.pkl",
  store_object_name = "SoftwareTriggerVariables" 
)
Create a new module to get the stored trigger variables from the data store and save them to a root file.
:param root_file_name: The file name where to store the variables.
:param store_object_name: The store object name where the trigger variables an be found in the data store.

Reimplemented from HarvestingModule.

Definition at line 96 of file variable_modules.py.

96 def __init__(self, root_file_name="save_vars.pkl", store_object_name="SoftwareTriggerVariables"):
97 """
98 Create a new module to get the stored trigger variables from the data store and save them to a root file.
99 :param root_file_name: The file name where to store the variables.
100 :param store_object_name: The store object name where the trigger variables an be found in the data store.
101 """
102 super().__init__(foreach=store_object_name, output_file_name=root_file_name)
103

Member Function Documentation

◆ peel()

def peel (   self,
  variables 
)
For each collection of variables ( = event), get the list of all variables.
Write them back into the internal storage ( = pandas.DataFrame) of all events.

Reimplemented from HarvestingModule.

Definition at line 104 of file variable_modules.py.

104 def peel(self, variables):
105 """
106 For each collection of variables ( = event), get the list of all variables.
107 Write them back into the internal storage ( = pandas.DataFrame) of all events.
108 """
109 yield {identifier: value for identifier, value in variables.get()}
110
111

The documentation for this class was generated from the following file: