Skip to content

Commit

Permalink
mkPlot
Browse files Browse the repository at this point in the history
  • Loading branch information
amassiro committed Jul 28, 2015
1 parent cf5c5d7 commit 37786e1
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 30 deletions.
3 changes: 3 additions & 0 deletions Configurations/WW/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ e.g.

mkShapes.py --pycfg=configuration.py --inputDir=/media/data/amassiro/LatinoTrees/50ns/

mkPlot.py --pycfg=configuration.py --inputFile=plotWW/plots_WW.root


14 changes: 9 additions & 5 deletions Configurations/WW/configuration.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
# example of configuration file

tag = 'mytest'
tag = 'WW'

outputDir = 'plotWW'


variablesFile = 'test/variables.py' # file with list of variables
# file with list of variables
variablesFile = 'variables.py'

cutsFile = 'test/cuts.py' # file with list of cuts

samplesFile = 'test/samples.py' # file with list of samples
# file with list of cuts
cutsFile = 'cuts.py'

# file with list of samples
samplesFile = 'samples.py'

# file with list of samples
plotFile = 'plot.py'



Expand Down
3 changes: 1 addition & 2 deletions Configurations/WW/cuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

#cuts = {}

cuts['first'] = 'mll<50'
cuts['second'] = 'mll>=50'
cuts['WWee'] = 'std_vector_lepton_flavour[0] * std_vector_lepton_flavour[1] == -11*11'

18 changes: 18 additions & 0 deletions Configurations/WW/plot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# plot configuration

#plot = {}

#
#plot['DY'] = {
#'color': 2,
#'isSignal' : 0,
#'isData' : 0
#}

plot['DATA'] = {
'color': 1 ,
'isSignal' : 0,
'isData' : 1
}


33 changes: 16 additions & 17 deletions Configurations/WW/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,29 @@
#samples = {}

#
samples['DY'] = { 'name': ['latino_DYJetsToLL.root'], # file name
'weight' : 'baseW', # weight/cut
'weights': ['1'] # additional cuts file dependent
}
#samples['DY'] = { 'name': ['latino_DYJetsToLL.root'], # file name
#'weight' : 'baseW', # weight/cut
#'weights': ['1'] # additional cuts file dependent
#}

samples['ttbar'] = { 'name': ['latino_TTJets.root'], # file name
'weight' : 'baseW', # weight/cut
'weights': ['1'] # additional cuts file dependent
}
#samples['ttbar'] = { 'name': ['latino_TTJets.root'], # file name
#'weight' : 'baseW', # weight/cut
#'weights': ['1'] # additional cuts file dependent
#}

samples['WZ'] = { 'name': ['latino_WZ.root'],
'weight' : 'baseW',
'weights': ['1']
}
#samples['WZ'] = { 'name': ['latino_WZ.root'],
#'weight' : 'baseW',
#'weights': ['1']
#}

samples['ZZ'] = { 'name': ['latino_ZZ.root'],
'weight' : 'baseW',
'weights': ['1']
}
#samples['ZZ'] = { 'name': ['latino_ZZ.root'],
#'weight' : 'baseW',
#'weights': ['1']
#}


samples['DATA'] = { 'name': ['dataB/latino_DoubleEG.root', 'dataB/latino_MuonEG.root', 'dataB/latino_SingleElectron.root', 'dataB/latino_SingleMu.root'],
'weight' : 'trigger',
'weights': ['1']
}


Expand Down
13 changes: 8 additions & 5 deletions Configurations/WW/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
#variables = {}

#
variables['Mellell'] = { 'name': 'mll', # variable name
'range' : (100,0,200), # variable range
variables['mll'] = { 'name': 'mll', # variable name
'range' : (100,0,200), # variable range
'xaxis' : 'm_{ll} [GeV]' # x axis name
}


variables['test2'] = { 'name': 'mll', # variable name
'range' : (100,0,200), # variable range
variables['pt1'] = { 'name': 'std_vector_lepton_pt[0]',
'range' : (100,0,200),
}

variables['pt2'] = { 'name': 'std_vector_lepton_pt[1]',
'range' : (100,0,200),
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Plots configuration for mkShape
To be downloaded in folder:

LatinoAnalysis/ShapeAnalysis

git clone [email protected]:latinos/PlotsConfigurations.git

E.g. :

mkShapes.py --pycfg=test/configuration.py --inputDir=/media/data/amassiro/LatinoTrees/50ns/
Expand Down

0 comments on commit 37786e1

Please sign in to comment.