ATLAS Offline Software
Loading...
Searching...
No Matches
BadCellsFromCOOLPrint Namespace Reference

Functions

 set_palette (ncontours=50)

Variables

 f = TFile('tileBadCells.root')
 c1 = TCanvas("c1","c1",0,0,700,600)
 h = f.Get('m_h_badCell'+cell)

Function Documentation

◆ set_palette()

BadCellsFromCOOLPrint.set_palette ( ncontours = 50)
Set a color palette from a given RGB list
stops, red, green and blue should all be lists of the same length
see set_decent_colors for an example

Definition at line 22 of file BadCellsFromCOOLPrint.py.

22def set_palette(ncontours=50):
23 """Set a color palette from a given RGB list
24 stops, red, green and blue should all be lists of the same length
25 see set_decent_colors for an example"""
26
27 stops = [0.00, 0.25, 0.75, 1.00]
28 red = [0.00, 1.00, 1.00, 1.00]
29 green = [1.00, 1.00, 0.70, 0.00]
30 blue = [0.00, 0.00, 0.00, 0.00]
31
32 s = array('d', stops)
33 r = array('d', red)
34 g = array('d', green)
35 b = array('d', blue)
36
37 npoints = len(s)
38 TColor.CreateGradientColorTable(npoints, s, r, g, b, ncontours)
39 gStyle.SetNumberContours(ncontours)
40
41
STL class.

Variable Documentation

◆ c1

BadCellsFromCOOLPrint.c1 = TCanvas("c1","c1",0,0,700,600)

Definition at line 44 of file BadCellsFromCOOLPrint.py.

◆ f

BadCellsFromCOOLPrint.f = TFile('tileBadCells.root')

Definition at line 42 of file BadCellsFromCOOLPrint.py.

◆ h

BadCellsFromCOOLPrint.h = f.Get('m_h_badCell'+cell)

Definition at line 50 of file BadCellsFromCOOLPrint.py.