Exemple #1
0
    ],
}

samples = ['TT', 'Z']

for s in samples:
    dyPlotter.addHistogramToStack(s, sigMap[s])

dyPlotter.addHistogram('data', sigMap['data'])

# per channel counts
countVars = ['default/count'
             ] + ['default/{0}/count'.format(chan) for chan in chans]
countLabels = ['Total'] + chanLabels
savename = 'individualChannels'
dyPlotter.plotCounts(countVars, countLabels, savename, numcol=2)

# plot definitions
plots = {
    # z cand
    'zMass': {
        'xaxis': 'm_{l^{+}l^{-}} (GeV)',
        'yaxis': 'Events / 2 GeV',
        'rebin': 20,
        'rangex': [50, 200],
        'logy': 1,
        'ymin': 1000
    },
    'zPt': {
        'xaxis': 'p_{T}^{l^{+}l^{-}} (GeV)',
        'yaxis': 'Events / 5 GeV',