default#
- Reducer definition for achieving columnsflow’s default reduction behavior in three steps:
remove unwanted events (using “event” mask of selection results)
create new collections (using “objects” mapping of selection results)
only keep certain columns after the reduction
Classes:
|
|
|
- class cf_default_keep_columns(*args, **kwargs)[source]#
Bases:
ReducerAttributes:
Methods:
call_func(events, selection, **kwargs)Reducer that does nothing but to define the columns to keep after the reduction in a backwards-compatible way using the "keep_columns" auxiliary config field as was the default in previous columnflow versions.
post_init_func(task, **kwargs)skip_func(**kwargs)update_cls_dict(cls_name, cls_dict, get_attr)- cache_instances = True#
- call_func(events, selection, **kwargs)#
Reducer that does nothing but to define the columns to keep after the reduction in a backwards-compatible way using the “keep_columns” auxiliary config field as was the default in previous columnflow versions.
- Return type:
- data_only = False#
- mc_only = False#
- static update_cls_dict(cls_name, cls_dict, get_attr)#
- class cf_default(*args, **kwargs)[source]#
Bases:
ReducerAttributes:
Methods:
call_func(events, selection, task, **kwargs)init_func(**kwargs)post_init_func(task, **kwargs)skip_func(**kwargs)update_cls_dict(cls_name, cls_dict, get_attr)- add_keep_columns = True#
- cache_instances = True#
- check_used_columns = False#
- data_only = False#
- mc_only = False#
- static update_cls_dict(cls_name, cls_dict, get_attr)#