SND@LHC Software
Loading...
Searching...
No Matches
ShipStyle Namespace Reference

Functions

 lhcbstyleSetup ()
 
 printLHCb (optLR="L", optPrelim="Final", optText="")
 

Variables

 lhcbstyle = TStyle()
 PURPOSE:
 
 lhcbName = TPaveText()
 
 lhcbLabel = TText
 
 lhcbLatex = TLatex
 
int black = 1
 
int red = 2
 
int green = 3
 
int blue = 4
 
int yellow = 5
 
int magenta = 6
 
int cyan = 7
 
int purple = 9
 
int lhcbFont = 62
 
 lhcbWidth = int(3.00)
 

Function Documentation

◆ lhcbstyleSetup()

ShipStyle.lhcbstyleSetup ( )

Definition at line 20 of file ShipStyle.py.

20def lhcbstyleSetup():
21

◆ printLHCb()

ShipStyle.printLHCb (   optLR = "L",
  optPrelim = "Final",
  optText = "" 
)

Definition at line 158 of file ShipStyle.py.

158def printLHCb(optLR="L", optPrelim="Final", optText=""):

Variable Documentation

◆ black

int ShipStyle.black = 1

Definition at line 11 of file ShipStyle.py.

◆ blue

int ShipStyle.blue = 4

Definition at line 14 of file ShipStyle.py.

◆ cyan

int ShipStyle.cyan = 7

Definition at line 17 of file ShipStyle.py.

◆ green

int ShipStyle.green = 3

Definition at line 13 of file ShipStyle.py.

◆ lhcbFont

int ShipStyle.lhcbFont = 62

Definition at line 66 of file ShipStyle.py.

◆ lhcbLabel

ShipStyle.lhcbLabel = TText

Definition at line 7 of file ShipStyle.py.

◆ lhcbLatex

ShipStyle.lhcbLatex = TLatex

Definition at line 8 of file ShipStyle.py.

◆ lhcbName

ShipStyle.lhcbName = TPaveText()

Definition at line 6 of file ShipStyle.py.

◆ lhcbstyle

ShipStyle.lhcbstyle = TStyle()

PURPOSE:

This macro defines a standard style for (black-and-white) "publication quality" LHCb ROOT plots.

USAGE:

Include the lines gROOT.ProcessLine(".L lhcbstyle.C") lhcbstyle() at the beginning of your root macro.

Example usage is given in myPlot.C

COMMENTS:

Font:

The font is chosen to be 62, this is helvetica-bold-r-normal with precision 2.

"Landscape histograms":

The style here is designed for more or less square plots. For longer histograms, or canvas with many pads, adjustements are needed. For instance, for a canvas with 1x5 histograms: TCanvas* c1 = new TCanvas("c1", "L0 muons", 600, 800) c1.Divide(1,5) Adaptions like the following will be needed: lhcbstyle.SetTickLength(0.05,"x") lhcbstyle.SetTickLength(0.01,"y") lhcbstyle.SetLabelSize(0.15,"x") lhcbstyle.SetLabelSize(0.1,"y") lhcbstyle.SetStatW(0.15) lhcbstyle.SetStatH(0.5)

Authors: Thomas Schietinger, Andrew Powell, Chris Parkes Maintained by Editorial board member (currently Chris) /

Definition at line 5 of file ShipStyle.py.

◆ lhcbWidth

ShipStyle.lhcbWidth = int(3.00)

Definition at line 68 of file ShipStyle.py.

◆ magenta

int ShipStyle.magenta = 6

Definition at line 16 of file ShipStyle.py.

◆ purple

int ShipStyle.purple = 9

Definition at line 18 of file ShipStyle.py.

◆ red

int ShipStyle.red = 2

Definition at line 12 of file ShipStyle.py.

◆ yellow

int ShipStyle.yellow = 5

Definition at line 15 of file ShipStyle.py.