gen_top_decay#

Producers that determine the generator-level particles related to a top quark decay.

Classes:

gen_top_decay_products(*args, **kwargs)

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

Bases: Producer

Attributes:

Methods:

call_func(events, **kwargs)

Creates a new ragged column "gen_top_decay" with one element per hard top quark.

skip_func(**kwargs)

Custom skip function that checks whether the dataset is a MC simulation containing top quarks in the first place.

update_cls_dict(cls_name, cls_dict, get_attr)

cache_instances = True#
call_func(events, **kwargs)#

Creates a new ragged column “gen_top_decay” with one element per hard top quark. Each element is a GenParticleArray with five or more objects in a distinct order: top quark, bottom quark, W boson, down-type quark or charged lepton, up-type quark or neutrino, and any additional decay produces of the W boson (if any, then most likly photon radiations). Per event, the structure will be similar to:

[
    # event 1
    [
        # top 1
        [t1, b1, W1, q1/l, q2/n(, additional_w_decay_products)],
        # top 2
        [...],
    ],
    # event 2
    ...
]
Return type:

Array

data_only = False#
mc_only = False#
produces = {'gen_top_decay'}#
skip_func(**kwargs)#

Custom skip function that checks whether the dataset is a MC simulation containing top quarks in the first place.

Return type:

bool

static update_cls_dict(cls_name, cls_dict, get_attr)#
uses = {'GenPart.{genPartIdxMother,pdgId,statusFlags}'}#