AliPhysics  cc1c0ba (cc1c0ba)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ComparepPb.C File Reference
#include <TMultiGraph.h>
#include <TString.h>
#include <TCanvas.h>
#include <TROOT.h>
#include <TGraphAsymmErrors.h>
#include <TGraphErrors.h>
#include <TError.h>
#include <TLegend.h>
#include <TLegendEntry.h>
#include <TH1.h>
#include <TAxis.h>
#include <THStack.h>
Include dependency graph for ComparepPb.C:

Go to the source code of this file.

Functions

Int_t Marker (Int_t sys, Int_t style)
 
TMultiGraph * GetOneFwd (UShort_t sys, const char *meth, Int_t style)
 
TMultiGraph * GetOneCen (UShort_t sys, const char *meth, Int_t style)
 
void FlipG (TGraphErrors *g)
 
void FlipG (TGraphAsymmErrors *g)
 
void FlipG (TGraph *g)
 
TMultiGraph * FlipMG (TMultiGraph *mg)
 
void RatioGG (TGraphErrors *num, TGraph *denom)
 
void RatioGG (TGraphAsymmErrors *num, TGraph *denom)
 
void RatioGG (TGraph *num, TGraph *denom)
 
TMultiGraph * RatioMG (TMultiGraph *num, TMultiGraph *denom)
 
void FixFrame (TObject *o, Bool_t hasFwd, Double_t fac=1.2, const char *ytitle="1/#it{N} d#it{N}_{ch}/d#it{#eta}")
 
const char * ExtractCent (const char *name)
 
void CompareOne (const char *meth, Int_t style)
 
void ComparepPb ()
 

Function Documentation

void CompareOne ( const char *  meth,
Int_t  style 
)

Compare one set of centrality graphs

Parameters
methThe method to use
styleThe base style

Definition at line 403 of file ComparepPb.C.

Referenced by ComparepPb().

void ComparepPb ( )

Definition at line 541 of file ComparepPb.C.

const char* ExtractCent ( const char *  name)

Extract the centrality string from a name

Parameters
nameThe name
Returns
Centrality string

Definition at line 383 of file ComparepPb.C.

Referenced by CompareOne().

void FixFrame ( TObject o,
Bool_t  hasFwd,
Double_t  fac = 1.2,
const char *  ytitle = "1/#it{N} d#it{N}_{ch}/d#it{#eta}" 
)

Fix the frame of a multi-graph

Parameters
oThe frame
hasFwdWhether we have forward data or not
facScale factor for y axis
ytitleTitle on y axis

Definition at line 338 of file ComparepPb.C.

Referenced by CompareOne().

void FlipG ( TGraphErrors g)

Flip a graph round \( \eta=0\)

Parameters
gGraph

Definition at line 136 of file ComparepPb.C.

Referenced by FlipG(), and FlipMG().

void FlipG ( TGraphAsymmErrors g)

Flip a graph round \( \eta=0\)

Parameters
gGraph

Definition at line 164 of file ComparepPb.C.

void FlipG ( TGraph g)

Flip a graph round \( \eta=0\)

Parameters
gGraph

Definition at line 196 of file ComparepPb.C.

TMultiGraph* FlipMG ( TMultiGraph *  mg)

Flip all graphs in a multi-graph

Parameters
mgMulitgraph
Returns
New multi-graph

Definition at line 215 of file ComparepPb.C.

Referenced by CompareOne().

TMultiGraph* GetOneCen ( UShort_t  sys,
const char *  meth,
Int_t  style 
)

Get the data for central

Parameters
sysSystem
methCentrality method
styleBase style
Returns
TMultiGraph or null

Definition at line 92 of file ComparepPb.C.

Referenced by CompareOne().

TMultiGraph* GetOneFwd ( UShort_t  sys,
const char *  meth,
Int_t  style 
)

Get the data for forward

Parameters
sysSystem
methCentrality method
styleBase style
Returns
TMultiGraph or null

Definition at line 39 of file ComparepPb.C.

Referenced by CompareOne().

Int_t Marker ( Int_t  sys,
Int_t  style 
)

Get the marker style

Parameters
sysCollision system
styleBase style
Returns
Marker style

Definition at line 23 of file ComparepPb.C.

Referenced by CompareOne(), GetOneCen(), and GetOneFwd().

void RatioGG ( TGraphErrors num,
TGraph denom 
)

Take the ratio of two graphs

Parameters
numNumerator - on return the ratio
denomDenominator

Definition at line 233 of file ComparepPb.C.

Referenced by RatioGG(), and RatioMG().

void RatioGG ( TGraphAsymmErrors num,
TGraph denom 
)

Take the ratio of two graphs

Parameters
numNumerator - on return the ratio
denomDenominator

Definition at line 267 of file ComparepPb.C.

void RatioGG ( TGraph num,
TGraph denom 
)

Take the ratio of two graphs

Parameters
numNumerator - on return the ratio
denomDenominator

Definition at line 293 of file ComparepPb.C.

TMultiGraph* RatioMG ( TMultiGraph *  num,
TMultiGraph *  denom 
)

Take the ratio of all graphs in two multi-graphs

Parameters
numMulti-graph of numerators
denomMulti-graph of denominators
Returns
new multi-graph of ratios

Definition at line 315 of file ComparepPb.C.

Referenced by CompareOne().