TODO: explain style and all the inputs
This repo uses argparse so to see all options, just run ./make_hist.py --help
The required options are -i
and -a
for input and analysis respectively.
-s
[Selection]: is not required because defaults to findingPlotObject
info from thePlotObject/<Analysi>.json
file. Specify Selection to pick a selection specific histograml
[Luminosity]: This defaults to -1 or all samples are unit normalization. Give in pb-1c
[Channel]: Default is "all" (actual word "all"), but can change thissig
[Signal]: choose which sample to make your signal
The Samples that will be made into the graph are specified in the drawObj
array in the make_hist.py
code. This must be changed to the samples you want.
./make_hist.py -i 4top_files.root -a ThreeLep -l 35.9 -o outie.root -sig '2016' --no_ratio
All of the information for the style is in the StyleHelper.py
file. The StyleHelper does 2 main things:
- Give style to the bars in the stack plot
- Give root attributes to different objects
For the giving style, this is done with PlotGroup file in the ADM. The actual string that is used to give the style is the Style string in the py file and it is blocked into 3 compontents:
- Describe the fill type of the stack [fill, nofill, hatched]
- Describe the color of the stack and line (described in full in the color section)
- Describe the line type [thick, dotdash, dash, largedash, finedash] default is leaving black
This style string has these 3 components put into a string with each component seperated by a dash or:
fill-red
nofill-springgreen-dotdash
etc.
The Second part of the code is to give a certain object some formatting based on root commands, such as hist.GetXaxis().SetTitle("blah")
. This is done by putting the command in the Attributes
section of the style.py
file in this repo for a given object. The command can be a chained together. Examples are:
"GetXaxis.SetTitle" : "Hello"
"GetXaxis().SetTitleOffset" : 1.3
color | name | hex |
---|---|---|
lightsalmon |
0xff9999 |
|
salmon |
0xff6666 |
|
indianred |
0xcc6666 |
|
crimson |
0xcc0033 |
|
firebrick |
0xcc3333 |
|
red |
0xff0000 |
|
darkred |
0x990000 |
|
coral |
0xff9933 |
|
tomato |
0xff6633 |
color | name | hex |
---|---|---|
orangered |
0xff3300 |
|
gold |
0xffcc00 |
|
orange |
0xff9900 |
color | name | hex |
---|---|---|
lemonchiffon |
0xffffcc |
|
khaki |
0xffff99 |
|
darkkhaki |
0xcccc66 |
|
yellow |
0xffff00 |
color | name | hex |
---|---|---|
pink |
0xffcccc |
|
lightpink |
0xff99cc |
|
hotpink |
0xff66cc |
|
deeppink |
0xff0099 |
|
palevioletred |
0xcc6699 |
|
mediumvioletred |
0xcc3399 |
color | name | hex |
---|---|---|
white |
0xffffff |
|
lightgray |
0xcccccc |
|
darkgray |
0x999999 |
|
dimgray |
0x666666 |
|
slategray |
0x666699 |
|
darkslategray |
0x336666 |
|
black |
0x000000 |