def main(sample_name):
    region_df = helpers.extractRegionContributions(test_sample_name)
    region_df = helpers.cleanDataFrame(region_df)

    # print '% ============================================================'
    # print '% = Original regions'
    # print '% ============================================================'
    # regions_dict = OrderedDict([('CR TOP', 'Top CR'),
    #                             ('CR Z', 'Z CR'),
    #                             ('VR TOP 1', 'Top VR 1'),
    #                             ('VR TOP 2', 'Top VR 2'),
    #                             ('VR TOP 3', 'Top VR 3'),
    #                             ('VR TOP 4', 'Top VR 4'),
    #                             ('VR Z', 'Z VR'),
    #                             ('SR 1', 'SR')
    #                             ])
    # createTableFromRegionContributions(region_df, regions_dict,
    #                                    do_s_sqrt_b=True, do_zn_sig=True,
    #                                    for_slides=True,
    #                                    title='Original regions')

    def printTableHtSlice(ht):
        print
        print '% ============================================================'
        print '% = ht ', ht
        print '% ============================================================'
        regions_dict = OrderedDict([('CR TOP MBL 200', 'Top CR'),
                                    ('CR Z MBL 200', 'Z CR'),
                                    ('VR TOP 1 MBL 200', 'Top VR 1'),
                                    ('VR TOP 2 MBL 200', 'Top VR 2'),
                                    ('VR TOP 3 MBL 200', 'Top VR 3'),
                                    ('VR Z MBL 200', 'Z VR'),
                                    (' '.join(['SR HT', str(ht), 'MBL 200']), 'SR 200'),
                                    (' '.join(['SR HT', str(ht), 'MBL 400']), 'SR 400'),
                                    (' '.join(['SR HT', str(ht), 'MBL 600']), 'SR 600'),
                                    (' '.join(['SR HT', str(ht), 'MBL 800']), 'SR 800'),
                                    ])
        this_title=''.join(['$\\Mbl\\ge 200$ GeV and $h_\\mathrm{T} \\ge ',
                            str(ht), '$ GeV'])
        createTableFromRegionContributions(region_df, regions_dict,
                                           do_s_sqrt_b=False, do_zn_sig=True,
                                           for_slides=True,
                                           title=this_title)

    printTableHtSlice(1100)