simple-tof-analysis
 All Classes Namespaces Functions Variables Groups Pages
Functions | Variables
ShinyStyle Namespace Reference

Main ROOT TStyle automated settings for NA61/SHINE. More...

Functions

void PaletteAntoniStandard ()
 
void PaletteDivergingWhite ()
 
void PaletteDivergingPastel ()
 
void PaletteDivergingSunset ()
 
void PaletteGreen ()
 
void PaletteBlue ()
 
void PaletteSunsetInverted_old ()
 
void PaletteSunsetInverted ()
 
void set_NA61_style ()
 
void set_style2D ()
 
void set_style1D ()
 
void use_alternative_colors ()
 
void fill_background (int fill_style=3544, int fill_color=1, float fill_alpha=0.1)
 

Variables

map< string, int > reactionColor
 
map< string, int > reactionMarker
 
int colors2 [] = {kRed+1, kBlue+1}
 
int colors3 [] = {kRed+1, kGreen+2, kBlue+1}
 
int colors4 [] ={kRed+1,kYellow+1,kGreen+2,kBlue+1}
 
int colors5 [] ={kRed+1,kYellow+1,kGreen+2,kAzure+1,kBlue+1}
 
int colors6 [] ={kRed+1,kOrange+7,kYellow+1,kGreen+2,kAzure+1,kBlue+1}
 
const int markers2 [] = {kFullSquare,kFullCircle}
 
const int markers3 [] = {kFullSquare,kFullCross,kFullCircle}
 
const int markers4 [] = {kFullSquare,kFullTriangleUp,kFullTriangleDown,kFullCircle}
 
const int markers5 [] = {kFullSquare,kFullTriangleUp,kFullCross,kFullTriangleDown,kFullCircle}
 
const int markers6 [] = {kFullSquare,kFullTriangleUp,kFullCross,kFullDoubleDiamond,kFullTriangleDown,kFullCircle}
 
const int markers_open2 [] = {kOpenSquare,kOpenCircle}
 
const int markers_open3 [] = {kOpenSquare,kOpenCross,kOpenCircle}
 
const int markers_open4 [] = {kOpenSquare,kOpenTriangleUp,kOpenTriangleDown,kOpenCircle}
 
const int markers_open5 [] = {kOpenSquare,kOpenTriangleUp,kOpenCross,kOpenTriangleDown,kOpenCircle}
 
const int markers_open6 [] = {kOpenSquare,kOpenTriangleUp,kOpenCross,kOpenDoubleDiamond,kOpenTriangleDown,kOpenCircle}
 
std::map< int, float > marker_sizes
 

Detailed Description

Main ROOT TStyle automated settings for NA61/SHINE.

This namespace is a unified style for data visualization in NA61/SHINE. Created to automatically make your plots nice and shiny.

Author
Maciej Lewicki
Date
May 2020

Function Documentation

void ShinyStyle::PaletteAntoniStandard ( )

Legacy palette used in early publications of NA61 (deprecated)

void ShinyStyle::PaletteBlue ( )

Perceptually uniform palette in blue tones

void ShinyStyle::PaletteDivergingPastel ( )

Diverging Palette for plotting ratios in pastel colors.

void ShinyStyle::PaletteDivergingSunset ( )

Default diverging palette.

void ShinyStyle::PaletteDivergingWhite ( )

Diverging Palette for plotting ratios: blue -> white -> red

void ShinyStyle::PaletteGreen ( )

Perceptually uniform palette in green tones

void ShinyStyle::PaletteSunsetInverted ( )

Perceptually uniform palette inverted ROOT kSunset palette.

void ShinyStyle::PaletteSunsetInverted_old ( )

Perceptually uniform palette inverted ROOT kSunset palette.

void ShinyStyle::set_NA61_style ( )

Base function for setting basic style properties

References marker_sizes, reactionColor, and reactionMarker.

void ShinyStyle::set_style1D ( )

Setting basic style properties for 1D plots

void ShinyStyle::set_style2D ( )

Setting basic style properties for 2D plots

void ShinyStyle::use_alternative_colors ( )

Setting an alternative color scheme for 1D plots

References colors2, colors3, colors4, colors5, and colors6.

Variable Documentation

int ShinyStyle::colors2[] = {kRed+1, kBlue+1}

List of colours for 2 categories

Referenced by use_alternative_colors().

int ShinyStyle::colors3[] = {kRed+1, kGreen+2, kBlue+1}

List of colours for 3 categories

Referenced by use_alternative_colors().

int ShinyStyle::colors4[] ={kRed+1,kYellow+1,kGreen+2,kBlue+1}

List of colours for 4 categories

Referenced by use_alternative_colors().

int ShinyStyle::colors5[] ={kRed+1,kYellow+1,kGreen+2,kAzure+1,kBlue+1}

List of colours for 5 categories

Referenced by use_alternative_colors().

int ShinyStyle::colors6[] ={kRed+1,kOrange+7,kYellow+1,kGreen+2,kAzure+1,kBlue+1}

List of colours for 6 categories

Referenced by use_alternative_colors().

std::map<int,float> ShinyStyle::marker_sizes

Dictionary containing scales for each of the marker style to correct its size to have similar visual impact

Referenced by set_NA61_style().

const int ShinyStyle::markers2[] = {kFullSquare,kFullCircle}

List of marker styles for 2 categories

const int ShinyStyle::markers3[] = {kFullSquare,kFullCross,kFullCircle}

List of marker styles for 3 categories

const int ShinyStyle::markers4[] = {kFullSquare,kFullTriangleUp,kFullTriangleDown,kFullCircle}

List of marker styles for 4 categories

const int ShinyStyle::markers5[] = {kFullSquare,kFullTriangleUp,kFullCross,kFullTriangleDown,kFullCircle}

List of marker styles for 5 categories

const int ShinyStyle::markers6[] = {kFullSquare,kFullTriangleUp,kFullCross,kFullDoubleDiamond,kFullTriangleDown,kFullCircle}

List of marker styles for 6 categories

const int ShinyStyle::markers_open2[] = {kOpenSquare,kOpenCircle}

List of open markers styles for 2 categories

const int ShinyStyle::markers_open3[] = {kOpenSquare,kOpenCross,kOpenCircle}

List of open markers styles for 3 categories

const int ShinyStyle::markers_open4[] = {kOpenSquare,kOpenTriangleUp,kOpenTriangleDown,kOpenCircle}

List of open markers styles for 4 categories

const int ShinyStyle::markers_open5[] = {kOpenSquare,kOpenTriangleUp,kOpenCross,kOpenTriangleDown,kOpenCircle}

List of open markers styles for 5 categories

const int ShinyStyle::markers_open6[] = {kOpenSquare,kOpenTriangleUp,kOpenCross,kOpenDoubleDiamond,kOpenTriangleDown,kOpenCircle}

List of open markers styles for 6 categories

map<string,int> ShinyStyle::reactionColor

List of colours for different reactions recorded by NA61/SHINE

Referenced by set_NA61_style().

map<string,int> ShinyStyle::reactionMarker

List of marker styles for different reactions recorded by NA61/SHINE

Referenced by set_NA61_style().