![]() |
AliPhysics
239578e (239578e)
|
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>
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="") |
Script to visualise the dN/deta for pp and PbPb.
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.
#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().
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 = "" |
||
) |
Definition at line 3603 of file DrawdNdeta.C.
Referenced by ComputeEfficiencyFromCombinHF(), AliCanvas::Draw(), AliFMDCorrAcceptance::ls(), MultiplyPi0CalibrationFactors_TextToHisto(), MultiplyPi0CalibrationFactors_TextToHisto_Final(), Pi0CalibInvMassAnalysis3(), PlotHorLineRange(), PlotLEDruns(), ProjectAndFit(), AliTrackletPtPidStrWeights::SetStrangenessMode(), AliAnalysisTaskSED0MassCutVarFDSub::Terminate(), AliAnalysisTaskSED0Mass::Terminate(), and AliAnalysisTaskSED0MassNonPromptFraction::Terminate().
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 3354 of file DrawdNdeta.C.
Referenced by AddInformation(), dNdetaDrawer::FitMerged(), and MakeSysError().
void RangeExec | ( | dNdetaDrawer::RangeParam * | p | ) |
Called when user changes X range
p | Parameter |
Definition at line 3409 of file DrawdNdeta.C.
void UpdateRange | ( | dNdetaDrawer::RangeParam * | p | ) |
Update canvas range
p | Parameter |
Definition at line 3370 of file DrawdNdeta.C.
Referenced by RangeExec().
void Usage | ( | ) |
Display usage information
Definition at line 3437 of file DrawdNdeta.C.
Referenced by DrawdNdeta().
void UsageS | ( | ) |