AliPhysics  239578e (239578e)
Extract.C File Reference

Go to the source code of this file.

Functions

static Int_t PbPbBin (Double_t c1, Double_t c2)
 
static Color_t PbPbColor (Double_t c1, Double_t c2)
 
Double_t SysEval (Double_t x, Double_t sMin, Double_t sMax, Double_t xMax)
 
Double_t CSysEval (Double_t x, Double_t sMin, Double_t sMax)
 
Double_t EtaSysEval (Double_t x, Double_t sMin, Double_t sMax)
 
void MakeGSE (std::ostream &o, const TH1 *h, Double_t c1, Double_t c2, Bool_t reweigh, Double_t fac=1)
 
void FindLeastLargest (TObject *o, Double_t c1, Double_t c2)
 
void Extract (const char *filename="dndneta.pbpb502.20151124.root", const char *outname="TRACKLETS_5023_PbPb.input", Bool_t reweigh=false)
 

Function Documentation

Double_t CSysEval ( Double_t  x,
Double_t  sMin,
Double_t  sMax 
)

Evaluate a centrality dependent systematic uncertainty

Parameters
xCentrality
sMinValue at least centrality
sMaxValue at largest centrality
Returns
Value

Definition at line 76 of file Extract.C.

Referenced by MakeGSE().

Double_t EtaSysEval ( Double_t  x,
Double_t  sMin,
Double_t  sMax 
)

Evaluate eta dependent systematic uncertainty

Parameters
xeta
sMinValue at least eta
sMaxValue at largest eta
Returns
Value

Definition at line 89 of file Extract.C.

Referenced by MakeGSE().

void Extract ( const char *  filename = "dndneta.pbpb502.20151124.root",
const char *  outname = "TRACKLETS_5023_PbPb.input",
Bool_t  reweigh = false 
)

Extract ALICE PbPb @ 5.02TeV over |eta|<2

Parameters
filenameInput file name
outnameOutput file name
reweighWhether it is reweighed

Definition at line 189 of file Extract.C.

void FindLeastLargest ( TObject o,
Double_t  c1,
Double_t  c2 
)

Find largest and least value

Parameters
oObject to look at
c1Lower centrality bound
c2Upper centrality bount

Definition at line 165 of file Extract.C.

Referenced by Extract().

void MakeGSE ( std::ostream &  o,
const TH1 h,
Double_t  c1,
Double_t  c2,
Bool_t  reweigh,
Double_t  fac = 1 
)

Make a GraphSysErr object

Parameters
oOutput stream
hHistogram
c1Lower centrality bound
c2Upper centrality bound
reweighTrue if reweighed
facScaling factor

Definition at line 103 of file Extract.C.

Referenced by Extract().

static Int_t PbPbBin ( Double_t  c1,
Double_t  c2 
)
static

Find bin number correspondig to centrality range

Parameters
c1Least centrality
c2Largest centrality
Returns
Bin number

Definition at line 10 of file Extract.C.

Referenced by PbPbColor().

static Color_t PbPbColor ( Double_t  c1,
Double_t  c2 
)
static

Get the centrality color for PbPb

Parameters
c1Lower edge
c2Upper edge
Returns
Color

Definition at line 35 of file Extract.C.

Referenced by Extract().

Double_t SysEval ( Double_t  x,
Double_t  sMin,
Double_t  sMax,
Double_t  xMax 
)

Evaluate a systematic error

Parameters
xIndependent value
sMinValue at least X(=0)
sMaxValue at largest X
xMaxLargest X value
Returns
Value

Definition at line 63 of file Extract.C.

Referenced by CSysEval(), and EtaSysEval().