the_binning['bin'],
                             the_binning['min'],
                             the_binning['max'])


# ------------------------------------------------------------------------------
# - Constraining regions - statistically independent
cr_list = []
# Add Top CR for background
for cr_name in ['CR_top_', 'CR_Z_']:
    flavor_channel = 'all'
    this_name = ''.join([cr_name, flavor_channel])
    cr_list.append(addChannel(background_config,
                                '0.5',
                                this_name,
                                binning.get_binning('default',
                                                    single_bin=binning.single_bin_regions)))

    # add theory systematics!
    # this is pretty ugly :-(
    if   'CR_top' in cr_name: syst_region = 'CR_top'
    elif 'CR_Z' in cr_name:   syst_region = 'CR_Z'
    else:                     continue

    this_theort_uncert_dict = theory_uncert[syst_region]
    for sample in this_theort_uncert_dict:
        if   sample == 'Top': this_sample = 'ttbar'
        elif sample == 'ST':  this_sample = 'SingleTop'
        elif sample == 'ZX':  this_sample = 'ZGamma'
        else:                 continue

        for systematic in this_theort_uncert_dict[sample]:
Ejemplo n.º 2
0

# ------------------------------------------------------------------------------
# - Constraining regions - statistically independent
cr_list = []
# Add Top CR for background
for cr_name in ['CR_top_', 'CR_Z_']:
    for flavor_channel in ['all']:
    # for flavor_channel in ['ee', 'mm', 'em']:
        if cr_name  == 'CR_Z_' and flavor_channel == 'em': continue

        this_name = ''.join([cr_name, flavor_channel])
        cr_list.append(addChannel(background_config,
                                  '0.5',
                                  this_name,
                                  binning.get_binning('default',
                                                      single_bin=binning.single_bin_regions)))

        # add theory systematics!
        # this is pretty ugly :-(
        if   'CR_top' in cr_name: syst_region = 'CR_top'
        elif 'CR_Z' in cr_name:   syst_region = 'CR_Z'
        else:                     continue

        this_theort_uncert_dict = theory_uncert[syst_region]
        for sample in this_theort_uncert_dict:
            if   sample == 'Top': this_sample = 'ttbar'
            elif sample == 'ST':  this_sample = 'SingleTop'
            elif sample == 'ZX':  this_sample = 'ZGamma'
            else:                 continue

            for systematic in this_theort_uncert_dict[sample]:
# ------------------------------------------------------------------------------
# - Constraining regions - statistically independent
cr_list = []
# Add Top CR for background
for cr_name in ["CR_top_", "CR_Z_"]:
    for flavor_channel in ["all"]:
        if cr_name == "CR_Z_" and flavor_channel == "em":
            continue

        this_name = "".join([cr_name, flavor_channel])
        cr_list.append(
            addChannel(
                background_config,
                "0.5",
                this_name,
                binning.get_binning("default", single_bin=binning.single_bin_regions),
            )
        )

        # add theory systematics!
        # this is pretty ugly :-(
        if "CR_top" in cr_name:
            syst_region = "CR_top"
        elif "CR_Z" in cr_name:
            syst_region = "CR_Z"
        else:
            continue

        this_theort_uncert_dict = theory_uncert[syst_region]
        for sample in this_theort_uncert_dict:
            if sample == "Top":