示例#1
0
plotter._variableDict['2D_Dilepton']    = ['DileptonM12VsLepPt1', 'DileptonM12VsLepPt2', 'DileptonMVsDeltaPhi12', 'DileptonM12VsQt12',
                                           'DileptonM12VsM23', 'DileptonM12VsM13', 'DileptonM23VsM13', 'DileptonM12VsLepPt3', 
                                           'DileptonM13VsLepPt1', 'DileptonM13VsLepPt2', 'DileptonM13VsLepPt3',
                                           'DileptonM23VsLepPt1', 'DileptonM23VsLepPt2', 'DileptonM23VsLepPt3',
                                           'DileptonMos1VsMss', 'DileptonMos2VsMss']
                                           #'DileptonMVsDeltaPhi13', 'DileptonM12VsQt13', 'DileptonMVsDeltaPhi23', 'DileptonM12VsQt23'


 ###################   
 ### MAKE PLOTS! ###  
 ###################   

r.gROOT.SetStyle('Plain')
r.gStyle.SetOptStat(0)
#r.gROOT.ProcessLine('.L ./tdrStyle.C')
#r.setTDRStyle()


for i, cut in enumerate(cutList):
    print cut

    plotter.set_input_file('histos/' + selection + '_cut' + str(i+1) + '_' + period + '.root')
    plotter.set_save_path('../plots/fakes/' + currentDate + '/' + cut)

    for category in cat3l:
        print '\t' + category
        plotter._category = category
        plotter.make_overlays_1D(logScale = True, doRatio = True, doEff = False)


示例#2
0
### First specify the directories in which your
### histograms are stored.  If directories are 
### not used enter '' as the only entry.  Then 
### list all of the variable names you wish to 
### plot while giving a key value which is the 
### directory that they are located in as a key.

plotter._directoryList1D            = ['fakes']
#plotter._directoryList2D            = ['2D_Dilepton']

#plotter._variableDict['fakes']   = ['leptonMult', 'jetMult', 'bJetMult']
plotter._variableDict['fakes']   = ['DileptonMass']


 ###################   
 ### MAKE PLOTS! ###  
 ###################   

r.gROOT.SetStyle('Plain')
r.gStyle.SetOptStat(0)

plotter.set_input_file('histos/fakeHistograms.root')
plotter.set_save_path('../plots/fakes/' + currentDate)

for category in eleFakes:
    print '\t' + category
    plotter._category = category
    plotter.make_overlays_1D(logScale = False, doRatio = False, doEff = False)