Reference
This part of the project documentation focuses on
an information-oriented approach. Use it as a
reference for the technical implementation of the
cmsstyle project code.
This python module contains the core methods for the usage of the CMSStyle tools.
The cmsstyle library provides a pyROOT-based implementation of the figure guidelines of the CMS Collaboration.
CMSCanvasManager
Bases: object
A manager of the different graphical parts of a canvas.
Source code in src/cmsstyle/cmsstyle.py
1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 | |
__init__(canvas, pads=None, frames=None, bottom_pad=None, top_pad=None, legendtextsize=None, cmslogotextsize=None, ipos=None, grid_metadata=None)
At minimum, a canvas manager needs a canvas to plot on. Optionally, it can manage different sub-components of a canvas: - A list of pads that will display subplots - A list of frames, one per subplot. The frame is an empty rt.TH1F which is only used to manage the graphical attributes of axes (range, labels, etc.) - A separate pad for the top part of the canvas. If this is not None, then the subplots will be contained below this pad. - A separate pad for the bottom part of the canvas. If this is not None, then the subplots will be contained above this pad.
Source code in src/cmsstyle/cmsstyle.py
1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 | |
CMSPad
Bases: object
A pad, part of a canvas.
Source code in src/cmsstyle/cmsstyle.py
1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 | |
GridMetaData
Bases: object
Metadata related to the grid layout of a cmsstyle canvas.
(ncolumns, nrows) is the grid disposition. Horizontal and vertical margins indicate the margin to use for a proper alignment of the graphical elements and they are used throughout different utilities in CMSCanvasManager.
Source code in src/cmsstyle/cmsstyle.py
1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 | |
p10
A class to represent the Petroff color scheme with 10 colors.
Attributes: kBlue (int): The color blue. kYellow (int): The color yellow. kRed (int): The color red. kGray (int): The color gray. kViolet (int): The color violet. kBrown (int): The color brown. kOrange (int): The color orange. kGreen (int): The color green.
Source code in src/cmsstyle/cmsstyle.py
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 | |
p6
A class to represent the Petroff color scheme with 6 colors.
Attributes: kBlue (int): The color blue. kYellow (int): The color yellow. kRed (int): The color red. kGrape (int): The color grape. kGray (int): The color gray. kViolet (int): The color violet.
Source code in src/cmsstyle/cmsstyle.py
257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 | |
p8
A class to represent the Petroff color scheme with 8 colors.
Attributes: kBlue (int): The color blue. kOrange (int): The color orange. kRed (int): The color red. kPink (int): The color pink. kGreen (int): The color green. kCyan (int): The color cyan. kAzure (int): The color azure. kGray (int): The color gray.
Source code in src/cmsstyle/cmsstyle.py
294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 | |
AppendAdditionalInfo(text)
Append additional information to be displayed, e.g. a string identifying a region, or selection cuts.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text |
str
|
The additional information text. |
required |
Source code in src/cmsstyle/cmsstyle.py
245 246 247 248 249 250 251 252 253 | |
CMS_lumi(pad, iPosX=11, scaleLumi=1)
Draw the CMS text and luminosity information on the specified pad.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pad |
TPad
|
The pad to draw on. |
required |
iPosX |
int
|
The position of the CMS logo. Defaults to 11 (top-left, left-aligned). Set it to 0 to put it outside the box (top left) |
11
|
scaleLumi |
float
|
Scale factor for the luminosity text size (default is 1, no scaling). |
1
|
Source code in src/cmsstyle/cmsstyle.py
778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 | |
CreateAlternativePalette(alpha=1)
Create an alternative color palette for 2D histograms.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
alpha |
float
|
The transparency value for the palette colors. Defaults to 1 (opaque). |
1
|
Source code in src/cmsstyle/cmsstyle.py
475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 | |
GetCmsCanvasHist(canv)
Get the histogram frame object from a canvas created with cmsCanvas (or any TPad).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
canv |
TCanvas
|
The canvas to get the histogram frame from (that can be any TPad). |
required |
Returns:
| Type | Description |
|---|---|
|
ROOT.TH1: The histogram frame object. |
Source code in src/cmsstyle/cmsstyle.py
1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 | |
GetPalette(hist)
Get the colour palette object associated with a histogram.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hist |
TH1 or TH2
|
The histogram to get the palette from. |
required |
Returns:
| Type | Description |
|---|---|
|
ROOT.TPaletteAxis: The colour palette object. |
Source code in src/cmsstyle/cmsstyle.py
536 537 538 539 540 541 542 543 544 545 546 547 548 | |
ResetAdditionalInfo()
Reset the additional information to be displayed.
Source code in src/cmsstyle/cmsstyle.py
237 238 239 240 241 242 | |
SaveCanvas(canv, path, close=True)
Save a canvas to a file and optionally close it. Takes care of fixing overlay and closing objects.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
canv |
TCanvas
|
The canvas to save. |
required |
path |
str
|
The path to save the canvas to. |
required |
close |
bool
|
Whether to close the canvas after saving. Defaults to True. |
True
|
Source code in src/cmsstyle/cmsstyle.py
1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 | |
SetAlternative2DColor(hist=None, style=None, alpha=1)
Set an alternative colour palette for a 2D histogram.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hist |
TH2
|
The 2D histogram to set the colour palette for. |
None
|
style |
TStyle
|
The style object to use for setting the palette. |
None
|
alpha |
float
|
The transparency value for the palette colours. Defaults to 1 (opaque). |
1
|
Source code in src/cmsstyle/cmsstyle.py
501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 | |
SetCMSPalette()
Set the official CMS colour palette for 2D histograms directly.
Source code in src/cmsstyle/cmsstyle.py
527 528 529 530 531 | |
SetCmsText(text, font=None, size=None)
Function that allows to edit the default "CMS" string
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text |
str
|
The CMS text. |
required |
font |
Font_t
|
Font of the CMS Text. If None or 0, it is not changed. |
None
|
size |
float
|
Size of the CMS Text. If None or 0, it is not changed. |
None
|
Source code in src/cmsstyle/cmsstyle.py
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | |
SetEnergy(energy, unit='TeV')
Set the centre-of-mass energy value and unit to be displayed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
energy |
float
|
The centre-of-mass energy value. If it is 0, the string for the energy is set to the value of unit. |
required |
unit |
str
|
The energy unit. Defaults to "TeV". |
'TeV'
|
Source code in src/cmsstyle/cmsstyle.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | |
SetExtraText(text, font=None)
Set extra text to be displayed next to "CMS", e.g. "Preliminary". If set to an empty string, nothing extra is written.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text |
str
|
The extra text. It should be noted that some special nicknames are allowed. |
required |
font |
Font_t
|
Font of the extra text. If None or 0, it is not changed. |
None
|
The nicknames that could be used take info account the most relevant case (as seen in https://cms-analysis.docs.cern.ch/guidelines/plotting/general/#cms-label-requirements "p" -> "Preliminary" "s" -> "Simulation" "su" -> "Supplementary" "wip" -> "Work in progress "pw" -> "Private work (CMS data)"
Source code in src/cmsstyle/cmsstyle.py
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | |
SetLumi(lumi, unit='fb', run='Run 2', round_lumi=-1)
Set the integrated luminosity value and unit to be displayed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
lumi |
float
|
The integrated luminosity value. May be skipped if set to None. |
required |
unit |
str
|
The integrated luminosity unit. Defaults to "fb". |
'fb'
|
run |
str
|
The LHC run to which the sample refers to. |
'Run 2'
|
round_lumi |
int
|
Number of decimal digits to present the number. If no 0,1 nor 2, no rounding is done |
-1
|
Source code in src/cmsstyle/cmsstyle.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | |
UpdatePad(pad=None)
Update the indicated pad. If none is provided, update the currently active Pad.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pad |
TPad or TCanvas
|
Pad or Canvas to be updated (gPad if none provided) |
None
|
Source code in src/cmsstyle/cmsstyle.py
623 624 625 626 627 628 629 630 631 632 633 634 635 636 | |
UpdatePalettePosition(hist, canv=None, X1=None, X2=None, Y1=None, Y2=None, isNDC=True)
Adjust the position of the color palette for a 2D histogram.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hist |
TH2
|
The 2D histogram to adjust the palette for. |
required |
canv |
TCanvas
|
The canvas containing the histogram. If provided, the palette position will be adjusted based on the canvas margins. |
None
|
X1 |
float
|
The left position of the palette in NDC (0-1) or absolute coordinates. |
None
|
X2 |
float
|
The right position of the palette in NDC (0-1) or absolute coordinates. |
None
|
Y1 |
float
|
The bottom position of the palette in NDC (0-1) or absolute coordinates. |
None
|
Y2 |
float
|
The top position of the palette in NDC (0-1) or absolute coordinates. |
None
|
isNDC |
bool
|
Whether the provided coordinates are in NDC (True) or absolute coordinates (False). Defaults to True. |
True
|
Source code in src/cmsstyle/cmsstyle.py
552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 | |
addCmsLogo(canv, x0, y0, x1, y1, logofile=None)
This is a method to draw the CMS logo (that should be set using the corresponding method or on the fly) in a TPad set at the indicated location of the currently used TPad.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
canv |
TCanvas
|
CMSCanvas that needs to be used to plot the CMSLogo. |
required |
x0 |
float
|
X position (in relative dimensions) of the lower-left corner of the logo |
required |
y0 |
float
|
Y position (in relative dimensions) of the lower-left corner of the logo. |
required |
x1 |
float
|
X position (in relative dimensions) of the upper-left corner of the logo. |
required |
y1 |
floar
|
Y position (in relative dimensions) of the upper-left corner of the logo. |
required |
logofile |
(str, optional)
|
filename (with path) for the logo picture (see SetCmsLogoFilename for details) |
None
|
Source code in src/cmsstyle/cmsstyle.py
926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 | |
addToLegend(leg, *objs)
Add to the given TLegend the indicated elements (tuples or lists with references to ROOT TObjects and the information required by the TLegend).
Written by O. Gonzalez. Args: leg (ROOT.TLegend): The legend to add the elements to. *objs: any number of arguments with a tuple or list with three elements each, being (ROOT.TObject,str,str) where the first is the TObject to add, the second the label for the TLegend and the third the identifier for the legend.
Source code in src/cmsstyle/cmsstyle.py
1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 | |
buildAndDrawTHStack(objs, leg, reverseleg=True, colorlist=None, stackopt='STACK', **kwargs)
This method allows to build and draw a THStack with a single command.
Basically it reduces to a single command the calls to buildTHStack, to addToLegend and to cmsObjectDraw for the most common case.
Examples of use:
hs = cmsstyle.buildAndDrawTHStack([(h2,"Sample 2",'f'),
(h1,"Sample 1",'f'),
(hg,"Sample G",'f')],
plotlegend,True,[cmsstyle.p10.kBrown,cmsstyle.p10.kBlue,cmsstyle.p10.kOrange],"STACK")
Written by O. Gonzalez.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
objs |
list/tuple of (ROOT.TH1,str,str) tuples
|
list of objects, organized as tuples containing each of histograms to be added to the THStack with its label and option for the legend. |
required |
leg |
TLegend
|
legend to which the THStack members may be added. |
required |
reverseleg |
bool
|
whether elements should be added to the legend in reverse order. |
True
|
colorlist |
list / tuple
|
list of colors to be used as the color for each histogram. |
None
|
stackopt |
(str, optional)
|
option to define the THStack. |
'STACK'
|
**kwargs |
ROOT styling object
|
Parameter names correspond to
object styling method and arguments correspond to stilying ROOT objects:
e.g. |
{}
|
Returns:
| Type | Description |
|---|---|
|
ROOT.THStack: the created THStack. |
Source code in src/cmsstyle/cmsstyle.py
1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 | |
buildTHStack(histlist, colorlist=None, opt='STACK', **kwargs)
This method allows to build a THStack out of a list of histograms and configure at the same time the colors to be used with each histogram and some possible general configurations.
Examples of use:
hs = cmsstyle.buildTHStack([h1,h2,hg])
hs = cmsstyle.buildTHStack([h1,h2,hg],[cmsstyle.p10.kBrown,cmsstyle.p10.kBlue,cmsstyle.p10.kOrange],"STACK",FillStyle=3005,FillColor=-1,LineColor=-1)
Written by O. Gonzalez.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
histlist |
list / tuple
|
list of histograms to add in order to the THStack to be built! |
required |
colorlist |
list / tuple
|
list of colors to be used as the color for each histogram |
None
|
opt |
(str, optional)
|
option to be used to create the THStack. |
'STACK'
|
**kwargs |
ROOT styling object
|
Parameter names correspond to
object styling method and arguments correspond to stilying ROOT objects:
e.g. |
{}
|
Returns:
| Type | Description |
|---|---|
|
ROOT.THStack: the created THStack. |
Source code in src/cmsstyle/cmsstyle.py
1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 | |
changeStatsBox(canv, ipos_x1=None, y1pos=None, x2pos=None, y2pos=None, **kwargs)
This method allows to obtain the StatsBox from the given Canvas and modify its position and, additionally, modify its properties using named keywords arguments.
Written by O. Gonzalez.
The ipos_x0 may be set to a numeric value in NDC coordinates OR a predefined position using a string of the following:
'tr' -> Drawn in the Top-Right part of the frame including the plot.
'tl' -> Drawn in the Top-Left part of the frame including the plot.
'br' -> Drawn in the Bottom-Right part of the frame including the plot.
'bl' -> Drawn in the Bottom-Left part of the frame including the plot.
In this case the second coordinate may be used to scale the x-dimension (for readability), and the third may be used to scale the y-dimension (usually not needed)
Examples of use:
cmsstyle.changeStatsBox(canv,'tr',FillColor=ROOT.kRed,FillStyle=3555)
cmsstyle.changeStatsBox(canv,'tl',SetTextColor=ROOT.kRed,SetFontSize=0.03)
cmsstyle.changeStatsBox(canv,'tl',1.2,SetTextColor=ROOT.kRed,SetFontSize=0.03)
(A method starting with "Set" may omite the "Set" part)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
canv |
TCanvas or TPaveStats
|
canvas to which we modify the stats box (or directly the TPaveStats to change) |
required |
ipos_x1 |
str or float
|
position for the stats box. Use a predefined string of a location or an NDC x coordinate number |
None
|
y1pos |
float
|
NDC y coordinate number or a factor to scale the width of the box when using a predefined location. |
None
|
x2pos |
float
|
NDC x coordinate number or a factor to scale the height of the box when using a predefined location. |
None
|
y2pos |
float
|
NDC y coordinate number or ignored value. |
None
|
**kwargs |
Arbitrary keyword arguments for mofifying the properties of the stats box using Set methods or similar. |
{}
|
Returns:
| Type | Description |
|---|---|
|
The Stats Box so it may be access externally. |
Source code in src/cmsstyle/cmsstyle.py
1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 | |
cmsCanvas(canvName, x_min, x_max, y_min, y_max, nameXaxis, nameYaxis, square=True, iPos=11, extraSpace=0, with_z_axis=False, scaleLumi=1, yTitOffset=None)
Create a canvas with CMS style and predefined axis labels.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
canvName |
str
|
The name of the canvas. |
required |
x_min |
float
|
The minimum value of the x-axis. |
required |
x_max |
float
|
The maximum value of the x-axis. |
required |
y_min |
float
|
The minimum value of the y-axis. |
required |
y_max |
float
|
The maximum value of the y-axis. |
required |
nameXaxis |
str
|
The label for the x-axis. |
required |
nameYaxis |
str
|
The label for the y-axis. |
required |
square |
bool
|
Whether to create a square canvas. Defaults to True. |
True
|
iPos |
int
|
The position of the CMS logo. Defaults to 11 (top-left, left-aligned). Alternatives are 33 (top-right, right-aligned), 22 (center, centered) and 0 (out of frame, in exceptional cases). Position is calculated as 10*(alignment 1/2/3) + position (1/2/3 = l/c/r). |
11
|
extraSpace |
float
|
Additional space to add to the left margin to fit labels. Defaults to 0. |
0
|
with_z_axis |
bool
|
Whether to include a z-axis for 2D histograms. Defaults to False. |
False
|
scaleLumi |
float
|
Scale factor for the luminosity text size. Default is 1.0 indicating no scale |
1
|
yTitOffset |
float
|
Set the value for the Y-axis title offset in case default is not good. [Added by O. Gonzalez] |
None
|
Returns:
| Type | Description |
|---|---|
|
ROOT.TCanvas (ROOT.TCanvas): The created canvas. |
Source code in src/cmsstyle/cmsstyle.py
983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 | |
cmsCanvasResetAxes(canv, x_min, x_max, y_min, y_max)
Reset the axis ranges of a canvas created with cmsCanvas.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
canv |
TCanvas
|
The canvas to reset the axis ranges for. |
required |
x_min |
float
|
The minimum value of the x-axis. |
required |
x_max |
float
|
The maximum value of the x-axis. |
required |
y_min |
float
|
The minimum value of the y-axis. |
required |
y_max |
float
|
The maximum value of the y-axis. |
required |
Source code in src/cmsstyle/cmsstyle.py
1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 | |
cmsDiCanvas(canvName, x_min, x_max, y_min, y_max, r_min, r_max, nameXaxis, nameYaxis, nameRatio, square=True, iPos=11, extraSpace=0, scaleLumi=1)
Create a canvas with CMS style and predefined axis labels, with a ratio pad.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
canvName |
str
|
The name of the canvas. |
required |
x_min |
float
|
The minimum value of the x-axis. |
required |
x_max |
float
|
The maximum value of the x-axis. |
required |
y_min |
float
|
The minimum value of the y-axis. |
required |
y_max |
float
|
The maximum value of the y-axis. |
required |
r_min |
float
|
The minimum value of the ratio axis. |
required |
r_max |
float
|
The maximum value of the ratio axis. |
required |
nameXaxis |
str
|
The label for the x-axis. |
required |
nameYaxis |
str
|
The label for the y-axis. |
required |
nameRatio |
str
|
The label for the ratio axis. |
required |
square |
bool
|
Whether to create a square canvas. Defaults to True. |
True
|
iPos |
int
|
The position of the CMS text. Defaults to 11 (top-left, left-aligned). |
11
|
extraSpace |
float
|
Additional space to add to the left margin to fit labels. Defaults to 0. |
0
|
scaleLumi |
float
|
Scale factor for the luminosity text size. Default is 1 that means no scaling. |
1
|
Returns:
| Type | Description |
|---|---|
|
ROOT.TCanvas: The created canvas. |
Source code in src/cmsstyle/cmsstyle.py
1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 | |
cmsDraw(h, style, marker=rt.kFullCircle, msize=1.0, mcolor=rt.kBlack, lstyle=rt.kSolid, lwidth=1, lcolor=-1, fstyle=1001, fcolor=rt.kYellow + 1, alpha=-1)
Draw a histogram with CMS style.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
h |
TH1 or TH2
|
The histogram to draw. |
required |
style |
str
|
The drawing style (e.g., "HIST", "P", etc.). |
required |
marker |
int
|
The marker style. Defaults to kFullCircle. |
kFullCircle
|
msize |
float
|
The marker size. Defaults to 1.0. |
1.0
|
mcolor |
int
|
The marker color. Defaults to kBlack. |
kBlack
|
lstyle |
int
|
The line style. Defaults to kSolid. |
kSolid
|
lwidth |
int
|
The line width. Defaults to 1. |
1
|
lcolor |
int
|
The line color. If -1, uses the marker color. Defaults to -1. |
-1
|
fstyle |
int
|
The fill style. Defaults to 1001 (solid). |
1001
|
fcolor |
int
|
The fill color. Defaults to kYellow+1. |
kYellow + 1
|
alpha |
float
|
The transparency value for the fill color (0-1). If -1, uses the default transparency. Defaults to -1. |
-1
|
Source code in src/cmsstyle/cmsstyle.py
1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 | |
cmsDrawLine(line, lcolor=rt.kRed, lstyle=rt.kSolid, lwidth=2)
Draw a line with CMS style.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
line |
TLine
|
The line to draw. |
required |
lcolor |
int
|
The line color. Defaults to kRed. |
kRed
|
lstyle |
int
|
The line style. Defaults to kSolid. |
kSolid
|
lwidth |
int
|
The line width. Defaults to 2. |
2
|
Source code in src/cmsstyle/cmsstyle.py
1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 | |
cmsGrid(gridOn)
Enable or disable the grid mode in the CMSStyle. It could also be done by calling the corresponding methods for ROOT.gStyle after setting the style.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
gridOn |
bool
|
To indicate whether to sets or unset the Grid on the CMSStyle. |
required |
Source code in src/cmsstyle/cmsstyle.py
606 607 608 609 610 611 612 613 614 615 616 617 618 619 | |
cmsHeader(leg, legTitle, textAlign=12, textSize=0.04, textFont=42, textColor=rt.kBlack, isToRemove=True)
Add a header to a legend with CMS style.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
leg |
TLegend
|
The legend to add the header to. |
required |
legTitle |
str
|
The title of the header. |
required |
textAlign |
int
|
The alignment of the header text. Defaults to 12 (centered). |
12
|
textSize |
float
|
The text size of the header. Defaults to 0.04. |
0.04
|
textFont |
int
|
The font of the header. Defaults to 42 (helvetica). |
42
|
textColor |
int
|
The color of the header. Defaults to kBlack. |
kBlack
|
isToRemove |
bool
|
Whether to remove the default header and replace it with the new one. Defaults to True. |
True
|
Source code in src/cmsstyle/cmsstyle.py
1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 | |
cmsLeg(x1, y1, x2, y2, textSize=0.04, textFont=42, textColor=rt.kBlack, columns=None)
Create a legend with CMS style.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x1 |
float
|
The left position of the legend in NDC (0-1). |
required |
y1 |
float
|
The bottom position of the legend in NDC (0-1). |
required |
x2 |
float
|
The right position of the legend in NDC (0-1). |
required |
y2 |
float
|
The top position of the legend in NDC (0-1). |
required |
textSize |
float
|
The text size of the legend entries. Defaults to 0.04. |
0.04
|
textFont |
int
|
The font of the legend entries. Defaults to 42 (helvetica). |
42
|
textColor |
int
|
The color of the legend entries. Defaults to kBlack. |
kBlack
|
columns |
int
|
The number of columns in the legend. |
None
|
Returns:
| Type | Description |
|---|---|
|
ROOT.TLegend: The created legend. |
Source code in src/cmsstyle/cmsstyle.py
1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 | |
cmsMultiCanvas(canvName, nColumns, nRows, Xlimits, Ylimits, nameXaxis, nameYaxis, labelTextSize=50 * 0.8, titleTextSize=50, lumiTextSize=50, logoTextSize=50 * 0.75 / 0.6, legendTextSize=30, heightRatios=None, widthRatios=None, canvasTopMargin=0.1, canvasBottomMargin=0.03, canvasWidth=2000, canvasHeight=2000, iPos=0)
Create a plot with multiple pads arranged in a grid, with shared axes, common legend and CMS styling.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
canvName |
str
|
The name of the canvas. |
required |
nColumns |
int
|
number of columns in the grid |
required |
nRows |
int
|
number of rows in the grid |
required |
XLimits |
dict
|
dictionary containing X axis limits for all plots, with integer keys corresponding to left-to-right top-to-bottom numbering scheme, starting from 0, and a 2-element iterable value, containing x_min and x_max. e.g. {0: [0, 50000], 1: [1, 50000]}. |
required |
YLimits |
dict
|
dictionary containing Y axis limits for all plots, with integer keys corresponding to left-to-right top-to-bottom numbering scheme, starting from 0, and a 2-element iterable value, containing y_min and y_max. e.g. {0: [0, 50000], 1: [1, 50000]}. |
required |
nameXaxis |
str
|
the label for the x-axis. |
required |
nameYaxis |
dict
|
the label for the y-axis, in the form of a dict int:str with integer keys corresponding to left-to-right top-to-bottom numbering scheme, starting from 0. e.g. {0: "Y Label for 1st plot", 4: "Y Label for 5th plot"} |
required |
labelTextSize |
float
|
absolute value of textSize of axis labels (same for X and Y). Defaults to 50*0.8. |
50 * 0.8
|
titleTextSize |
float
|
absolute value for textSize of axis titles (same for X and Y). Defaults to 50. |
50
|
lumiTextSize |
float
|
absolute value for textSize of lumi text. Defaults to 50. |
50
|
logoTextSize |
float
|
absolute value for textSize of CMS Logo, extraText is scaled accordingly. Defaults to 50 * 0.75 / 0.6. |
50 * 0.75 / 0.6
|
legendTextSize |
float
|
Absolute value for text size of legend. Defaults to 30. |
30
|
heightRatios |
list
|
list of weights for the relative heights of the pads along the columns. Length must be equal to nrows. Defaults to None, which means each plot gets the same height. |
None
|
widthRatios |
list
|
list of weights for the relative widths of the pads along the rows. Length must be equal to ncolumns. Defaults to None, which means each plot gets the same width. |
None
|
canvasTopMargin |
float
|
margin to remove starting from the top of the canvas to make space for the top pad. Defaults to 0.1. |
0.1
|
canvasBottomMargin |
float
|
margin to remove starting from the bottom of the canvas to make space for the bottom pad. Defaults to 0.03. |
0.03
|
canvasWidth |
float
|
total width of the canvas. Defaults to 2000. |
2000
|
canvasHeight |
float
|
total height of the canvas. Defaults to 2000. |
2000
|
iPos |
int
|
The position of the CMS text. 0 (outside of legend box) or 11 (top-left left-aligned inside legend box). Defaults to 11. |
0
|
Returns:
| Name | Type | Description |
|---|---|---|
CMSCanvasManager |
A object to handle the multipad grid. |
Source code in src/cmsstyle/cmsstyle.py
2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 | |
cmsMultiCanvasLeg(cvm, *legend_items)
Create, fill and draw the common legend of a cmsMultiCanvas.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cvm |
CMSCanvasManager
|
A CMSCanvasManager object returned by cmsMultiCanvas() method. |
required |
*legend_items |
list
|
list of tuples in the form [(ROOTobject1, name for ROOTobject1 as a string, print option for ROOTObject1 as a string), (ROOTobject2, name for ROOTobject2 as a string, print option for ROOTObject2 as a string), ...] |
()
|
Returns:
| Type | Description |
|---|---|
|
None |
Source code in src/cmsstyle/cmsstyle.py
2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 | |
cmsObjectDraw(obj, opt='', **kwargs)
This method allows to plot the indicated object by modifying optionally the configuration of the object itself using named parameters referring to the methods to call.
Examples of use:
cmsstyle.cmsObjectDraw(hist,'HISTSAME',LineColor=ROOT.kRed,FillColor=ROOT.kRed,FillStyle=3555)
cmsstyle.cmsObjectDraw(hist,'E',SetLineColor=ROOT.kRed,MarkerStyle=ROOT.kFullCircle)
cmsstyle.cmsObjectDraw(hist,'SE',SetLineColor=cmsstyle.p6.kBlue,MarkerStyle=ROOT.kFullCircle)
cmsstyle.cmsObjectDraw(hist,'SCATSAME') # Just 'SCAT' does not work, for some reason... "SCAT" is considered obsolete (?)
Written by O. Gonzalez.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj |
ROOT object
|
Any drawable ROOT object. |
required |
opt |
str
|
The plotting option. It does not need to include SAME as it is prefixed to it. Starting that opt with "S" converts that "SAME" in "SAMES" (e.g. to include the stats box). Using "SAMES" or "SAME" in opt makes the prefix not being used. |
''
|
**kwargs |
ROOT styling object
|
Parameter names correspond to object styling method and arguments correspond to stilying ROOT objects: e.g. |
{}
|
Also, "Color" will be interpreted as a value applicable to SetLineColor, SetFillColor and SetMarkerColor.
Source code in src/cmsstyle/cmsstyle.py
1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 | |
cmsReturnMaxY(*args)
This routine returns the recommended value for the maximum of the Y axis given a set of ROOT Object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
*args |
list of ROOT objects for which we need the maximum value on Y axis. |
()
|
Returns:
| Name | Type | Description |
|---|---|---|
float |
recommended value to be used in a Y axis for plotting those objects. |
Source code in src/cmsstyle/cmsstyle.py
1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 | |
copyRootObjectProperties(obj, srcobj, proplist, **kwargs)
This method allows to copy the properties of a ROOT object from a reference source (another ROOT object) using a list of named keyword arguments to call the associated methods.
The optional kwargs part is used to call the routine setRootObjectProperties for the objects, reducing the amount of calls.
Written by O. Gonzalez.
This allows to make very efficient the synchronization of the properties between related objects so they appear similar in the plots.
cmsstyle.setRootObjectProperties(tgraph,hist,['FillColor','FillStyle','SetLineColor'])
(The keyword is obtaining by removing the "Set"/"Get" part of the name of the corresponding methods)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj |
ROOT TObject
|
ROOT object to which we want to change the properties |
required |
srcobj |
ROOT TObject
|
ROOT object from which we are copying the indicated properties |
required |
proplist |
list of strings
|
Names of the properties to be copied. |
required |
**kwargs |
Arbitrary keyword arguments for mofifying the properties of the object using Set methods or similar. |
{}
|
Source code in src/cmsstyle/cmsstyle.py
1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 | |
drawText(text, posX, posY, font, align, size)
This method allows to draw a given text with all the provided characteristics.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text |
str
|
text to be written in the Current TPad/TCanvas. |
required |
posX |
float
|
position in X (using NDC) where to place the text. |
required |
posY |
float
|
poisition in Y (using NDC) where to place the text. |
required |
font |
Font_t
|
Font to be used. |
required |
align |
int
|
Alignment code for the text. |
required |
size |
float
|
Size of the text. |
required |
Source code in src/cmsstyle/cmsstyle.py
903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 | |
getCMSStyle()
This returns the CMSStyle variable, in case it is required externally, although usually it should be accessed via ROOT.gStyle after setting it.
Source code in src/cmsstyle/cmsstyle.py
762 763 764 765 766 | |
getPettroffColor(color)
This method returns the object (EColor) associated to a given color in the previous sets from a given string to identify it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
color |
str
|
Name of the color given as a string, e.g. 'p8.kBlue' Note: If the color name does not contain a "dot" it is assumed to be a ROOT color by name! |
required |
Returns:
| Name | Type | Description |
|---|---|---|
EColor |
color associated to the requested color name. |
Source code in src/cmsstyle/cmsstyle.py
371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 | |
getPettroffColorSet(ncolors)
This method returns a list of colors for the given number of colors based on the previous sets.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ncolors |
int
|
Number of colors to be set for the list of colors (as a minimum!) |
required |
Returns:
| Name | Type | Description |
|---|---|---|
list |
list of colors (using the keywords above!) |
Source code in src/cmsstyle/cmsstyle.py
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 | |
is_valid_hex_color(hexcolor)
Check if a string represents a valid hexadecimal color code. It also allows other
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hex_color |
str / int / TColor
|
The hexadecimal color code to check... or a TColor or intenger value |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
True if the string is a valid hexadecimal color code, False otherwise. |
Source code in src/cmsstyle/cmsstyle.py
1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 | |
setCMSStyle(force=rt.kTRUE)
This method allows to define the CMSStyle defaults.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
force |
ROOT boolean
|
boolean passed to the application of the Style in ROOT to force to objects loaded after setting the style. |
kTRUE
|
Source code in src/cmsstyle/cmsstyle.py
640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 | |
setRootObjectProperties(obj, **kwargs)
This method allows to modify the properties of a ROOT object using a list of named keyword arguments to call the associated methods.
Written by O. Gonzalez.
Mostly intended to be called from other routines within the project, but it can be used externally with a call like e.g.
cmsstyle.setRootObjectProperties(hist,FillColor=ROOT.kRed,FillStyle=3555,SetLineColor=cmsstyle.p6.kBlue)
(A method starting with "Set" may omite the "Set" part)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj |
ROOT TObject
|
ROOT object to which we want to change the properties |
required |
**kwargs |
Arbitrary keyword arguments for mofifying the properties of the object using Set methods or similar. |
{}
|
Source code in src/cmsstyle/cmsstyle.py
1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 | |
subplots(ncolumns, nrows, height_ratios=None, width_ratios=None, canvas_top_margin=None, canvas_bottom_margin=None, shared_x_axis=True, shared_y_axis=True, canvas_width=2000, canvas_height=2000, axis_title_size=50, axis_label_size=50 * 0.8, logotextsize=50, legendtextsize=30, ipos=0)
Creates multiple pads in a canvas according to the input configuration, then returns an object to help manage the canvas and all its graphical parts.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ncolumns |
int
|
number of columns in the grid |
required |
nrows |
int
|
number of rows in the grid |
required |
height_ratios |
list
|
list of weights for the relative heights of the pads along the columns. Length must be equal to nrows |
None
|
width_ratios |
list
|
list of weights for the relative widths of the pads along the rows. Length must be equal to ncolumns |
None
|
canvas_top_margin |
float
|
margin to remove starting from the top of the canvas to make space for the top pad |
None
|
canvas_bottom_margin |
float
|
margin to remove starting from the bottom of the canvas to make space for the bottom pad |
None
|
shared_x_axis (bool, optional) |
whether the x axis of all columns should be shared |
required | |
shared_y_axis |
bool
|
whether the y axis of all columns should be shared |
True
|
canvas_width |
float
|
total width of the canvas |
2000
|
canvas_height |
float
|
total height of the canvas |
2000
|
axis_title_size |
float
|
reference absolute size for axis titles |
50
|
axis_label_size |
float
|
reference absolute size for axis labels |
50 * 0.8
|
logotextsize |
float
|
absolute text size of experiment logo |
50
|
legendtextsize |
float
|
absolute text size of legend |
30
|
ipos |
int
|
position of experiment logo |
0
|
Source code in src/cmsstyle/cmsstyle.py
2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 | |