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)

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:

Array

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

None

skip_func(**kwargs) bool#
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)

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

Array

check_used_columns = False#
data_only = False#
init_func(**kwargs)#
Return type:

None

mc_only = False#
post_init_func(task, **kwargs)#
Return type:

None

skip_func(**kwargs) bool#
Return type:

bool

static update_cls_dict(cls_name, cls_dict, get_attr)#