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

Classes

struct  MarkerUtil
 
struct  RangeParam
 

Public Types

enum  EFlags {
  kShowRatios = 0x00001, kShowLeftRight = 0x00002, kShowSysError = 0x00004, kShowRings = 0x00008,
  kCutEdges = 0x00010, kRemoveOuters = 0x00020, kUseFinalMC = 0x00040, kUseEmpirical = 0x00080,
  kForceMB = 0x00100, kMirror = 0x00200, kExport = 0x00400, kAddExec = 0x00800,
  kOldFormat = 0x01000, kVerbose = 0x02000, kHiRes = 0x04000, kExtraWhite = 0x08000,
  kLogo = 0x10000, kNoCentral = 0x20000, kNoLabels = 0x40000, kDefaultOptions = 0x1CE07
}
 
enum  EOutFormat {
  kPNG = 0x1, kPDF = 0x2, kROOT = 0x4, kScript = 0x8,
  kAllFormats = 0xF
}
 

Public Member Functions

 dNdetaDrawer ()
 
 dNdetaDrawer (const dNdetaDrawer &)
 
dNdetaDraweroperator= (const dNdetaDrawer &)
 
virtual ~dNdetaDrawer ()
 
void SetShowOthers (UInt_t others)
 
void SetRebin (UShort_t x)
 
void SetTitle (TString x)
 
void SetBase (TString x)
 
void SetForwardSysError (Double_t e=0)
 
void SetCentralSysError (Double_t e=0)
 
void SetFinalMC (const TString &file)
 
void SetEmpirical (const TString &file)
 
void SetDelta (Double_t delta)
 
void SetDelta (Double_t meanIpx, Double_t meanIpy)
 
Bool_t HasCent () const
 
Override settings from input
void SetSNN (UShort_t sNN)
 
void SetSys (UShort_t sys)
 
void SetVertexRange (Double_t vzMin, Double_t vzMax)
 
void SetCentralityRange (UShort_t centMin, UShort_t centMax)
 
void SetTrigger (UShort_t trig)
 
void SetTriggerEfficiency (Float_t eff)
 
Bool_t GetEmpirical (const TString &prx, Bool_t useCen, TObject *&fwdEmp, TObject *&cenEmp, TString &empName)
 
Main steering functions
void Run (const char *filename="forward_dndeta.root", const char *title="", const char *others="all", const char *options="default", const char *formats="all", UShort_t rebin=5, Float_t eff=0, UShort_t centMin=0, UShort_t centMax=0, Float_t vzMin=+999, Float_t vzMax=-999, const char *base="")
 
void Run (const char *filename, const char *title, UShort_t rebin, UShort_t others=0x7, UInt_t flags=kDefaultOptions, UShort_t sys=0, UShort_t sNN=0, UShort_t trg=0, Float_t eff=0, UShort_t centMin=0, UShort_t centMax=0, Float_t vzMin=+999, Float_t vzMax=-999, const char *base="", UShort_t formats=kAllFormats)
 
void FetchInformation (const TList *results)
 
TMultiGraph * FetchOthers (UShort_t centLow, UShort_t centHigh)
 
TObjArrayFetchTopResults (const TList *list, const TList *mcList, TObject *empCorr, const char *name, Double_t &max, Double_t &rmax, Double_t &amax, TObjArray &truths)
 
TH1FetchOne (const TList *list, const TList *mcList, TObject *empCorr, const char *name, const char *folderName, TMultiGraph *others, Int_t col, const char *txt, Double_t &max, Double_t &rmax, Double_t &amax, TH1 *&truth)
 
TH1FetchCentResults (const TList *list, const TList *mcList, TObject *empCorr, const char *name, TMultiGraph *thisOther, Int_t color, const char *centTxt, Double_t &max, Double_t &rmax, Double_t &amax, TH1 *&truth)
 
void CorrectFinalMC (TH1 *dndeta, const TList *mcList)
 
void CorrectEmpirical (TH1 *dndeta, TObject *empObj)
 
void CorrectTriggerEff (TH1 *dndeta)
 
void Plot (Double_t max, Double_t rmax, Double_t amax)
 
void PlotTitle (TVirtualPad *p, Double_t yd, Bool_t bottom=true)
 
void BuildLegend (THStack *stack, TMultiGraph *mg, Double_t x1, Double_t y1, Double_t x2, Double_t y2, Int_t forceCol=0)
 
const char * CentLimitName (Bool_t isMult, Float_t v)
 
void BuildCentLegend (Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 
void AttachExec (TVirtualPad *p, const char *plot, UShort_t id, Bool_t isBottom)
 
void PlotResults (Double_t max, Double_t yd, Double_t s)
 
void PlotRatios (Double_t max, Double_t y1, Double_t y2)
 
void PlotLeftRight (Double_t max, Double_t y1, Double_t y2)
 
Data utility functions
Color_t Brighten (Color_t origNum, Int_t nTimes=2) const
 
Int_t GetCentralityColor (Int_t bin) const
 
void SetAttributes (TH1 *h, Int_t color)
 
void SetAttributes (TGraph *g, Int_t color)
 
void ModifyTitle (TNamed *h, const char *centTxt)
 
TH1FetchHistogram (const TList *list, const char *name) const
 
Double_t AddHistogram (THStack *stack, TH1 *hist, Option_t *option="") const
 
Double_t AddHistogram (THStack *stack, TH1 *hist, TH1 *&sym, Option_t *option="") const
 
virtual void Rebin (TH1 *h) const
 
TH1Symmetrice (const TH1 *h) const
 
TH1Asymmetry (TH1 *h, Double_t &max)
 
TH1Graph2Hist (const TGraphAsymmErrors *g) const
 
Graphics utility functions
TAxisFindXAxis (TVirtualPad *p, const char *name)
 
void FixAxis (THStack *stack, Double_t yd, const char *ytitle, Int_t ynDiv=210, Bool_t force=true)
 
TH1Merge (const TH1 *cen, const TH1 *fwd, Double_t &xlow, Double_t &xhigh)
 
TF1 * FitMerged (TH1 *tmp, Double_t xlow, Double_t xhigh)
 
void MakeSysError (TH1 *tmp, TH1 *cen, TH1 *fwd, TF1 *fit)
 
void CorrectForward (TH1 *h) const
 
void CorrectCentral (TH1 *h) const
 
void Export (const char *basename)
 

Public Attributes

RangeParamfRangeParam
 
TObjectfEmpCorr
 
Options
UInt_t fOptions
 
UInt_t fFormats
 
UShort_t fShowOthers
 
Settings
UShort_t fRebin
 
Double_t fFwdSysErr
 
Double_t fCenSysErr
 
TString fTitle
 
TString fBase
 
TString fClusterScale
 
TString fFinalMC
 
TString fEmpirical
 
Double_t fDelta
 
Read (or set) information
TNamedfTrigString
 
TNamedfNormString
 
TNamedfSNNString
 
TNamedfSysString
 
TAxisfVtxAxis
 
TAxisfCentAxis
 
TObjectfCentMeth
 
Float_t fTriggerEff
 
Bool_t fExtTriggerEff
 
UShort_t fCentMin
 
UShort_t fCentMax
 
UInt_t fCentSeen
 
Resulting plots
THStack * fResults
 
THStack * fRatios
 
THStack * fLeftRight
 
TMultiGraph * fOthers
 
TH1fTriggers
 
TH1fTruth
 

Static Public Attributes

static const Float_t kRightMargin = 0.01
 
static const Int_t kFont = 42
 
static const Int_t kAliceBlue = TColor::GetColor(40, 58, 68)
 
static const Int_t kAliceRed = TColor::GetColor(226, 0, 26)
 
static const Int_t kAlicePurple = TColor::GetColor(202, 71, 67)
 
static const Int_t kAliceYellow = TColor::GetColor(238, 125, 17)
 
static const Int_t kSysErrColor = SYSERR_COLOR
 

Ratio utility functions

Double_t RatioMax (TH1 *h) const
 
TH1Ratio (const TObject *o1, const TObject *o2, Double_t &max) const
 
TH1RatioHG (const TH1 *h, const TGraph *g) const
 
TH1RatioHH (const TH1 *h1, const TH1 *h2) const
 
TH1RatioGG (const TGraphAsymmErrors *g1, const TGraphAsymmErrors *g2) const
 
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)
 

Detailed Description

Class to draw dN/deta results

Deprecated:
Use new GSE based drawing

Definition at line 60 of file DrawdNdeta.C.

Member Enumeration Documentation

Enumerator
kShowRatios 
kShowLeftRight 
kShowSysError 
kShowRings 
kCutEdges 
kRemoveOuters 
kUseFinalMC 
kUseEmpirical 
kForceMB 
kMirror 
kExport 
kAddExec 
kOldFormat 
kVerbose 
kHiRes 
kExtraWhite 
kLogo 
kNoCentral 
kNoLabels 
kDefaultOptions 

Definition at line 62 of file DrawdNdeta.C.

Enumerator
kPNG 
kPDF 
kROOT 
kScript 
kAllFormats 

Definition at line 84 of file DrawdNdeta.C.

Constructor & Destructor Documentation

dNdetaDrawer::dNdetaDrawer ( )
inline

Constructor

Definition at line 185 of file DrawdNdeta.C.

dNdetaDrawer::dNdetaDrawer ( const dNdetaDrawer )
inline

Cpoy constructor

Definition at line 236 of file DrawdNdeta.C.

virtual dNdetaDrawer::~dNdetaDrawer ( )
inlinevirtual

Destructor

Definition at line 249 of file DrawdNdeta.C.

Member Function Documentation

Double_t dNdetaDrawer::AddHistogram ( THStack *  stack,
TH1 hist,
Option_t option = "" 
) const
inline

Add a histogram to the stack after possibly rebinning it

Parameters
stackStack to add to
histhistogram
optionDraw options
Returns
Maximum of histogram

Definition at line 2327 of file DrawdNdeta.C.

Referenced by FetchCentResults().

Double_t dNdetaDrawer::AddHistogram ( THStack *  stack,
TH1 hist,
TH1 *&  sym,
Option_t option = "" 
) const
inline

Add a histogram to the stack after possibly rebinning it

Parameters
stackStack to add to
histhistogram
optionDraw options
symOn return, the data symmetriced (added to stack)
Returns
Maximum of histogram

Definition at line 2349 of file DrawdNdeta.C.

TH1* dNdetaDrawer::Asymmetry ( TH1 h,
Double_t max 
)
inline

Calculate the left-right asymmetry of input histogram

Parameters
hInput histogram
maxOn return, the maximum distance from 1 of the histogram
Returns
Asymmetry

Definition at line 2490 of file DrawdNdeta.C.

Referenced by FetchCentResults().

void dNdetaDrawer::AttachExec ( TVirtualPad *  p,
const char *  plot,
UShort_t  id,
Bool_t  isBottom 
)
inline

Definition at line 1768 of file DrawdNdeta.C.

Referenced by PlotLeftRight(), PlotRatios(), and PlotResults().

Color_t dNdetaDrawer::Brighten ( Color_t  origNum,
Int_t  nTimes = 2 
) const
inline

Definition at line 2190 of file DrawdNdeta.C.

void dNdetaDrawer::BuildCentLegend ( Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2 
)
inline

Build centrality legend

Parameters
x1Lower X coordinate in the range [0,1]
y1Lower Y coordinate in the range [0,1]
x2Upper X coordinate in the range [0,1]
y2Upper Y coordinate in the range [0,1]

Definition at line 1729 of file DrawdNdeta.C.

Referenced by PlotResults().

void dNdetaDrawer::BuildLegend ( THStack *  stack,
TMultiGraph *  mg,
Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2,
Int_t  forceCol = 0 
)
inline

Build main legend

Parameters
stackStack to include
mg(optional) Multi graph to include
x1Lower X coordinate in the range [0,1]
y1Lower Y coordinate in the range [0,1]
x2Upper X coordinate in the range [0,1]
y2Upper Y coordinate in the range [0,1]
forceColIf non-zero, force this many columns

Definition at line 1605 of file DrawdNdeta.C.

Referenced by PlotLeftRight(), PlotRatios(), and PlotResults().

const char* dNdetaDrawer::CentLimitName ( Bool_t  isMult,
Float_t  v 
)
inline

Definition at line 1713 of file DrawdNdeta.C.

Referenced by BuildCentLegend().

void dNdetaDrawer::CorrectCentral ( TH1 h) const
inline

Definition at line 3085 of file DrawdNdeta.C.

Referenced by Run().

void dNdetaDrawer::CorrectEmpirical ( TH1 dndeta,
TObject empObj 
)
inline

Definition at line 1454 of file DrawdNdeta.C.

Referenced by FetchCentResults().

void dNdetaDrawer::CorrectFinalMC ( TH1 dndeta,
const TList mcList 
)
inline

Definition at line 1438 of file DrawdNdeta.C.

Referenced by FetchCentResults().

void dNdetaDrawer::CorrectForward ( TH1 h) const
inline

Definition at line 3073 of file DrawdNdeta.C.

Referenced by Run().

void dNdetaDrawer::CorrectTriggerEff ( TH1 dndeta)
inline

Definition at line 1483 of file DrawdNdeta.C.

Referenced by FetchCentResults().

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

Get error bands from vanilla graph

Parameters
g
low
up

Definition at line 2602 of file DrawdNdeta.C.

Referenced by RatioHG().

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

Get error bands

Definition at line 2617 of file DrawdNdeta.C.

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

Get error bands

Definition at line 2631 of file DrawdNdeta.C.

void dNdetaDrawer::Export ( const char *  basename)
inline

Definition at line 3105 of file DrawdNdeta.C.

Referenced by Plot().

TH1* dNdetaDrawer::FetchCentResults ( const TList list,
const TList mcList,
TObject empCorr,
const char *  name,
TMultiGraph *  thisOther,
Int_t  color,
const char *  centTxt,
Double_t max,
Double_t rmax,
Double_t amax,
TH1 *&  truth 
)
inline

Fetch results for a particular centrality bin

Parameters
listList
mcListList of MC results
empCorrEmperical correction if any
nameName
thisOtherOther graphs
colorColor
centTxtCentrality text
maxOn return, data maximum
rmaxOn return, ratio maximum
amaxOn return, left-right maximum
truthMC truth to compare to or possibly update
Returns
Histogram of results

Definition at line 1317 of file DrawdNdeta.C.

Referenced by FetchOne().

TH1* dNdetaDrawer::FetchHistogram ( const TList list,
const char *  name 
) const
inline

Get a result from the passed list

Parameters
listList to search
nameObject name to search for
Returns
Histogram

Definition at line 2303 of file DrawdNdeta.C.

Referenced by CorrectFinalMC(), FetchCentResults(), and Run().

void dNdetaDrawer::FetchInformation ( const TList results)
inline

Fetch the information on the run from the results list

Parameters
resultsResults list

Definition at line 950 of file DrawdNdeta.C.

Referenced by Run().

TH1* dNdetaDrawer::FetchOne ( const TList list,
const TList mcList,
TObject empCorr,
const char *  name,
const char *  folderName,
TMultiGraph *  others,
Int_t  col,
const char *  txt,
Double_t max,
Double_t rmax,
Double_t amax,
TH1 *&  truth 
)
inline

Steer retrieval one centrality bin results

Parameters
listInput list
mcListPossible MC list
empCorrPossible empirical correction
nameName of bing
folderNameWhat sub-folder to get
othersWhat else to plot
colColor
txtCentrality text
maxCurrent maximum, on return new maximum
rmaxCurrent range maximum, on return new maximum
amaxCurrent A maximum, on return new maximum
truthPossible MC truth histogram
Returns

Definition at line 1251 of file DrawdNdeta.C.

Referenced by FetchTopResults().

TMultiGraph* dNdetaDrawer::FetchOthers ( UShort_t  centLow,
UShort_t  centHigh 
)
inline

Definition at line 1083 of file DrawdNdeta.C.

Referenced by FetchTopResults().

TObjArray* dNdetaDrawer::FetchTopResults ( const TList list,
const TList mcList,
TObject empCorr,
const char *  name,
Double_t max,
Double_t rmax,
Double_t amax,
TObjArray truths 
)
inline

Get the results from the top-level list (MC, SPD, FMD)

Parameters
listList
mcListList of histograms from MC
empCorrEmperical correction if any
namename
maxOn return, maximum of data
rmaxOn return, maximum of ratios
amaxOn return, maximum of left-right comparisons
truthsList of MC truths to compare to.
Returns
Array of results

Definition at line 1172 of file DrawdNdeta.C.

Referenced by Run().

TAxis* dNdetaDrawer::FindXAxis ( TVirtualPad *  p,
const char *  name 
)
inline

Find an X axis in a pad

Parameters
pPad
nameHistogram to find axis for
Returns
Found axis or null

Definition at line 2868 of file DrawdNdeta.C.

Referenced by AttachExec().

TF1* dNdetaDrawer::FitMerged ( TH1 tmp,
Double_t  xlow,
Double_t  xhigh 
)
inline

Fit \(g(x;A_1,A_2,\sigma_1,\sigma_2)\) to histogram data

Parameters
tmpHistogram
xlowLower x bound
xhighUpper x bound
Returns
Fitted function

Definition at line 3009 of file DrawdNdeta.C.

void dNdetaDrawer::FixAxis ( THStack *  stack,
Double_t  yd,
const char *  ytitle,
Int_t  ynDiv = 210,
Bool_t  force = true 
)
inline

Fix the apperance of the axis in a stack

Parameters
stackstack of histogram
ydHow the canvas is cut
ytitleY axis title
ynDivDivisions on Y axis
forceWhether to draw the stack first or not

Definition at line 2898 of file DrawdNdeta.C.

Referenced by PlotLeftRight(), PlotRatios(), and PlotResults().

Int_t dNdetaDrawer::GetCentralityColor ( Int_t  bin) const
inline

Get the color for a centrality bin

Parameters
binCentrality bin
Returns
Color

Definition at line 2213 of file DrawdNdeta.C.

Referenced by BuildCentLegend(), and FetchTopResults().

Bool_t dNdetaDrawer::GetEmpirical ( const TString prx,
Bool_t  useCen,
TObject *&  fwdEmp,
TObject *&  cenEmp,
TString empName 
)
inline

Try to get empirical correction from a path or prefix path

Parameters
prxPath or prefix
useCenWhether to use centrality
fwdEmpOn return, pounter to the objects or null
cenEmpOn return, pounter to the objects or null
empNameOn return, the full path
Returns
true on success

Definition at line 438 of file DrawdNdeta.C.

Referenced by Run().

TH1* dNdetaDrawer::Graph2Hist ( const TGraphAsymmErrors g) const
inline

Transform a graph into a histogram

Parameters
gGraph
Returns
Histogram

Definition at line 2539 of file DrawdNdeta.C.

Bool_t dNdetaDrawer::HasCent ( ) const
inline

Check if we have centrality dependent information, and we're not forcing to use minimum bias

Returns
True if we should do centrality dependent ploting

Definition at line 3257 of file DrawdNdeta.C.

Referenced by BuildCentLegend(), BuildLegend(), Export(), FetchCentResults(), FetchInformation(), FetchTopResults(), Plot(), PlotLeftRight(), and PlotResults().

void dNdetaDrawer::MakeSysError ( TH1 tmp,
TH1 cen,
TH1 fwd,
TF1 *  fit 
)
inline

Make band of systematic errors

Parameters
tmpHistogram
cenCentral
fwdForward
fitFit

Definition at line 3040 of file DrawdNdeta.C.

Referenced by Run().

TH1* dNdetaDrawer::Merge ( const TH1 cen,
const TH1 fwd,
Double_t xlow,
Double_t xhigh 
)
inline

Merge two histograms into one

Parameters
cenCentral part
fwdForward part
xlowOn return, lower eta bound
xhighOn return, upper eta bound
Returns
Newly allocated histogram or null

Definition at line 2960 of file DrawdNdeta.C.

Referenced by Run().

void dNdetaDrawer::ModifyTitle ( TNamed h,
const char *  centTxt 
)
inline

Modify the title

Definition at line 2273 of file DrawdNdeta.C.

Referenced by FetchCentResults().

dNdetaDrawer& dNdetaDrawer::operator= ( const dNdetaDrawer )
inline

Assignment operator

Returns
Reference to this object

Definition at line 243 of file DrawdNdeta.C.

void dNdetaDrawer::Plot ( Double_t  max,
Double_t  rmax,
Double_t  amax 
)
inline

Plot the results

Parameters
maxMax value
rmaxMaximum diviation from 1 of ratios
amaxMaximum diviation from 1 of asymmetries

Definition at line 1499 of file DrawdNdeta.C.

Referenced by Run().

void dNdetaDrawer::PlotLeftRight ( Double_t  max,
Double_t  y1,
Double_t  y2 
)
inline

Plot the asymmetries

Parameters
maxMaximum diviation from 1
y1Lower y coordinate of pad
y2Upper y coordinate of pad

Definition at line 2128 of file DrawdNdeta.C.

Referenced by Plot().

void dNdetaDrawer::PlotRatios ( Double_t  max,
Double_t  y1,
Double_t  y2 
)
inline

Plot the ratios

Parameters
maxMaximum diviation from 1
y1Lower y coordinate of pad
y2Upper y coordinate of pad

Definition at line 2066 of file DrawdNdeta.C.

Referenced by Plot().

void dNdetaDrawer::PlotResults ( Double_t  max,
Double_t  yd,
Double_t  s 
)
inline

Plot the results

Parameters
maxMaximum
ydBottom position of pad
sScaling

Definition at line 1797 of file DrawdNdeta.C.

Referenced by Plot().

void dNdetaDrawer::PlotTitle ( TVirtualPad *  p,
Double_t  yd,
Bool_t  bottom = true 
)
inline

Plot the title on a pad

Parameters
pPad to draw in
ydDivision height
bottomBottom or top of pad

Definition at line 1577 of file DrawdNdeta.C.

Referenced by PlotLeftRight(), PlotRatios(), and PlotResults().

TH1* dNdetaDrawer::Ratio ( const TObject o1,
const TObject o2,
Double_t max 
) const
inline

Make the ratio of h1 to h2

Parameters
o1First object (numerator)
o2Second object (denominator)
maxMaximum diviation from 1
Returns
o1 / o2

Definition at line 2653 of file DrawdNdeta.C.

Referenced by FetchCentResults().

TH1* dNdetaDrawer::RatioGG ( const TGraphAsymmErrors g1,
const TGraphAsymmErrors g2 
) const
inline

Calculate the ratio of two graphs - g1 / g2

Parameters
g1Numerator
g2Denominator
Returns
g1 / g2 in a histogram

Definition at line 2815 of file DrawdNdeta.C.

Referenced by Ratio().

TH1* dNdetaDrawer::RatioHG ( const TH1 h,
const TGraph g 
) const
inline

Compute the ratio of h to g. g is evaluated at the bin centers of h

Parameters
hNumerator
gDivisor
Returns
h/g

Definition at line 2729 of file DrawdNdeta.C.

Referenced by Ratio().

TH1* dNdetaDrawer::RatioHH ( const TH1 h1,
const TH1 h2 
) const
inline

Make the ratio of h1 to h2

Parameters
h1First histogram (numerator)
h2Second histogram (denominator)
Returns
h1 / h2

Definition at line 2783 of file DrawdNdeta.C.

Referenced by Ratio().

Double_t dNdetaDrawer::RatioMax ( TH1 h) const
inline

Get the maximum diviation from 1 in the passed ratio

Parameters
hRatio histogram
Returns
Max diviation from 1

Definition at line 2582 of file DrawdNdeta.C.

Referenced by Asymmetry(), and Ratio().

virtual void dNdetaDrawer::Rebin ( TH1 h) const
inlinevirtual

Rebin a histogram

Parameters
hHistogram to rebin

Definition at line 2374 of file DrawdNdeta.C.

Referenced by AddHistogram().

void dNdetaDrawer::Run ( const char *  filename = "forward_dndeta.root",
const char *  title = "",
const char *  others = "all",
const char *  options = "default",
const char *  formats = "all",
UShort_t  rebin = 5,
Float_t  eff = 0,
UShort_t  centMin = 0,
UShort_t  centMax = 0,
Float_t  vzMin = +999,
Float_t  vzMax = -999,
const char *  base = "" 
)
inline

Definition at line 519 of file DrawdNdeta.C.

Referenced by Draw(), and DrawdNdeta().

void dNdetaDrawer::Run ( const char *  filename,
const char *  title,
UShort_t  rebin,
UShort_t  others = 0x7,
UInt_t  flags = kDefaultOptions,
UShort_t  sys = 0,
UShort_t  sNN = 0,
UShort_t  trg = 0,
Float_t  eff = 0,
UShort_t  centMin = 0,
UShort_t  centMax = 0,
Float_t  vzMin = +999,
Float_t  vzMax = -999,
const char *  base = "",
UShort_t  formats = kAllFormats 
)
inline

Run the job

Parameters
filenameInput file name
titleTitle to put on plot
rebinRebinning factor
othersWhich other to draw
flagsFlags for the drawing
sys(optional) Collision system
sNN(optional) Collision energy
trg(optional) Trigger
eff(optional) Efficiency
centMin(optional) Least centrality
centMax(optional) Largest centrality
vzMin(optional) Least \( IP_z\)
vzMax(optional) Largest \( IP_z\)
baseBasename for output files
formatsFormats to export to

Definition at line 619 of file DrawdNdeta.C.

void dNdetaDrawer::SetAttributes ( TH1 h,
Int_t  color 
)
inline

Set attributed on a histogram

Parameters
hHistogram
colorColor

Definition at line 2245 of file DrawdNdeta.C.

Referenced by FetchCentResults().

void dNdetaDrawer::SetAttributes ( TGraph g,
Int_t  color 
)
inline

Set attributed on a graph

Parameters
gGraph
colorColor

Definition at line 2260 of file DrawdNdeta.C.

void dNdetaDrawer::SetBase ( TString  x)
inline

Set the base name of the output files

Parameters
xBase name

Definition at line 288 of file DrawdNdeta.C.

Referenced by Run().

void dNdetaDrawer::SetCentralityRange ( UShort_t  centMin,
UShort_t  centMax 
)
inline

Set the centrality range in centimeters

Parameters
centMinMin \( v_z\)
centMaxMax \( v_z\)

Definition at line 395 of file DrawdNdeta.C.

Referenced by Run().

void dNdetaDrawer::SetCentralSysError ( Double_t  e = 0)
inline

Set the systematic error in the forward region

Parameters
eSystematic error in the forward region

Definition at line 302 of file DrawdNdeta.C.

void dNdetaDrawer::SetDelta ( Double_t  delta)
inline

Set shift of IP in (x,y) wrt to reference (x,y)=(0.005,0.184) position. Thie shift must be given in milimeters.

Parameters
deltaShift wrt to refernce in milimeter

Definition at line 325 of file DrawdNdeta.C.

Referenced by DrawdNdeta(), and Run().

void dNdetaDrawer::SetDelta ( Double_t  meanIpx,
Double_t  meanIpy 
)
inline

Definition at line 326 of file DrawdNdeta.C.

void dNdetaDrawer::SetEmpirical ( const TString file)
inline

Set the file that contains the empirical correction. This is needed when the secondary maps was generated with an in-accurate geometry, and when we're analysing data at nominal interaction points

Parameters
fileFilename

Definition at line 318 of file DrawdNdeta.C.

Referenced by Draw(), DrawdNdeta(), and Run().

void dNdetaDrawer::SetFinalMC ( const TString file)
inline

Set the 'Final MC' correction file. This is needed if the secondary maps where produced using the old code

Parameters
fileFilename

Definition at line 309 of file DrawdNdeta.C.

Referenced by Run().

void dNdetaDrawer::SetForwardSysError ( Double_t  e = 0)
inline

Set the systematic error in the forward region

Parameters
eSystematic error in the forward region

Definition at line 295 of file DrawdNdeta.C.

Referenced by Run().

void dNdetaDrawer::SetRebin ( UShort_t  x)
inline

Set the rebinning factor

Parameters
xRebinning factor (must be a divisor in the number of bins)

Definition at line 274 of file DrawdNdeta.C.

Referenced by Run().

void dNdetaDrawer::SetShowOthers ( UInt_t  others)
inline

Definition at line 268 of file DrawdNdeta.C.

Referenced by Run().

void dNdetaDrawer::SetSNN ( UShort_t  sNN)
inline

Override setting from file

Parameters
sNNCenter of mass energy per nucleon pair (GeV)

Definition at line 353 of file DrawdNdeta.C.

Referenced by Run().

void dNdetaDrawer::SetSys ( UShort_t  sys)
inline

Set the collision system

  • 1: pp
  • 2: PbPb
Parameters
syscollision system

Definition at line 366 of file DrawdNdeta.C.

Referenced by Run().

void dNdetaDrawer::SetTitle ( TString  x)
inline

Set the title of the plot

Parameters
xTitle

Definition at line 281 of file DrawdNdeta.C.

Referenced by Run().

void dNdetaDrawer::SetTrigger ( UShort_t  trig)
inline

Set the trigger mask (overrides what's in the file)

Parameters
trigTrigger mask (0x1: INEL, 0x2: INEL>0, 0x4: NSD)

Definition at line 406 of file DrawdNdeta.C.

Referenced by Run().

void dNdetaDrawer::SetTriggerEfficiency ( Float_t  eff)
inline

Set the trigger efficiency - if set, then scale result histograms by this factor

Parameters
eff\(\varepsilon_{T}\)

Definition at line 422 of file DrawdNdeta.C.

Referenced by FetchInformation(), and Run().

void dNdetaDrawer::SetVertexRange ( Double_t  vzMin,
Double_t  vzMax 
)
inline

Set the vertex range in centimeters

Parameters
vzMinMin \( v_z\)
vzMaxMax \( v_z\)

Definition at line 382 of file DrawdNdeta.C.

Referenced by Run().

TH1* dNdetaDrawer::Symmetrice ( const TH1 h) const
inline

Make an extension of h to make it symmetric about 0

Parameters
hHistogram to symmertrice
Returns
Symmetric extension of h

Definition at line 2445 of file DrawdNdeta.C.

Referenced by AddHistogram(), and Run().

Member Data Documentation

TString dNdetaDrawer::fBase

Definition at line 3285 of file DrawdNdeta.C.

Referenced by Export(), Plot(), and SetBase().

Double_t dNdetaDrawer::fCenSysErr

Definition at line 3283 of file DrawdNdeta.C.

Referenced by MakeSysError(), Run(), and SetCentralSysError().

TAxis* dNdetaDrawer::fCentAxis
UShort_t dNdetaDrawer::fCentMax

Definition at line 3305 of file DrawdNdeta.C.

Referenced by Export(), FetchInformation(), and SetCentralityRange().

TObject* dNdetaDrawer::fCentMeth
UShort_t dNdetaDrawer::fCentMin

Definition at line 3304 of file DrawdNdeta.C.

Referenced by Export(), FetchInformation(), and SetCentralityRange().

UInt_t dNdetaDrawer::fCentSeen

Definition at line 3306 of file DrawdNdeta.C.

Referenced by BuildCentLegend(), FetchTopResults(), and Run().

TString dNdetaDrawer::fClusterScale

Definition at line 3286 of file DrawdNdeta.C.

Referenced by CorrectCentral(), and Run().

Double_t dNdetaDrawer::fDelta

Definition at line 3289 of file DrawdNdeta.C.

Referenced by GetEmpirical(), PlotResults(), Run(), and SetDelta().

TObject* dNdetaDrawer::fEmpCorr

Definition at line 3320 of file DrawdNdeta.C.

TString dNdetaDrawer::fEmpirical

Definition at line 3288 of file DrawdNdeta.C.

Referenced by Export(), PlotResults(), Run(), and SetEmpirical().

Bool_t dNdetaDrawer::fExtTriggerEff

Definition at line 3303 of file DrawdNdeta.C.

Referenced by CorrectTriggerEff(), FetchInformation(), and SetTriggerEfficiency().

TString dNdetaDrawer::fFinalMC

Definition at line 3287 of file DrawdNdeta.C.

Referenced by PlotResults(), Run(), and SetFinalMC().

UInt_t dNdetaDrawer::fFormats

Definition at line 3274 of file DrawdNdeta.C.

Referenced by Export(), Plot(), and Run().

Double_t dNdetaDrawer::fFwdSysErr
THStack* dNdetaDrawer::fLeftRight

Definition at line 3314 of file DrawdNdeta.C.

Referenced by FetchCentResults(), PlotLeftRight(), and Run().

TNamed* dNdetaDrawer::fNormString

Definition at line 3296 of file DrawdNdeta.C.

Referenced by FetchInformation().

TMultiGraph* dNdetaDrawer::fOthers

Definition at line 3315 of file DrawdNdeta.C.

Referenced by FetchCentResults(), PlotResults(), Run(), and ~dNdetaDrawer().

RangeParam* dNdetaDrawer::fRangeParam

Definition at line 3319 of file DrawdNdeta.C.

Referenced by AttachExec(), dNdetaDrawer(), and ~dNdetaDrawer().

THStack* dNdetaDrawer::fRatios

Definition at line 3313 of file DrawdNdeta.C.

Referenced by FetchCentResults(), PlotRatios(), Run(), and ~dNdetaDrawer().

UShort_t dNdetaDrawer::fRebin

Definition at line 3281 of file DrawdNdeta.C.

Referenced by Export(), Rebin(), Run(), and SetRebin().

THStack* dNdetaDrawer::fResults
UShort_t dNdetaDrawer::fShowOthers

Definition at line 3275 of file DrawdNdeta.C.

Referenced by Export(), FetchOthers(), PlotResults(), Run(), and SetShowOthers().

TNamed* dNdetaDrawer::fSNNString
TNamed* dNdetaDrawer::fSysString
TString dNdetaDrawer::fTitle

Definition at line 3284 of file DrawdNdeta.C.

Referenced by Export(), FetchInformation(), PlotTitle(), Run(), and SetTitle().

Float_t dNdetaDrawer::fTriggerEff
TH1* dNdetaDrawer::fTriggers

Definition at line 3316 of file DrawdNdeta.C.

Referenced by Plot(), PlotResults(), Run(), and ~dNdetaDrawer().

TNamed* dNdetaDrawer::fTrigString
TH1* dNdetaDrawer::fTruth

Definition at line 3317 of file DrawdNdeta.C.

TAxis* dNdetaDrawer::fVtxAxis
const Int_t dNdetaDrawer::kAliceBlue = TColor::GetColor(40, 58, 68)
static

Definition at line 3324 of file DrawdNdeta.C.

Referenced by BuildCentLegend(), BuildLegend(), and PlotResults().

const Int_t dNdetaDrawer::kAlicePurple = TColor::GetColor(202, 71, 67)
static

Definition at line 3326 of file DrawdNdeta.C.

Referenced by PlotTitle().

const Int_t dNdetaDrawer::kAliceRed = TColor::GetColor(226, 0, 26)
static

Definition at line 3325 of file DrawdNdeta.C.

Referenced by PlotResults().

const Int_t dNdetaDrawer::kAliceYellow = TColor::GetColor(238, 125, 17)
static

Definition at line 3327 of file DrawdNdeta.C.

const Int_t dNdetaDrawer::kFont = 42
static

Definition at line 3323 of file DrawdNdeta.C.

Referenced by BuildCentLegend(), BuildLegend(), Plot(), PlotResults(), and PlotTitle().

const Float_t dNdetaDrawer::kRightMargin = 0.01
static

Definition at line 3322 of file DrawdNdeta.C.

Referenced by PlotLeftRight(), PlotRatios(), PlotResults(), and PlotTitle().

const Int_t dNdetaDrawer::kSysErrColor = SYSERR_COLOR
static

Definition at line 3328 of file DrawdNdeta.C.

Referenced by BuildLegend(), dNdetaDrawer(), and MakeSysError().


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