"electron_pfIsolation_05_0orMoreBtag":'Events/(0.05)',
             "electron_dPhi_in":'Events/(0.01)',
             "electron_dEta_in":'Events/(0.001)',
             "electron_HadOverEM":'Events/(0.01)',
             "electron_mvaTrigV0":'Events/(0.05)',
             "electron_mvaNonTrigV0":'Events/(0.05)',
             "electron_dB":'Events/(0.001 cm)',
             'electron_sigma_ietaieta':'Events/(0.001)'
          }

histograms = ['HLTQCDAnalyser_inclusive/' + trigger + '/' + variable for variable in variables for trigger in triggers]

hists = FileReader.getHistogramsFromFiles(histograms, files)
plotting.setStyle()
for variable in variables:
    hists = plotting.rebin(hists, rebins[variable], '*' + variable)
    hists = plotting.setXRange(hists, limits=limits[variable], histname='*' + variable)
    hists = plotting.setYTitle(hists, title=titles[variable], histname='*' + variable)

labels = [
          'CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT',
              'CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT',
              'CaloIdVL_CaloIsoT_TrkIdVL_TrkIsoT',
              'CaloIdVT_TrkIdT'
          ]

styles = [
          {'color': kBlack, 'fill': 1001},
          {'color': kRed, 'fill': 3004},
          {'color': kBlue, 'fill': 1001},
          {'color': kGreen + 3, 'fill': 1001},
    "electron_HadOverEM": 'Events/(0.01)',
    "electron_mvaTrigV0": 'Events/(0.05)',
    "electron_mvaNonTrigV0": 'Events/(0.05)',
    "electron_dB": 'Events/(0.001 cm)',
    'electron_sigma_ietaieta': 'Events/(0.001)'
}

histograms = [
    'HLTQCDAnalyser_inclusive/' + trigger + '/' + variable
    for variable in variables for trigger in triggers
]

hists = FileReader.getHistogramsFromFiles(histograms, files)
plotting.setStyle()
for variable in variables:
    hists = plotting.rebin(hists, rebins[variable], '*' + variable)
    hists = plotting.setXRange(hists,
                               limits=limits[variable],
                               histname='*' + variable)
    hists = plotting.setYTitle(hists,
                               title=titles[variable],
                               histname='*' + variable)

labels = [
    'CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT', 'CaloIdVT_CaloIsoVL_TrkIdVL_TrkIsoT',
    'CaloIdVL_CaloIsoT_TrkIdVL_TrkIsoT', 'CaloIdVT_TrkIdT'
]

styles = [
    {
        'color': kBlack,