AliPhysics  ad6828d (ad6828d)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Drawer Struct Reference

Static Public Member Functions

static const char * PlotPrefix ()
 
static void LoadOther ()
 
static TMultiGraph * GetOther (UShort_t sys, UShort_t sNN, UShort_t trg, UShort_t exps=0xf, Int_t verbose=3)
 
static TMultiGraph * GetOther (const TString &system, UShort_t sNN, const TString &trigger, Int_t verbose=0)
 
static TMultiGraph * GetOther (const TString &system, UShort_t sNN, const TString &trigger, const TString &exps, Int_t verbose=0)
 
static Int_t AliceBlue ()
 
static Int_t AliceRed ()
 
static Int_t AlicePurple ()
 
static Int_t AliceYellow ()
 
static Color_t Brighten (Color_t origNum, Int_t nTimes=2)
 
static TString SNNString (const TString &system, UShort_t sNN)
 
static TGraphErrorsH2G (TH1 *h, Double_t xOff, Int_t sign=1)
 
static TGraphAsymmErrorsH2GA (TH1 *h, TH1 *sA, TH1 *sC)
 
static void ErrorGraphs (const TGraph *g, TGraph *&low, TGraph *&up)
 
static void ErrorGraphs (const TGraphErrors *g, TGraph *&low, TGraph *&up)
 
static void ErrorGraphs (const TGraphAsymmErrors *g, TGraph *&low, TGraph *&up)
 
static TH1ErrorHist (const TH1 *h, Bool_t aSide, Double_t factor=0.076)
 
static TH1HOverG (const TH1 *h, const TGraph *g, const TGraph *l, const TGraph *u, Bool_t err=false)
 
static TGraphGOverG (const TGraph *num, const TGraph *den, const TGraph *dlow, const TGraph *dup, Double_t dx=0)
 
static THStack * GetStack (TLegend *legend, const TString &system, UShort_t sNN, const TString &trigger, Bool_t rebinned=true, Bool_t empirical=true, Int_t marker=20)
 
static TCanvas * MakeCanvas (const TString &system, UShort_t sNN, const TString &trigger, Bool_t rebinned=true, Bool_t empirical=true)
 
static void PrintCanvas (TCanvas *canvas, const TString &types)
 
static Double_tFixTriggerEff (const TString &sys, UShort_t sNN, TString &trigger)
 
static void Draw (const TString &system, UShort_t sNN, const TString &trigger, const Option_t *option="e3", Bool_t rebinned=true, Bool_t empirical=true)
 
static TGraphAsymmErrorsCombine (TMultiGraph *mg)
 
static Int_t FindCentBin (Color_t c)
 
static void Export (const TString &system, UShort_t sNN, const TString &trigger, Bool_t rebinned=false, Bool_t empirical=true)
 
static void AddSystematics (THStack *stack, Double_t sys)
 
static THStack * Symmetrice (THStack *s1, THStack *s2)
 
static THStack * Symmetrice (THStack *s)
 
static void pPbSym (const TString &trigger, const Option_t *option="e3", Bool_t rebinned=true, Bool_t empirical=true)
 
static void ScaleBypp (const TString &system, UShort_t sNN, UShort_t ppsNN, const TString &trigger, const TString &ppTrigger, Double_t etaShift=0, Bool_t rebinned=true, Bool_t empirical=true, Bool_t write=false)
 
static void SymScaleBypp (UShort_t ppsNN, const TString &trigger, const TString &ppTrigger, const Option_t *option="e2", Bool_t rebinned=true, Bool_t empirical=true, Bool_t write=false)
 
static void Add2Out (TString &out, const char *what)
 
static void Add2Out (TString &out, UShort_t sNN)
 
static void DrawAll (const char **syss, UShort_t *sNNs, const char **trgS, UShort_t flags=0x0)
 
static TLatex * MakeTitle (Double_t x, Double_t y, const TString &system, UShort_t sNN, const TString &trigger)
 
static TLegend * MakeUniqueLegend (Double_t x1, Double_t y1, Double_t x2, Double_t y2, TObjArray &unique, Int_t nSNN)
 
static TLegend * MakeUniqueLegend (TLegend *uleg, TObjArray &unique, Int_t nSNN)
 
static Float_t MarkerSize (Int_t style)
 
static const char * CentLimitName (Bool_t isMult, Float_t v)
 
static TPair * GetDataOther (TLegend *leg, TObjArray &unique, const TString &system, UShort_t sNN, const char **trigs, const char **exps, Option_t *errOpt="e5", Bool_t rebinned=false, Bool_t empirical=true, const Double_t *effs=0)
 

Detailed Description

Utility class

Deprecated:
Use new GSE based drawing

Definition at line 48 of file Drawer.C.

Member Function Documentation

static void Drawer::Add2Out ( TString out,
const char *  what 
)
inlinestatic

Append to ouput name

Parameters
outOutput name
whatWhat to append

Definition at line 1503 of file Drawer.C.

Referenced by DrawAll().

static void Drawer::Add2Out ( TString out,
UShort_t  sNN 
)
inlinestatic

Append to ouput name

Parameters
outOutput name
sNNWhat to append

Definition at line 1514 of file Drawer.C.

static void Drawer::AddSystematics ( THStack *  stack,
Double_t  sys 
)
inlinestatic

Add the systematics

Parameters
stackStack
sysSystematic error

Definition at line 1019 of file Drawer.C.

Referenced by GetUs().

static Int_t Drawer::AliceBlue ( )
inlinestatic

Get ALICE Blue

Returns
color number

Definition at line 202 of file Drawer.C.

Referenced by DrawAll(), GetDataOther(), MakeTitle(), MakeUniqueLegend(), and WithSysError().

static Int_t Drawer::AlicePurple ( )
inlinestatic

Get ALICE Purple

Returns
color number

Definition at line 220 of file Drawer.C.

static Int_t Drawer::AliceRed ( )
inlinestatic

Get ALICE Red

Returns
color number

Definition at line 211 of file Drawer.C.

static Int_t Drawer::AliceYellow ( )
inlinestatic

Get ALICE Yellow

Returns
color number

Definition at line 229 of file Drawer.C.

static Color_t Drawer::Brighten ( Color_t  origNum,
Int_t  nTimes = 2 
)
inlinestatic

Definition at line 233 of file Drawer.C.

Referenced by GetDataOther().

static const char* Drawer::CentLimitName ( Bool_t  isMult,
Float_t  v 
)
inlinestatic

Definition at line 1758 of file Drawer.C.

Referenced by GetDataOther().

static TGraphAsymmErrors* Drawer::Combine ( TMultiGraph *  mg)
inlinestatic

Combine some graphs together

Parameters
mg
Returns

Definition at line 772 of file Drawer.C.

Referenced by Export().

static void Drawer::Draw ( const TString system,
UShort_t  sNN,
const TString trigger,
const Option_t option = "e3",
Bool_t  rebinned = true,
Bool_t  empirical = true 
)
inlinestatic

Draw a result

Parameters
systemCollision system
sNNCollision energy [GeV]
triggerTrigger
optionDraw option
rebinnedIf to get rebinned result
empiricalIf to get empirical result

Definition at line 728 of file Drawer.C.

Referenced by Draw().

static void Drawer::DrawAll ( const char **  syss,
UShort_t sNNs,
const char **  trgS,
UShort_t  flags = 0x0 
)
inlinestatic

Draw all plots

Parameters
syssSystems to plot
sNNsEnergies to plot
trgSTriggers to plot
flagsSome flags

Definition at line 1527 of file Drawer.C.

Referenced by DrawAll().

static void Drawer::ErrorGraphs ( const TGraph g,
TGraph *&  low,
TGraph *&  up 
)
inlinestatic

Get error bands from vanilla graph

Parameters
g
low
up

Definition at line 337 of file Drawer.C.

Referenced by Add2Ratio(), GOverG(), ScaleBypp(), and SymScaleBypp().

static void Drawer::ErrorGraphs ( const TGraphErrors g,
TGraph *&  low,
TGraph *&  up 
)
inlinestatic

Get error bands

Definition at line 352 of file Drawer.C.

static void Drawer::ErrorGraphs ( const TGraphAsymmErrors g,
TGraph *&  low,
TGraph *&  up 
)
inlinestatic

Get error bands

Definition at line 366 of file Drawer.C.

static TH1* Drawer::ErrorHist ( const TH1 h,
Bool_t  aSide,
Double_t  factor = 0.076 
)
inlinestatic

Make a histogram of systematic errors with a fixed value

Parameters
h
aSide
factor
Returns

Definition at line 386 of file Drawer.C.

Referenced by Export().

static void Drawer::Export ( const TString system,
UShort_t  sNN,
const TString trigger,
Bool_t  rebinned = false,
Bool_t  empirical = true 
)
inlinestatic

Export a result

Parameters
systemCollision system
sNNCollision energy [GeV]
triggerTrigger
rebinnedIf to get rebinned result
empiricalIf to get empirical result

Definition at line 872 of file Drawer.C.

Referenced by Export().

static Int_t Drawer::FindCentBin ( Color_t  c)
inlinestatic

Definition at line 849 of file Drawer.C.

Referenced by Export().

static Double_t* Drawer::FixTriggerEff ( const TString sys,
UShort_t  sNN,
TString trigger 
)
inlinestatic

Definition at line 696 of file Drawer.C.

Referenced by Draw(), and Export().

static TPair* Drawer::GetDataOther ( TLegend *  leg,
TObjArray unique,
const TString system,
UShort_t  sNN,
const char **  trigs,
const char **  exps,
Option_t errOpt = "e5",
Bool_t  rebinned = false,
Bool_t  empirical = true,
const Double_t effs = 0 
)
inlinestatic

REturn a pair of a stack (data) and multi-graph (other)

Parameters
legPossible legend to fill
uniqueFor re-entrant calling to set unique names
systemCollision system
sNNCollision energy
trigsTriggers to draw
expsOther to get the data for
errOptError option
rebinnedRebinned or full
empiricalEmpirical correction or not
effsEfficiencies
Returns
Pair or null

Definition at line 1781 of file Drawer.C.

Referenced by Draw(), DrawAll(), GetUs(), and WithSysError().

static TMultiGraph* Drawer::GetOther ( UShort_t  sys,
UShort_t  sNN,
UShort_t  trg,
UShort_t  exps = 0xf,
Int_t  verbose = 3 
)
inlinestatic

Get other data

Parameters
sysSystem
sNNCenter of mass energy
trgTrigger type
expsExperiments
verboseBe verbose
Returns
Pointer to TMultiGraph or null

Definition at line 81 of file Drawer.C.

Referenced by Export(), GetDataOther(), GetMine(), GetOther(), pPbSym(), ScaleBypp(), and SymScaleBypp().

static TMultiGraph* Drawer::GetOther ( const TString system,
UShort_t  sNN,
const TString trigger,
Int_t  verbose = 0 
)
inlinestatic

Get Work-in-Progress data from other PWGs

Parameters
system
sNN
trigger
verboseBe verbose
Returns

Definition at line 130 of file Drawer.C.

static TMultiGraph* Drawer::GetOther ( const TString system,
UShort_t  sNN,
const TString trigger,
const TString exps,
Int_t  verbose = 0 
)
inlinestatic

Get other data

Parameters
systemSystem
sNNCenter of mass energy
triggerTrigger type
expsExperiments
verboseBe verbose
Returns
Pointer to TMultiGraph or null

Definition at line 148 of file Drawer.C.

static THStack* Drawer::GetStack ( TLegend *  legend,
const TString system,
UShort_t  sNN,
const TString trigger,
Bool_t  rebinned = true,
Bool_t  empirical = true,
Int_t  marker = 20 
)
inlinestatic

Get a result stack

Parameters
legendOptional legend to fill
systemCollision system
sNNCollision energy [GeV]
triggerTrigger
rebinnedIf to get rebinned result
empiricalIf to get empirical result
markerMarker style
Returns
Stack or null

Definition at line 554 of file Drawer.C.

Referenced by Export(), GetDataOther(), GetMine(), pPbSym(), ScaleBypp(), and SymScaleBypp().

static TGraph* Drawer::GOverG ( const TGraph num,
const TGraph den,
const TGraph dlow,
const TGraph dup,
Double_t  dx = 0 
)
inlinestatic

Calculate the ratio of two graphs

Parameters
numNumerator
denDenominator
dlowLow error
dupHigh error
dxChange in X x
Returns
newly allocated graph

Definition at line 467 of file Drawer.C.

Referenced by Add2Ratio(), CompareMuonRatio(), Ratio2Peripheral(), ScaleBypp(), and SymScaleBypp().

static TGraphErrors* Drawer::H2G ( TH1 h,
Double_t  xOff,
Int_t  sign = 1 
)
inlinestatic

Convert a histogram to a graph

Parameters
hHistogram
xOffX offset
signif negative, mirror around this point
Returns
Newly created graph

Definition at line 263 of file Drawer.C.

Referenced by Add2Ratio(), ScaleBypp(), and SymScaleBypp().

static TGraphAsymmErrors* Drawer::H2GA ( TH1 h,
TH1 sA,
TH1 sC 
)
inlinestatic

Convert a histogram to a graph

Parameters
hHistogram
sASystematics for positive X
sCSystematics for negative X
Returns
Newly created graph

Definition at line 296 of file Drawer.C.

Referenced by Export().

static TH1* Drawer::HOverG ( const TH1 h,
const TGraph g,
const TGraph l,
const TGraph u,
Bool_t  err = false 
)
inlinestatic

Calculate and return ratio of a histogram to a graph

Parameters
hHistogram
gGraph
lLower error band on g
uUpper error band on g
errCalculate errors
Returns
Ratio

Definition at line 421 of file Drawer.C.

Referenced by ScaleBypp(), and SymScaleBypp().

static void Drawer::LoadOther ( )
inlinestatic

Make sure we have loaded the RefData class

Definition at line 54 of file Drawer.C.

Referenced by GetOther().

static TCanvas* Drawer::MakeCanvas ( const TString system,
UShort_t  sNN,
const TString trigger,
Bool_t  rebinned = true,
Bool_t  empirical = true 
)
inlinestatic

Make a canvas

Parameters
systemSystem
sNNEnergy
triggerTrigger
rebinnedRebin
empiricalEmpirical
Returns

Definition at line 649 of file Drawer.C.

Referenced by Draw(), pPbSym(), ScaleBypp(), and SymScaleBypp().

static TLatex* Drawer::MakeTitle ( Double_t  x,
Double_t  y,
const TString system,
UShort_t  sNN,
const TString trigger 
)
inlinestatic

Definition at line 1684 of file Drawer.C.

Referenced by WithSysError().

static TLegend* Drawer::MakeUniqueLegend ( Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2,
TObjArray unique,
Int_t  nSNN 
)
inlinestatic

Definition at line 1706 of file Drawer.C.

Referenced by DrawAll(), and WithSysError().

static TLegend* Drawer::MakeUniqueLegend ( TLegend *  uleg,
TObjArray unique,
Int_t  nSNN 
)
inlinestatic

Definition at line 1725 of file Drawer.C.

static Float_t Drawer::MarkerSize ( Int_t  style)
inlinestatic

Get the marker size based on marker type

Parameters
styleStyle of marker
Returns
return relative size

Definition at line 1748 of file Drawer.C.

Referenced by GetDataOther().

static const char* Drawer::PlotPrefix ( )
inlinestatic

Definition at line 49 of file Drawer.C.

Referenced by DrawAll(), PrintCanvas(), ScaleBypp(), and SymScaleBypp().

static void Drawer::pPbSym ( const TString trigger,
const Option_t option = "e3",
Bool_t  rebinned = true,
Bool_t  empirical = true 
)
inlinestatic

Draw pPb symmetriced with Pbp

Parameters
trigger
option
rebinned
empirical

Definition at line 1164 of file Drawer.C.

Referenced by Draw().

static void Drawer::PrintCanvas ( TCanvas *  canvas,
const TString types 
)
inlinestatic

Print canvas

Parameters
canvascanvas
typesfile types

Definition at line 678 of file Drawer.C.

Referenced by Draw(), DrawAll(), pPbSym(), ScaleBypp(), and SymScaleBypp().

static void Drawer::ScaleBypp ( const TString system,
UShort_t  sNN,
UShort_t  ppsNN,
const TString trigger,
const TString ppTrigger,
Double_t  etaShift = 0,
Bool_t  rebinned = true,
Bool_t  empirical = true,
Bool_t  write = false 
)
inlinestatic

Draw a result scaled by pp result

Parameters
systemCollision system
sNNCollision energy [GeV]
ppsNNpp Collision energy [GeV]
triggerTrigger
ppTriggerpp Trigger
etaShiftPossible eta shift
rebinnedIf to get rebinned result
empiricalIf to get empirical result
writeWhether to write out

Definition at line 1220 of file Drawer.C.

Referenced by ScaleBypp().

static TString Drawer::SNNString ( const TString system,
UShort_t  sNN 
)
inlinestatic

Definition at line 244 of file Drawer.C.

Referenced by Export(), GetDataOther(), MakeCanvas(), MakeTitle(), pPbSym(), ScaleBypp(), and SymScaleBypp().

static THStack* Drawer::Symmetrice ( THStack *  s1,
THStack *  s2 
)
inlinestatic

Symmetrice between two stacks

Parameters
s1Stack
s2Stack
Returns
Return new stack with symmetriced histograms

Definition at line 1040 of file Drawer.C.

Referenced by GetMine(), pPbSym(), and SymScaleBypp().

static THStack* Drawer::Symmetrice ( THStack *  s)
inlinestatic

Symmetrice histograms in a stack

Parameters
sStack
Returns
Return new stack with symmetriced histograms

Definition at line 1104 of file Drawer.C.

static void Drawer::SymScaleBypp ( UShort_t  ppsNN,
const TString trigger,
const TString ppTrigger,
const Option_t option = "e2",
Bool_t  rebinned = true,
Bool_t  empirical = true,
Bool_t  write = false 
)
inlinestatic

Symmetrice distribution and scale by pp

Parameters
ppsNNPP center of mass energy
triggerNumerator trigger
ppTriggerPP trigger
optionDrawing option
rebinnedIf true, use rebinned data
empiricalIf true, use data corrected by empirical corr.
writeIf true, also write to ROOT file

Definition at line 1346 of file Drawer.C.

Referenced by ScaleBypp().


The documentation for this struct was generated from the following file: