def main():
    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    syst_tag = "NOMINAL"
    entry_containers = grouping.generateEntryContainers(syst_tag)

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # Collect EntryContainer into InputContainers
    ic_numerator = hh.Container.InputContainer(name="dummy", entry_list=[entry_containers["ec_dummy"]], lumi_target=0.0)
    ic_denominator = hh.Container.InputContainer(name="Bkg", entry_list=[entry_containers["ec_dummy"]], lumi_target=0)
    ic_signal = hh.Container.InputContainer(
        name="Signal",
        entry_list=[
            entry_containers["ec_bl_500"],
            entry_containers["ec_bl_600"],
            entry_containers["ec_bl_700"],
            entry_containers["ec_bl_800"],
            entry_containers["ec_bl_900"],
            entry_containers["ec_bl_1000"],
        ],
        lumi_target=21000,
    )

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # Actually plot comparisons
    out_file_name = "compare_plots.b_minus_l.signal.root"
    pc.plotComparisons(
        ic_numerator=ic_numerator, ic_denominator=ic_denominator, ic_other=ic_signal, out_file_name=out_file_name
    )
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
                      )
def main():
    # root stuff
    ROOT.TH1.SetDefaultSumw2()
    ROOT.gROOT.SetBatch()

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    syst_tag = 'NOMINAL'
    entry_containers = grouping.generateEntryContainers(syst_tag)

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # Collect EntryContainer into InputContainers
    ic_numerator = hh.Container.InputContainer( name = 'Data'
                                              , entry_list = [entry_containers['ec_data']]
                                              , lumi_target = 0
                                              )
    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 = 20300
                                                )
    ic_signal = hh.Container.InputContainer( name = 'Signal'
                                           , entry_list = [ entry_containers['ec_bl_500']
                                                          # , entry_containers['ec_bl_600']
                                                          # , entry_containers['ec_bl_700']
                                                          , entry_containers['ec_bl_800']
                                                          # , entry_containers['ec_bl_900']
                                                          , entry_containers['ec_bl_1000']
                                                          ]
                                           , lumi_target = 20300
                                           )

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # Actually plot comparisons
    out_file_name = 'compare_plots.b_minus_l.no_data.root'
    pc.plotComparisons( ic_numerator   = ic_numerator
                      , ic_denominator = ic_denominator
                      , ic_other       = ic_signal
                      , out_file_name  = out_file_name
                      )
def main():
    # root stuff
    ROOT.TH1.SetDefaultSumw2()
    ROOT.gROOT.SetBatch()

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    syst_tag = 'NOMINAL'
    entry_containers = grouping.generateEntryContainers(syst_tag)

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # Collect EntryContainer into InputContainers
    # ic_numerator = None
    ic_numerator = hh.Container.InputContainer( name = 'Data'
                                              , entry_list = [entry_containers['ec_data']]
                                              , lumi_target = 1
                                              , line_width=2
                                              )
    ic_numerator_blind = hh.Container.InputContainer( name = 'Data'
                                                    , entry_list = [entry_containers['ec_data']]
                                                    , lumi_target = 0
                                                    , line_width=2
                                                    )
    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 = 20300
                                                , line_width=2
                                                )
    # TODO undo z scaling
    ic_denominator_unscaled = 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 = 20300
                                                         , line_width=2
                                                         )
    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 = 20300
                                           , line_width=2
                                           )

    # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # Actually plot comparisons
    out_file_name = 'compare_plots.b_minus_l.conf_note.root'
    plotComparisonsConfNote( ic_numerator   = ic_numerator_blind
                           , ic_denominator = ic_denominator
                           , ic_other       = ic_signal
                           , out_file_name  = out_file_name
                           , do_ratio       = False
                           , atlas_label    = 'Preliminary Simulation'
                           )

    out_file_name = 'compare_plots.b_minus_l.support_note.root'
    plotComparisonsSupportNote( ic_numerator   = ic_numerator
                              , ic_denominator = ic_denominator
                              , ic_other       = ic_signal
                              , out_file_name  = out_file_name
                              , do_ratio       = False
                              , atlas_label    = 'Internal'
                              )