#!/usr/bin/env python

import ROOT
import HistHandle as hh
import plot_comparison as pc
import BminuslGrouping as grouping

# ==============================================================================
def main():
    # root stuff
    ROOT.TH1.SetDefaultSumw2()
    ROOT.gROOT.SetBatch()

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    syst_tag = 'NOMINAL'
    hist_dir_data = '${BASE_WORK_DIR}/NextPlotDir.BMinusL.LooseJets.NOMINAL'
    hist_dir_mc   = '${BASE_WORK_DIR}/NextPlotDir.BMinusL.LooseJets.NOMINAL'
    entry_containers = grouping.generateEntryContainers( syst_tag
                                                       , hist_dir_mc
                                                       , hist_dir_data
                                                       )

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # Collect EntryContainer into InputContainers
    ic_numerator = hh.Container.InputContainer( name = 'Data'
                                              , entry_list = [entry_containers['ec_data']]
                                              , lumi_target = 1
                                              )
    ic_denominator = hh.Container.InputContainer( name = 'Bkg'
                                                , entry_list = [ entry_containers['ec_ttbar_powheg']
                                                               , entry_containers['ec_Zgamma_sherpa']
                                                               , entry_containers['ec_single_top_all_channels']
                                                               , entry_containers['ec_other']
                                                               ]
                                                , lumi_target = 21000
                                                )
    ic_signal = hh.Container.InputContainer( name = 'Signal'
                                           , entry_list = [ entry_containers['ec_bl_500']
                                                          , entry_containers['ec_bl_800']
                                                          , entry_containers['ec_bl_1000']
                                                          ]
                                           , lumi_target = 21000
                                           )

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # Actually plot comparisons
    out_file_name = 'compare_plots.b_minus_l.loose_jets.root'
    pc.plotComparisons( ic_numerator   = ic_numerator
                      , ic_denominator = ic_denominator
                      , ic_other       = ic_signal
                      , out_file_name  = out_file_name
                      )

# ==============================================================================
if __name__ == '__main__':
    main()

5099ef96c6f21b73017537568747d40b034d9924
<mask token>

<mask token>


def main():
    ROOT.TH1.SetDefaultSumw2()
    ROOT.gROOT.SetBatch()
    syst_tag = 'NOMINAL'
    hist_dir_data = '${BASE_WORK_DIR}/NextPlotDir.BMinusL.LooseJets.NOMINAL'
    hist_dir_mc = '${BASE_WORK_DIR}/NextPlotDir.BMinusL.LooseJets.NOMINAL'
    entry_containers = grouping.generateEntryContainers(syst_tag,
        hist_dir_mc, hist_dir_data)
    ic_numerator = hh.Container.InputContainer(name='Data', entry_list=[
        entry_containers['ec_data']], lumi_target=1)
    ic_denominator = hh.Container.InputContainer(name='Bkg', entry_list=[
        entry_containers['ec_ttbar_powheg'], entry_containers[
        'ec_Zgamma_sherpa'], entry_containers['ec_single_top_all_channels'],
        entry_containers['ec_other']], lumi_target=21000)
    ic_signal = hh.Container.InputContainer(name='Signal', entry_list=[
        entry_containers['ec_bl_500'], entry_containers['ec_bl_800'],
        entry_containers['ec_bl_1000']], lumi_target=21000)
    out_file_name = 'compare_plots.b_minus_l.loose_jets.root'
    pc.plotComparisons(ic_numerator=ic_numerator, ic_denominator=
        ic_denominator, ic_other=ic_signal, out_file_name=out_file_name)


<mask token>

<mask token>


def main():
    ROOT.TH1.SetDefaultSumw2()
    ROOT.gROOT.SetBatch()
    syst_tag = 'NOMINAL'
    hist_dir_data = '${BASE_WORK_DIR}/NextPlotDir.BMinusL.LooseJets.NOMINAL'
    hist_dir_mc = '${BASE_WORK_DIR}/NextPlotDir.BMinusL.LooseJets.NOMINAL'
    entry_containers = grouping.generateEntryContainers(syst_tag,
        hist_dir_mc, hist_dir_data)
    ic_numerator = hh.Container.InputContainer(name='Data', entry_list=[
        entry_containers['ec_data']], lumi_target=1)
    ic_denominator = hh.Container.InputContainer(name='Bkg', entry_list=[
        entry_containers['ec_ttbar_powheg'], entry_containers[
        'ec_Zgamma_sherpa'], entry_containers['ec_single_top_all_channels'],
        entry_containers['ec_other']], lumi_target=21000)
    ic_signal = hh.Container.InputContainer(name='Signal', entry_list=[
        entry_containers['ec_bl_500'], entry_containers['ec_bl_800'],
        entry_containers['ec_bl_1000']], lumi_target=21000)
    out_file_name = 'compare_plots.b_minus_l.loose_jets.root'
    pc.plotComparisons(ic_numerator=ic_numerator, ic_denominator=
        ic_denominator, ic_other=ic_signal, out_file_name=out_file_name)


if __name__ == '__main__':
    main()

import ROOT
import HistHandle as hh
import plot_comparison as pc
import BminuslGrouping as grouping


def main():
    ROOT.TH1.SetDefaultSumw2()
    ROOT.gROOT.SetBatch()
    syst_tag = 'NOMINAL'
    hist_dir_data = '${BASE_WORK_DIR}/NextPlotDir.BMinusL.LooseJets.NOMINAL'
    hist_dir_mc = '${BASE_WORK_DIR}/NextPlotDir.BMinusL.LooseJets.NOMINAL'
    entry_containers = grouping.generateEntryContainers(syst_tag,
        hist_dir_mc, hist_dir_data)
    ic_numerator = hh.Container.InputContainer(name='Data', entry_list=[
        entry_containers['ec_data']], lumi_target=1)
    ic_denominator = hh.Container.InputContainer(name='Bkg', entry_list=[
        entry_containers['ec_ttbar_powheg'], entry_containers[
        'ec_Zgamma_sherpa'], entry_containers['ec_single_top_all_channels'],
        entry_containers['ec_other']], lumi_target=21000)
    ic_signal = hh.Container.InputContainer(name='Signal', entry_list=[
        entry_containers['ec_bl_500'], entry_containers['ec_bl_800'],
        entry_containers['ec_bl_1000']], lumi_target=21000)
    out_file_name = 'compare_plots.b_minus_l.loose_jets.root'
    pc.plotComparisons(ic_numerator=ic_numerator, ic_denominator=
        ic_denominator, ic_other=ic_signal, out_file_name=out_file_name)


if __name__ == '__main__':
    main()

#!/usr/bin/env python

import ROOT
import HistHandle as hh
import plot_comparison as pc
import BminuslGrouping as grouping

# ==============================================================================
def main():
    # root stuff
    ROOT.TH1.SetDefaultSumw2()
    ROOT.gROOT.SetBatch()

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    syst_tag = 'NOMINAL'
    hist_dir_data = '${BASE_WORK_DIR}/NextPlotDir.BMinusL.LooseJets.NOMINAL'
    hist_dir_mc   = '${BASE_WORK_DIR}/NextPlotDir.BMinusL.LooseJets.NOMINAL'
    entry_containers = grouping.generateEntryContainers( syst_tag
                                                       , hist_dir_mc
                                                       , hist_dir_data
                                                       )

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # Collect EntryContainer into InputContainers
    ic_numerator = hh.Container.InputContainer( name = 'Data'
                                              , entry_list = [entry_containers['ec_data']]
                                              , lumi_target = 1
                                              )
    ic_denominator = hh.Container.InputContainer( name = 'Bkg'
                                                , entry_list = [ entry_containers['ec_ttbar_powheg']
                                                               , entry_containers['ec_Zgamma_sherpa']
                                                               , entry_containers['ec_single_top_all_channels']
                                                               , entry_containers['ec_other']
                                                               ]
                                                , lumi_target = 21000
                                                )
    ic_signal = hh.Container.InputContainer( name = 'Signal'
                                           , entry_list = [ entry_containers['ec_bl_500']
                                                          , entry_containers['ec_bl_800']
                                                          , entry_containers['ec_bl_1000']
                                                          ]
                                           , lumi_target = 21000
                                           )

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # Actually plot comparisons
    out_file_name = 'compare_plots.b_minus_l.loose_jets.root'
    pc.plotComparisons( ic_numerator   = ic_numerator
                      , ic_denominator = ic_denominator
                      , ic_other       = ic_signal
                      , out_file_name  = out_file_name
                      )

# ==============================================================================
if __name__ == '__main__':
    main()
