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

Merge branch 'AM_evtvar_default' into 'master'

Make default value of event_variables None

See merge request !908
parents 9450b0e7 2cde7794
No related branches found
No related tags found
1 merge request!908Make default value of event_variables None
Pipeline #4306954 passed
...@@ -14,7 +14,6 @@ from PyConf.Algorithms import FunTupleBase_MCParticles ...@@ -14,7 +14,6 @@ from PyConf.Algorithms import FunTupleBase_MCParticles
from PyConf.Algorithms import FunTupleBase_Composites from PyConf.Algorithms import FunTupleBase_Composites
from PyConf.Algorithms import FunTupleBase_ChargedBasics from PyConf.Algorithms import FunTupleBase_ChargedBasics
from .common_util import conduct_checks_and_transform from .common_util import conduct_checks_and_transform
from .FunctorCollection import FunctorCollection
def _FunTuple_Base(funtuple_func, def _FunTuple_Base(funtuple_func,
...@@ -23,10 +22,13 @@ def _FunTuple_Base(funtuple_func, ...@@ -23,10 +22,13 @@ def _FunTuple_Base(funtuple_func,
fields, fields,
variables, variables,
inputs, inputs,
event_variables=FunctorCollection(), event_variables=None,
loki_preamble=[], loki_preamble=None,
run_full_counter_mode=True, run_full_counter_mode=True,
**kwargs): **kwargs):
if not loki_preamble:
loki_preamble = []
#conduct some type checks and transform to output_args that can be used to set the attributes of FunTupleBase_Particles class #conduct some type checks and transform to output_args that can be used to set the attributes of FunTupleBase_Particles class
output_args = conduct_checks_and_transform(name, tuple_name, fields, output_args = conduct_checks_and_transform(name, tuple_name, fields,
variables, loki_preamble) variables, loki_preamble)
...@@ -36,7 +38,10 @@ def _FunTuple_Base(funtuple_func, ...@@ -36,7 +38,10 @@ def _FunTuple_Base(funtuple_func,
loki_functor_field_names = output_args[3] loki_functor_field_names = output_args[3]
thor_functors = output_args[4] thor_functors = output_args[4]
thor_functor_field_names = output_args[5] thor_functor_field_names = output_args[5]
thor_functor_dict_event_info = event_variables.get_thor_functors() thor_functor_dict_event_info = {}
if event_variables:
thor_functor_dict_event_info = event_variables.get_thor_functors()
return funtuple_func( return funtuple_func(
name=name, name=name,
tuple_name=tuple_name, tuple_name=tuple_name,
......
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