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:

cf_default_keep_columns(*args, **kwargs)

cf_default(*args, **kwargs)

class cf_default_keep_columns(*args, **kwargs)[source]#

Bases: Reducer

Attributes:

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:

Array

data_only: bool = False#
mc_only: bool = False#
post_init_func(task, **kwargs)#

Default post-init function.

Return type:

None

require_calibrators: Sequence[str] | set[str] | None = None#
skip_func(**kwargs) bool#

Default skip function.

Return type:

bool

static update_cls_dict(cls_name, cls_dict, get_attr)#
class cf_default(*args, **kwargs)[source]#

Bases: Reducer

Attributes:

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#
call_func(events, selection, task, **kwargs)#

Default call function.

Return type:

Array

check_used_columns = False#
data_only: bool = False#
init_func(**kwargs)#

Default init function.

Return type:

None

mc_only: bool = False#
mirror_selector_shifts = True#
post_init_func(task, **kwargs)#

Default post-init function.

Return type:

None

require_calibrators: Sequence[str] | set[str] | None = None#
skip_func(**kwargs) bool#

Default skip function.

Return type:

bool

static update_cls_dict(cls_name, cls_dict, get_attr)#