![]() |
AliPhysics
b81c3d2 (b81c3d2)
|
Public Types | |
enum | { kRealComb = 0x00001, kSimComb = 0x00002, kdNdetas = 0x00004, kGeneral = 0x00008, kParameters = 0x00010, kSimInfo = 0x00020, kSpecies = 0x00040, kDeltas = 0x00080, kBackgrounds = 0x00100, kAlphas = 0x00200, kClosure = 0x00400, kPDF = 0x01000, kPause = 0x02000, kLandscape = 0x04000, kFixedScale = 0x08000, kDynCentScale = 0x10000, kAltMarker = 0x20000, kDefault = 0x133ff } |
enum | ECombinatoricsScaleMode { kFixed, kPerCent, kPerEtaCent } |
enum | { kTopBackground = kAzure-8 } |
![]() | |
typedef TList | Container |
Public Member Functions | |
AliTrackletdNdetaPost () | |
TH1 * | FindDelta (Container *ress, const char *sub, Bool_t scaled=false) |
TH1 * | FindSub (Container *ress, const char *sub, const char *name) |
void | DrawSpecies (Container *mcList) |
void | DrawDeltas (Container *realList, Container *simList) |
Double_t | DrawBackground (TVirtualPad *c, Int_t pad, Container *ress, const char *name, const char *pretty) |
void | DrawBackground (Container *realList, Container *simList) |
TH2 * | CutAlpha (TH2 *alpha) |
void | DrawAlpha (TVirtualPad *c, Int_t pad, Container *ress, const char *name, const char *pretty) |
void | DrawAlpha (Container *realList, Container *simList) |
void | DrawSim (Container *simList) |
Canvas functions | |
void | ClearCanvas () |
void | CreateCanvas (const TString &outputName) |
void | CloseCanvas () |
void | PrintCanvas (const TString &title, Float_t size=.7) |
TLegend * | DrawInPad (TVirtualPad *c, Int_t pad, TObject *o, Option_t *opt) |
Some utilities | |
TFile * | OpenFile (const char *filename) |
TH1 * | SetAttr (TH1 *h, Color_t color, Style_t marker=20, Double_t size=1., Style_t fill=0, Style_t line=1, Width_t width=1) |
Drawing parameters | |
void | DrawParam (const char *name, Double_t &y, const char *val) |
void | DrawParam (const char *name, Double_t &y, Double_t val) |
void | DrawParam (const char *name, Double_t &y, Int_t val) |
void | DrawParam (const char *name, Double_t &y, Bool_t val) |
void | DrawParams (Container *pars, const char *title, Bool_t comb) |
void | DrawParams (Container *realSums, Bool_t realComb, Container *simSums, Bool_t simComb) |
General information | |
THStack * | Make2Stack (const char *name, const char *title, Container *realList, Container *simList, Option_t *dataOpt="", Option_t *simOpt="") |
void | DrawClusters (Int_t pad, const char *name, Container *realList, Container *simList) |
void | DrawGeneral (Container *realList, Container *simList) |
dN/deta stuff | |
const char * | ObsTitle () const |
Double_t | GetDeltaScale (Container *c, Double_t &e) const |
Style_t | MS (Int_t what, Bool_t sim, Bool_t alt) const |
TH1 * | GetDeltaScaleDist (Container *c) const |
TH1 * | GetDeltaIntDist (Container *c) const |
void | DrawdNdeta (Container *realList, Bool_t realComb, Container *simList, Bool_t simComb, Color_t color=kBlack, THStack *stack=0, TDirectory *out=0, Bool_t alt=false) |
void | ProcessBin (UInt_t what, Int_t bin, Double_t c1, Double_t c2, Container *realList, Container *simList, THStack *stack=0, TDirectory *out=0) |
void | Run (UInt_t what=kDefault, UShort_t maxBins=9, const char *dataName="data.root", const char *simName="sim.root") |
![]() | |
AliTrackletdNdetaUtils () | |
virtual | ~AliTrackletdNdetaUtils () |
Public Attributes | |
TCanvas * | fCanvas |
TPad * | fTop |
TPad * | fBody |
Bool_t | fLandscape |
Bool_t | fPDF |
Bool_t | fPause |
TString | fLastTitle |
TString | fLastBin |
TLatex * | fHeader |
Double_t | fDeltaCut |
Double_t | fTailDelta |
Double_t | fMaxDelta |
Double_t | fCombinatoricsScale |
ECombinatoricsScaleMode | fCombinatoricsScaleMode |
Double_t | fAlphaMin |
Double_t | fAlphaMax |
Additional Inherited Members | |
![]() | |
static Bool_t | CheckAxisNBins (const char *which, const TAxis *a1, const TAxis *a2) |
static Bool_t | CheckAxisLimits (const char *which, const TAxis *a1, const TAxis *a2) |
static Bool_t | CheckAxisBins (const char *which, const TAxis *a1, const TAxis *a2) |
static Bool_t | CheckAxisLabels (const char *which, const TAxis *a1, const TAxis *a2) |
static Bool_t | CheckAxis (const char *which, const TAxis *a1, const TAxis *a2, Bool_t alsoLbls) |
static Bool_t | CheckConsistency (const TH1 *h1, const TH1 *h2) |
static TObject * | GetO (Container *parent, const char *name, TClass *cls) |
static TObject * | GetO (TDirectory *parent, const char *name, TClass *cls) |
static TH1 * | GetH1 (Container *parent, const char *name) |
static TH2 * | GetH2 (Container *parent, const char *name) |
static Container * | GetC (Container *parent, const char *name) |
static Container * | GetC (TDirectory *parent, const char *name) |
static Double_t | GetD (Container *parent, const char *name, Double_t def=-1) |
static Int_t | GetI (Container *parent, const char *name, Int_t def=-1) |
static Int_t | GetB (Container *parent, const char *name, Bool_t def=false) |
static TH1 * | CopyH1 (Container *parent, const char *name, const char *newName=0) |
static TH2 * | CopyH2 (Container *parent, const char *name, const char *newName=0) |
static TH1 * | Make1D (Container &c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis) |
static TH2 * | Make2D (Container &c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis, const TAxis &yAxis) |
static TH1 * | Scale (TH1 *h, Double_t x, Double_t xe) |
static TH2 * | Scale (TH2 *h, Double_t x, Double_t xe) |
static TH2 * | Scale (TH2 *h, TH1 *s) |
static void | FixAxis (TAxis &axis, const char *title=0) |
static void | ScaleAxis (TAxis &axis, Double_t fact=1) |
static void | SetAxis (TAxis &axis, Int_t n, Double_t *borders) |
static void | SetAxis (TAxis &axis, const TString &spec, const char *sep=":,") |
static void | SetAxis (TAxis &axis, Int_t n, Double_t l, Double_t h) |
static void | SetAxis (TAxis &axis, Int_t n, Double_t m) |
static void | PrintAxis (const TAxis &axis, Int_t nSig=2, const char *alt=0) |
static TH2 * | ScaleToIPz (TH2 *h, TH1 *ipZ, Bool_t full=false) |
static TH1 * | AverageOverIPz (TH2 *h, const char *name, UShort_t mode, TH1 *ipz, TH2 *mask=0) |
static TObject * | CloneAndAdd (Container *c, TObject *o) |
static Double_t | Integrate (TH1 *h, Double_t min, Double_t max, Double_t &err) |
static Double_t | RatioE (Double_t n, Double_t en, Double_t d, Double_t ed, Double_t &er) |
static Double_t | RatioE2 (Double_t n, Double_t e2n, Double_t d, Double_t e2d, Double_t &e2r) |
![]() | |
ClassDef (AliTrackletdNdetaUtils, 1) | |
Definition at line 40 of file AliTrackletdNdetaPost.C.
anonymous enum |
Processing options
Enumerator | |
---|---|
kRealComb |
Use combinatorial background for real data |
kSimComb |
Use combinatorial background for simulated data |
kdNdetas |
Draw dNch/deta |
kGeneral |
Draw general information |
kParameters |
Draw parameters |
kSimInfo |
Draw simulation information |
kSpecies |
Draw species information |
kDeltas |
Draw delta information |
kBackgrounds |
Draw backgrounds |
kAlphas |
Draw alphas |
kClosure |
MC closure test |
kPDF |
Print to PDF |
kPause |
Whether to pause after each plot |
kLandscape |
Draw in landscape |
kFixedScale |
Fixed scaling |
kDynCentScale |
Dynamic cent scaling |
kAltMarker |
Alternative markers |
kDefault |
Default options |
Definition at line 46 of file AliTrackletdNdetaPost.C.
anonymous enum |
Enumerator | |
---|---|
kTopBackground |
Definition at line 89 of file AliTrackletdNdetaPost.C.
Enumerator | |
---|---|
kFixed | |
kPerCent | |
kPerEtaCent |
Definition at line 84 of file AliTrackletdNdetaPost.C.
AliTrackletdNdetaPost::AliTrackletdNdetaPost | ( | ) |
Constructor
Definition at line 562 of file AliTrackletdNdetaPost.C.
void AliTrackletdNdetaPost::ClearCanvas | ( | ) |
Clear our canvas
Definition at line 597 of file AliTrackletdNdetaPost.C.
Referenced by CreateCanvas(), DrawAlpha(), DrawBackground(), DrawDeltas(), DrawdNdeta(), DrawGeneral(), DrawParams(), DrawSim(), DrawSpecies(), and Run().
void AliTrackletdNdetaPost::CloseCanvas | ( | ) |
Close the canvas for good
Definition at line 679 of file AliTrackletdNdetaPost.C.
Referenced by Run().
void AliTrackletdNdetaPost::CreateCanvas | ( | const TString & | outputName | ) |
Create our canvas
outputName | Output file name |
Definition at line 621 of file AliTrackletdNdetaPost.C.
Referenced by Run().
Cut \(\alpha\) edges between fMinAlpha and fMaxAlpha
alpha | Alpha histogram to modify |
Definition at line 1255 of file AliTrackletdNdetaPost.C.
Referenced by DrawdNdeta().
void AliTrackletdNdetaPost::DrawAlpha | ( | TVirtualPad * | c, |
Int_t | pad, | ||
Container * | ress, | ||
const char * | name, | ||
const char * | pretty | ||
) |
Draw background estimates in a single bin for a single estimate
c | Top pad |
pad | Sub pad |
ress | Results |
name | Name of the results |
pretty | Pretty title |
Definition at line 1275 of file AliTrackletdNdetaPost.C.
Referenced by DrawAlpha(), and ProcessBin().
Draw all background estimates for a centrality bin
realList | Results from real data |
simList | Results from simulated data |
Definition at line 1310 of file AliTrackletdNdetaPost.C.
Double_t AliTrackletdNdetaPost::DrawBackground | ( | TVirtualPad * | c, |
Int_t | pad, | ||
Container * | ress, | ||
const char * | name, | ||
const char * | pretty | ||
) |
Draw background estimates in a single bin for a single estimate
c | Top pad |
pad | Sub pad |
ress | Results |
name | Name of the results |
pretty | Pretty title |
Definition at line 1135 of file AliTrackletdNdetaPost.C.
Referenced by DrawBackground(), and ProcessBin().
Draw all background estimates for a centrality bin
realList | Results from real data |
simList | Results from simulated data |
Definition at line 1184 of file AliTrackletdNdetaPost.C.
void AliTrackletdNdetaPost::DrawClusters | ( | Int_t | pad, |
const char * | name, | ||
Container * | realList, | ||
Container * | simList | ||
) |
Draw clusters in sub-pad
pad | Which sub-pad |
name | Which clusters |
realList | Real data list |
simList | Simulated data list |
Definition at line 929 of file AliTrackletdNdetaPost.C.
Referenced by DrawGeneral().
Draw \(\Delta\) distributions for a single bin
realList | |
simList |
Definition at line 1063 of file AliTrackletdNdetaPost.C.
Referenced by ProcessBin().
void AliTrackletdNdetaPost::DrawdNdeta | ( | Container * | realList, |
Bool_t | realComb, | ||
Container * | simList, | ||
Bool_t | simComb, | ||
Color_t | color = kBlack , |
||
THStack * | stack = 0 , |
||
TDirectory * | out = 0 , |
||
Bool_t | alt = false |
||
) |
Calculates the result as
\[ R = \frac{P}{(1-\beta\prime)M\prime} (1-\beta)M \]
where
In case we use MC-labels for the background correction in simulations, we have that
\[ (1-\beta\prime)M\prime = (1-C\prime/M\prime)M\prime = M\prime-C\prime \]
where
In case we use MC-labels for the background correction for real data, we have that
\[ (1-\beta)M = (1-k\beta\prime)M = (1-kC/M\prime)M \]
where \( k\) is a constant scaling factor (1.3).
If we use injected clusters as an estimator for the background correction in simulations, we have
\[ (1-\beta\prime)M\prime = (1-B\prime/M\prime)M\prime = M\prime-B\prime \]
where
The same expression holds for the case when we use injected clusters to estimate the background in real data.
\[ (1-\beta)M = (1-B/M)M = M-B \]
where \( B\) has the same meaning as \( B\prime\) except we use real data.
Note, if we use MC-labels for both the simulated and real data backgrounds, and \( k=1\) we find that
\[ R = \frac{P}{M\prime}M \]
realList | List of real data histograms |
realComb | Whether to use MC-labels for real data |
simList | List of simulated data histograms |
simComb | Whether to use MC-labels for simulated data |
color | Color to use |
stack | Stack to add results to |
out | (optional) output directory |
alt | Set alternative marker set |
Definition at line 1477 of file AliTrackletdNdetaPost.C.
Referenced by ProcessBin().
Draw general information
realList | Results from real data |
simList | Results from simulated data |
Definition at line 958 of file AliTrackletdNdetaPost.C.
Referenced by Run().
TLegend * AliTrackletdNdetaPost::DrawInPad | ( | TVirtualPad * | c, |
Int_t | pad, | ||
TObject * | o, | ||
Option_t * | opt | ||
) |
Draw an object in a sub-pad
c | Canvas (or pad) |
pad | Sub-pad number |
o | Object to draw |
opt | Drawing options |
Definition at line 749 of file AliTrackletdNdetaPost.C.
Referenced by DrawAlpha(), DrawBackground(), DrawDeltas(), DrawdNdeta(), DrawGeneral(), DrawSim(), DrawSpecies(), and Run().
void AliTrackletdNdetaPost::DrawParam | ( | const char * | name, |
Double_t & | y, | ||
const char * | val | ||
) |
Draw parameter name and value
name | Name of parameter |
y | Current y coordinate |
val | Value |
Definition at line 789 of file AliTrackletdNdetaPost.C.
Referenced by DrawParam(), and DrawParams().
Draw a real valued paraemeter
name | Name of parameter |
y | Current y coordinate |
val | Value |
Definition at line 806 of file AliTrackletdNdetaPost.C.
Draw an integer valued paraemeter
name | Name of parameter |
y | Current y coordinate |
val | Value |
Definition at line 813 of file AliTrackletdNdetaPost.C.
Draw a boolean valued paraemeter
name | Name of parameter |
y | Current y coordinate |
val | Value |
Definition at line 820 of file AliTrackletdNdetaPost.C.
Draw all parameters in a container
pars | |
title | |
comb |
Definition at line 827 of file AliTrackletdNdetaPost.C.
Referenced by DrawParams(), and Run().
void AliTrackletdNdetaPost::DrawParams | ( | Container * | realSums, |
Bool_t | realComb, | ||
Container * | simSums, | ||
Bool_t | simComb | ||
) |
Draw parameters from both real and simulated analysis
realSums | Real data |
simSums | simulated data |
realComb | USe combinatorial background for real data |
simComb | USe combinatorial background for simulated data |
Definition at line 868 of file AliTrackletdNdetaPost.C.
void AliTrackletdNdetaPost::DrawSim | ( | Container * | simList | ) |
Draw specific stuff from the simulation
simList | Container of results from simulated data |
Definition at line 1342 of file AliTrackletdNdetaPost.C.
Referenced by ProcessBin().
void AliTrackletdNdetaPost::DrawSpecies | ( | Container * | mcList | ) |
Draw species information from simulated data
mcList | Results from simulated data |
Definition at line 1023 of file AliTrackletdNdetaPost.C.
Referenced by ProcessBin().
TH1 * AliTrackletdNdetaPost::FindDelta | ( | Container * | ress, |
const char * | sub, | ||
Bool_t | scaled = false |
||
) |
Functions related to single centrality bins Service function to find \(\Delta\) distribution
ress | Results |
sub | Sub set |
scaled | Whether to find the scaled value |
Definition at line 1007 of file AliTrackletdNdetaPost.C.
Referenced by DrawDeltas().
utility function to find a sub-element
ress | Container |
sub | Sub-path |
name | Name |
Definition at line 988 of file AliTrackletdNdetaPost.C.
Get the integrated delta distribution as a function of eta
c | Container |
Definition at line 1416 of file AliTrackletdNdetaPost.C.
Referenced by GetDeltaScaleDist().
Get the scalar between data and injection
c | Top container |
e | Error on scalar |
Definition at line 1398 of file AliTrackletdNdetaPost.C.
Referenced by DrawdNdeta().
Get the scalar distribution between data and injection
c | Top container |
Definition at line 1443 of file AliTrackletdNdetaPost.C.
Referenced by DrawdNdeta().
THStack * AliTrackletdNdetaPost::Make2Stack | ( | const char * | name, |
const char * | title, | ||
Container * | realList, | ||
Container * | simList, | ||
Option_t * | dataOpt = "" , |
||
Option_t * | simOpt = "" |
||
) |
Make a stack of histograms for real and simulated data.
name | Name of stack |
title | Title of stack |
realList | Container of real data |
simList | Container of simulated data |
dataOpt | Options for real data |
simOpt | Options for simulated data |
Definition at line 905 of file AliTrackletdNdetaPost.C.
Referenced by DrawGeneral().
Get marker style to use
what | For what |
sim | For sim? |
alt | Alternate set? |
Definition at line 1457 of file AliTrackletdNdetaPost.C.
Referenced by DrawdNdeta().
|
inline |
The observable title
Definition at line 407 of file AliTrackletdNdetaPost.C.
Referenced by DrawdNdeta(), DrawSim(), and Run().
TFile * AliTrackletdNdetaPost::OpenFile | ( | const char * | filename | ) |
Open a file
filename | File name |
Definition at line 718 of file AliTrackletdNdetaPost.C.
Referenced by Run().
Print the canvas
title | Title of this page |
size | Size of title |
Definition at line 694 of file AliTrackletdNdetaPost.C.
Referenced by DrawAlpha(), DrawBackground(), DrawDeltas(), DrawdNdeta(), DrawGeneral(), DrawParams(), DrawSim(), DrawSpecies(), and Run().
void AliTrackletdNdetaPost::ProcessBin | ( | UInt_t | what, |
Int_t | bin, | ||
Double_t | c1, | ||
Double_t | c2, | ||
Container * | realList, | ||
Container * | simList, | ||
THStack * | stack = 0 , |
||
TDirectory * | out = 0 |
||
) |
Process a single bin
what | Bit mask of processing options |
bin | Centrality bin number |
c1 | Least centrality |
c2 | Largest centrality |
realList | Results from real data |
simList | Results from simulated data |
stack | Possible stack to add dN/deta to |
out | Possible output directory |
Definition at line 1764 of file AliTrackletdNdetaPost.C.
Referenced by Run().
void AliTrackletdNdetaPost::Run | ( | UInt_t | what = kDefault , |
UShort_t | maxBins = 9 , |
||
const char * | dataName = "data.root" , |
||
const char * | simName = "sim.root" |
||
) |
Run it
dataName | File from real data |
simName | File from simulated data |
what | Bit mask of processing options |
maxBins | Maximum number of cnetrality bins to analyse |
Definition at line 1809 of file AliTrackletdNdetaPost.C.
TH1 * AliTrackletdNdetaPost::SetAttr | ( | TH1 * | h, |
Color_t | color, | ||
Style_t | marker = 20 , |
||
Double_t | size = 1. , |
||
Style_t | fill = 0 , |
||
Style_t | line = 1 , |
||
Width_t | width = 1 |
||
) |
Set attributes on a histogram
h | Histogram |
color | Color of histogram |
marker | Marker style |
size | Marker size |
fill | Fill style |
line | Line style |
width | Line width |
Definition at line 728 of file AliTrackletdNdetaPost.C.
Referenced by DrawdNdeta().
Double_t AliTrackletdNdetaPost::fAlphaMax |
Largest value of \(\alpha\)
Definition at line 124 of file AliTrackletdNdetaPost.C.
Referenced by CutAlpha(), DrawAlpha(), and DrawParams().
Double_t AliTrackletdNdetaPost::fAlphaMin |
Least value of \(\alpha\)
Definition at line 122 of file AliTrackletdNdetaPost.C.
Referenced by DrawAlpha(), and DrawParams().
TPad* AliTrackletdNdetaPost::fBody |
Main body of plots
Definition at line 98 of file AliTrackletdNdetaPost.C.
Referenced by ClearCanvas(), CreateCanvas(), DrawAlpha(), DrawBackground(), DrawClusters(), DrawDeltas(), DrawdNdeta(), DrawGeneral(), DrawParams(), DrawSim(), DrawSpecies(), and Run().
TCanvas* AliTrackletdNdetaPost::fCanvas |
The canvas to draw in
Definition at line 94 of file AliTrackletdNdetaPost.C.
Referenced by ClearCanvas(), CloseCanvas(), CreateCanvas(), and PrintCanvas().
Double_t AliTrackletdNdetaPost::fCombinatoricsScale |
The scalar on combinatorial background for real data
Definition at line 118 of file AliTrackletdNdetaPost.C.
Referenced by DrawdNdeta(), and DrawParams().
ECombinatoricsScaleMode AliTrackletdNdetaPost::fCombinatoricsScaleMode |
Mode for scaling the combinatorics background
Definition at line 120 of file AliTrackletdNdetaPost.C.
Referenced by DrawdNdeta(), DrawParams(), and Run().
Double_t AliTrackletdNdetaPost::fDeltaCut |
Cut on \( \Delta\) read from real data input file
Definition at line 112 of file AliTrackletdNdetaPost.C.
Referenced by DrawDeltas(), and Run().
TLatex* AliTrackletdNdetaPost::fHeader |
The page header text
Definition at line 110 of file AliTrackletdNdetaPost.C.
Referenced by CreateCanvas(), and PrintCanvas().
Bool_t AliTrackletdNdetaPost::fLandscape |
Whether we should be in landscape mode
Definition at line 100 of file AliTrackletdNdetaPost.C.
Referenced by CloseCanvas(), CreateCanvas(), PrintCanvas(), and Run().
TString AliTrackletdNdetaPost::fLastBin |
Cache of centrality bin title
Definition at line 108 of file AliTrackletdNdetaPost.C.
Referenced by DrawAlpha(), DrawBackground(), DrawDeltas(), DrawdNdeta(), DrawSim(), DrawSpecies(), and ProcessBin().
TString AliTrackletdNdetaPost::fLastTitle |
Cache of last title
Definition at line 106 of file AliTrackletdNdetaPost.C.
Referenced by CloseCanvas(), and PrintCanvas().
Double_t AliTrackletdNdetaPost::fMaxDelta |
Highest value of \(\Delta\) read from real data input file
Definition at line 116 of file AliTrackletdNdetaPost.C.
Referenced by Run().
Bool_t AliTrackletdNdetaPost::fPause |
Whether we should pause
Definition at line 104 of file AliTrackletdNdetaPost.C.
Referenced by PrintCanvas(), and Run().
Bool_t AliTrackletdNdetaPost::fPDF |
If we should print to a PDF
Definition at line 102 of file AliTrackletdNdetaPost.C.
Referenced by CloseCanvas(), CreateCanvas(), PrintCanvas(), and Run().
Double_t AliTrackletdNdetaPost::fTailDelta |
Lower cut on \(\Delta\) tail read from real data input file
Definition at line 114 of file AliTrackletdNdetaPost.C.
Referenced by DrawDeltas(), GetDeltaIntDist(), and Run().
TPad* AliTrackletdNdetaPost::fTop |
Top bar to put title in
Definition at line 96 of file AliTrackletdNdetaPost.C.
Referenced by ClearCanvas(), CreateCanvas(), and PrintCanvas().