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)Default post-init function.
skip_func(**kwargs)Default skip function.
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: bool = False#
- mc_only: bool = False#
- require_calibrators: Sequence[str] | set[str] | None = None#
- 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)Default call function.
init_func(**kwargs)Default init function.
post_init_func(task, **kwargs)Default post-init function.
skip_func(**kwargs)Default skip function.
update_cls_dict(cls_name, cls_dict, get_attr)- add_keep_columns = True#
- cache_instances = True#
- check_used_columns = False#
- data_only: bool = False#
- mc_only: bool = False#
- mirror_selector_shifts = True#
- require_calibrators: Sequence[str] | set[str] | None = None#
- static update_cls_dict(cls_name, cls_dict, get_attr)#