Skip to content
Snippets Groups Projects
Commit b5d1ffba authored by Patrick Koppenburg's avatar Patrick Koppenburg :leaves:
Browse files

Merge branch 'remove_event_field' into 'master'

Remove special field EVENT, add parameter event_variables to FunTuple

See merge request lhcb/DaVinci!669
parents c6a847e0 c07c3f0f
No related branches found
No related tags found
2 merge requests!1103Draft: Add AnalysisHelpers to DaVinci Stack,!669Remove special field EVENT, add parameter event_variables to FunTuple
Pipeline #3692360 passed
......@@ -72,8 +72,6 @@ variables = {
"D0": field_vars,
"Kminus": field_vars,
"piplus": field_vars,
#special field name "EVENT" (like "ALL")
"EVENT": evt_vars,
}
my_tuple = Funtuple(
......@@ -81,6 +79,7 @@ my_tuple = Funtuple(
tuple_name="DecayTree",
fields=fields,
variables=variables,
event_variables=evt_vars,
inputs=d02kpi_data)
......
......@@ -119,16 +119,13 @@ def main():
#see linked issue here: https://gitlab.cern.ch/lhcb/DaVinci/-/merge_requests/654#note_5320732
evt_variables.pop('Sel')
#Add them to a special branch called "EVENT"
# (currently two special branches exist: "EVENT" and "ALL")
variables["EVENT"] = evt_variables
#define FunTuple instance
my_tuple = Funtuple(
name="Tuple",
tuple_name="DecayTree",
fields=fields,
variables=variables,
event_variables=evt_variables,
inputs=d02kpi_data)
return {"UserAlgs": [my_filter, my_tuple]}, []
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment