![]() |
AliPhysics
3bba2fe (3bba2fe)
|
![]() |
Modules | |
Add tasks to manager | |
Maker scripts | |
Correction scripts | |
Quality Assurance scripts | |
Flow scripts | |
Test scripts | |
Files | |
file | MakeChain.C |
Script to generate a chain of files. | |
file | UnfoldMult.C |
Bayesian Method Unfolding Script. | |
Functions | |
static Bool_t | Scanner::IsFile (const char *path) |
void | Scanner::ScanDirectory (TSystemDirectory *dir, TList *list, const char *pattern, bool recursive) |
Bool_t | Compile (const char *script, Option_t *option="g") |
void | dndeta_final (Double_t max=6) |
void | DrawRubensCorr (const char *fname="rubensRatio.root", const char *hname="dNdEtaCor1D_cls") |
TObject * | GetObject (const TObject *l, const char *name) |
TH1D * | GetHist (TDirectory *dir, const char *which, const char *sub, const char *hname) |
TH1D * | GetHist (TDirectory *dir, const char *which, UShort_t rebin, const char *sub="all") |
TH1 * | Merge (const TH1 *cen, const TH1 *fwd, Double_t &xlow, Double_t &xhigh) |
Double_t | myFunc (Double_t *xp, Double_t *pp) |
Double_t | myRatio (Double_t *xp, Double_t *pp) |
TF1 * | FitMerged (TH1 *tmp, Double_t xlow, Double_t xhigh) |
void | MakeSysError (TH1 *tmp, TF1 *fit) |
TH1 * | Graph2Hist (const TGraphAsymmErrors *g) |
TH1 * | Ratio (TH1 *h, TF1 *f, const char *title) |
TH1D * | GetUA5Data (UShort_t type, TH1 *&p, TH1 *&n, Double_t &xlow, Double_t &xhigh) |
void | DrawUA5Ratios (const char *fname="forward_dndeta.root", UShort_t rebin=5) |
void | LoadLibs (bool alsoBase=false, bool alsoHit=false) |
Bool_t | LoadPars (Int_t nWorkers=4) |
Bool_t | IsFile (const char *path) |
void | ScanDirectory (TSystemDirectory *dir, TChain *chain, const char *pattern, bool recursive) |
TChain * | MakeChain (const char *what, const char *datadir, bool recursive=false) |
THStack * | GetStack (const TList *list, const char *name, Int_t rebin) |
TH1 * | GetHist (const TList *list, const char *name, Int_t rebin) |
THStack * | AddStack (THStack *p, const TList *list, const char *name, Int_t rebin) |
void | BuildCentLegend (const TAxis *c) |
void | BuildLegend (const THStack *stack, const TAxis *c) |
TH1 * | MakeSysError (const TH1 *cen, const TH1 *fwd, Double_t sysErr=0.7) |
void | SimpledNdeta (Int_t what=0x5, Int_t rebin=5, const char *filename="forward_dndeta.root") |
These scripts add tasks to the analysis train
Add histograms from one stack to another
p | Parent stack to add to |
list | List to look for the stack in |
name | Name of stack to add |
rebin | Optional rebinning - must exists in list |
Definition at line 101 of file SimpledNdeta.C.
Referenced by SimpledNdeta().
void BuildCentLegend | ( | const TAxis * | c | ) |
Build up a centrality legend
c | Centrality axis |
Definition at line 121 of file SimpledNdeta.C.
Referenced by SimpledNdeta().
void BuildLegend | ( | const THStack * | stack, |
const TAxis * | c | ||
) |
Build a legend. Histograms a filtered for the same title
stack | Stack of histograms |
c | Centrality axis. If present, markers are black |
Definition at line 157 of file SimpledNdeta.C.
Referenced by SimpledNdeta().
Compile an FMD script using ACLic
script | Script to compile |
option | Compile option |
Definition at line 19 of file Compile.C.
Referenced by TestRunMakeELossFit().
void dndeta_final | ( | Double_t | max = 6 | ) |
void DrawRubensCorr | ( | const char * | fname = "rubensRatio.root" , |
const char * | hname = "dNdEtaCor1D_cls" |
||
) |
void DrawUA5Ratios | ( | const char * | fname = "forward_dndeta.root" , |
UShort_t | rebin = 5 |
||
) |
Draw ratios to UA5 data
fname | Input file name |
rebin | Re-binning factor |
Definition at line 397 of file DrawUA5Ratios.C.
Fit \(g(x;A_1,A_2,\sigma_1,\sigma_2)\) to histogram data
tmp | Histogram |
xlow | Lower x bound |
xhigh | Upper x bound |
Definition at line 195 of file DrawUA5Ratios.C.
Referenced by DrawUA5Ratios().
TH1D* GetHist | ( | TDirectory * | dir, |
const char * | which, | ||
const char * | sub, | ||
const char * | hname | ||
) |
Get histogram from directory/which/sub/hname
dir | Directory |
which | Name of parent list |
sub | Name of sub-list |
hname | Name of histogram |
Definition at line 42 of file DrawUA5Ratios.C.
Referenced by DrawUA5Ratios(), and GetHist().
Get a histogram from a list
list | List |
name | Name of histogram |
rebin | Rebinning factor |
Definition at line 66 of file SimpledNdeta.C.
Referenced by SimpledNdeta().
Get histogram from dir/whichResults/sub/dndetawhich[_rebinrebin]
dir | Directory |
which | Name |
rebin | Optional rebinning |
sub | Sub-list name |
Definition at line 79 of file DrawUA5Ratios.C.
Get an object with specified name from TCollection l
l | Collection |
name | Name of object to retrieve |
Definition at line 13 of file DrawUA5Ratios.C.
Referenced by DrawUA5Ratios(), and GetHist().
A simple script to draw results from MakedNdeta.C (or similar) Get a stack from the passed list
list | List to get the stack from |
name | Name of stack |
rebin | Optional rebinning - must exists in list |
Definition at line 37 of file SimpledNdeta.C.
Referenced by AddStack().
Get the UA5 data
type | Trigger type (1: INEL, 4: NSD) |
p | On return, positive part or null |
n | On return, negative part or null |
xlow | On return, lower X bound |
xhigh | On return, upper X bound |
Definition at line 352 of file DrawUA5Ratios.C.
Referenced by DrawUA5Ratios().
TH1* Graph2Hist | ( | const TGraphAsymmErrors * | g | ) |
Transform a graph into a histogram
g |
Definition at line 247 of file DrawUA5Ratios.C.
Referenced by GetUA5Data().
Bool_t IsFile | ( | const char * | path | ) |
Check if a path points to a file
path | Path |
Definition at line 20 of file MakeChain.C.
Referenced by MakeChain().
|
inlinestatic |
Check if a path points to a file
path | Path |
Definition at line 35 of file MigrateOADB.C.
Referenced by Scanner::Scan().
void LoadLibs | ( | bool | alsoBase = false , |
bool | alsoHit = false |
||
) |
Load the libraries of PWGLF/FORWARD/analsysis2
Definition at line 18 of file LoadLibs.C.
Set-up for a PROOF analysis job. Make TProof object and load pars.
nWorkers | Number of workers |
Definition at line 13 of file LoadPars.C.
Referenced by MakeEvaluateTriggers().
TChain* MakeChain | ( | const char * | what, |
const char * | datadir, | ||
bool | recursive = false |
||
) |
Make a chain of specified data
what | What data to chain. Possible values are
|
datadir | Data directory to scan |
recursive | Whether to recurse into sub-directories |
Definition at line 151 of file MakeChain.C.
Referenced by MakeEvaluateTriggers(), and SPDComparison().
void MakeSysError | ( | TH1 * | tmp, |
TF1 * | fit | ||
) |
Make band of systematic errors
tmp | Histogram |
fit | Fit |
Definition at line 223 of file DrawUA5Ratios.C.
Make systematic error band
cen | Central result |
fwd | Forward result |
sysErr | Systematic error (fractional) |
Definition at line 322 of file SimpledNdeta.C.
Referenced by SimpledNdeta().
Merge two histograms into one
cen | Central part |
fwd | Forward part |
xlow | On return, lower eta bound |
xhigh | On return, upper eta bound |
Definition at line 103 of file DrawUA5Ratios.C.
Referenced by DrawUA5Ratios(), Merge::MakeBranch(), AliEmcalList::Merge(), AliTHnT< TemplateArray, TemplateType >::Merge(), and Merge::SetBranch().
Function to calculate
\[ g(x;A_1,A_2,\sigma_1,\sigma_2) = A_1\left(\frac{1}{2\pi\sigma_1}e^{(x/\sigma_1)^2} - A_2\frac{1}{2\pi\sigma_2}e^{(x/\sigma_2)^2}\right) \]
xp | Pointer to x array |
pp | Pointer to parameter array |
A function (double Gaussian)
xp | Independent variables |
pp | Parameters |
Definition at line 151 of file DrawUA5Ratios.C.
Referenced by FitMerged(), and myRatio().
Calculate
\[ r(x) = \frac{g(x;A_1,A_2,\sigma_1,\sigma_2)}{ g(x;A_1',A_2',\sigma'_1,\sigma'_2)} \]
xp | Pointer to X array |
pp | Pointer to parameter array (8 entries) |
Definition at line 175 of file DrawUA5Ratios.C.
Referenced by DrawUA5Ratios().
Calculate ratio of histogram to function
h | Histogram |
f | Function |
title | (Optional) title |
Definition at line 308 of file DrawUA5Ratios.C.
Referenced by DrawUA5Ratios().
void ScanDirectory | ( | TSystemDirectory * | dir, |
TChain * | chain, | ||
const char * | pattern, | ||
bool | recursive | ||
) |
Scan a directory (optionally recursive) for data files to add to the chain. Only ROOT files, and files which name contain the passed pattern are considered.
dir | Directory to scan |
chain | Chain to add data to |
pattern | Pattern that the file name must contain |
recursive | Whether to scan recursively |
Definition at line 72 of file MakeChain.C.
Referenced by MakeChain().
|
inline |
Scan a directory (optionally recursive) for data files to add to the chain. Only ROOT files, and files which name contain the passed pattern are considered.
dir | Directory to scan |
list | List to add data to |
pattern | Pattern that the file name must contain |
recursive | Whether to scan recursively |
Definition at line 92 of file MigrateOADB.C.
Referenced by Scanner::Scan().
void SimpledNdeta | ( | Int_t | what = 0x5 , |
Int_t | rebin = 5 , |
||
const char * | filename = "forward_dndeta.root" |
||
) |
Function to draw the results from forward_dndeta.root file
what | What to draw |
rebin | Rebinnig. Note, the data must be present in the file |
filename | File to open and draw stuff from > |
Definition at line 383 of file SimpledNdeta.C.