1 |
import FWCore.ParameterSet.Config as cms
|
2 |
|
3 |
def setStyle(histo, color = 1, style = 1, xTitle = "", yTitle = "", title = ""):
|
4 |
|
5 |
histo.SetLineWidth(2)
|
6 |
histo.SetLineColor(color)
|
7 |
histo.SetLineStyle(style)
|
8 |
histo.SetXTitle(xTitle)
|
9 |
histo.SetYTitle(yTitle)
|
10 |
histo.SetTitle(title)
|
11 |
|
12 |
def setStyle2D(histo, markerStyle = 20, xTitle = "", yTitle = "", title = ""):
|
13 |
|
14 |
histo.SetMarkerSize(1)
|
15 |
histo.SetMarkerStyle(markerStyle)
|
16 |
histo.SetXTitle(xTitle)
|
17 |
histo.SetYTitle(yTitle)
|
18 |
histo.SetTitle(title)
|
19 |
|
20 |
def canvasStyle(canvas):
|
21 |
|
22 |
canvas.SetLogy()
|
23 |
canvas.SetGridx()
|
24 |
canvas.SetGridy()
|
25 |
|