AliPhysics  9c66e61 (9c66e61)
DrawdNdeta.C File Reference

Script to visualise the dN/deta for pp and PbPb. More...

#include <TH1.h>
#include <TH2.h>
#include <TColor.h>
#include <THStack.h>
#include <TGraphErrors.h>
#include <TGraphAsymmErrors.h>
#include <TMultiGraph.h>
#include <TFile.h>
#include <TList.h>
#include <TString.h>
#include <TError.h>
#include <TSystem.h>
#include <TROOT.h>
#include <TMath.h>
#include <TCanvas.h>
#include <TPad.h>
#include <TStyle.h>
#include <TLegend.h>
#include <TLegendEntry.h>
#include <TLatex.h>
#include <TArrow.h>
#include <TImage.h>
#include <TRandom.h>
#include <TParameter.h>
#include <TGClient.h>
#include <fstream>
#include <iostream>
Include dependency graph for DrawdNdeta.C:

Go to the source code of this file.

Classes

struct  dNdetaDrawer
 
struct  dNdetaDrawer::MarkerUtil
 
struct  dNdetaDrawer::RangeParam
 

Macros

#define SYSERR_COLOR   TColor::GetColor(220, 220, 255)
 
#define SYSERR_STYLE   1001
 

Functions

Double_t myFunc (Double_t *xp, Double_t *pp)
 
void UpdateRange (dNdetaDrawer::RangeParam *p)
 
void RangeExec (dNdetaDrawer::RangeParam *p)
 
void Usage ()
 
void DrawdNdeta (const char *filename="forward_dndeta.root", const char *title="", UShort_t rebin=5, UShort_t others=0x7, UInt_t flags=dNdetaDrawer::kDefaultOptions, Double_t meanIpX=-1, Double_t meanIpY=-1, Float_t eff=0, const char *base="", UShort_t outflg=dNdetaDrawer::kAllFormats)
 
void UsageS ()
 
void Draw (const char *filename, const char *title="", const char *others="ALL", const char *options="DEFAULT", const char *outFlg="ALL", UShort_t rebin=5, Float_t eff=0, const char *base="")
 

Detailed Description

Script to visualise the dN/deta for pp and PbPb.

Author
Christian Holm Christensen cholm.nosp@m.@nbi.nosp@m..dk
Date
Wed Mar 23 14:07:10 2011

This script is independent of any AliROOT code - and should stay that way.

The script is very long - sigh - the joy of drawing things nicely in ROOT

Definition in file DrawdNdeta.C.

Macro Definition Documentation

#define SYSERR_COLOR   TColor::GetColor(220, 220, 255)

Systematic error color

Definition at line 47 of file DrawdNdeta.C.

#define SYSERR_STYLE   1001

Systematic error style

Definition at line 49 of file DrawdNdeta.C.

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

Function Documentation

Double_t myFunc ( Double_t xp,
Double_t pp 
)

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) \]

Parameters
xpPointer to x array
ppPointer to parameter array
Returns
\(g(x;A_1,A_2,\sigma_1,\sigma_2)\)

A function (double Gaussian)

Parameters
xpIndependent variables
ppParameters
Returns
Value of function

Definition at line 3354 of file DrawdNdeta.C.

Referenced by AddInformation(), dNdetaDrawer::FitMerged(), and MakeSysError().

void RangeExec ( dNdetaDrawer::RangeParam p)

Called when user changes X range

Parameters
pParameter

Definition at line 3409 of file DrawdNdeta.C.

void UpdateRange ( dNdetaDrawer::RangeParam p)

Update canvas range

Parameters
pParameter

Definition at line 3370 of file DrawdNdeta.C.

Referenced by RangeExec().

void Usage ( )

Display usage information

Deprecated:
Use new GSE based drawing

Definition at line 3437 of file DrawdNdeta.C.

Referenced by DrawdNdeta().

void UsageS ( )

Display usage information

Definition at line 3545 of file DrawdNdeta.C.

Referenced by Draw().