AliPhysics  8d00e07 (8d00e07)
Inheritance diagram for AliTrackletdNdeta2:

Public Types

enum  {
  kGeneral = 0x0001, kParameters = 0x0002, kWeights = 0x0004, kdNdetas = 0x0008,
  kSpecies = 0x0010, kDeltas = 0x0020, kDetails = 0x0040, kPDF = 0x0100,
  kPNG = 0x0100, kPause = 0x0200, kLandscape = 0x0400, kAltMarker = 0x0800,
  kDefaultViz = 0x03ff
}
 
enum  {
  kUnitScale = 0x0001, kAverageScale = 0x0002, kEtaScale = 0x0004, kFullScale = 0x0008,
  kDTFS = 0x0010, kFake = 0x0020, kCentAverage = 0x0040, kClosure = 0x01000,
  kDebug = 0x100, kDefaultProc = 0x0002
}
 
enum  { kTopBackground = kAzure-8 }
 
typedef AliTrackletAODUtils::Container Container
 
- Public Types inherited from AliTrackletAODUtils
typedef TList Container
 

Public Member Functions

 AliTrackletdNdeta2 ()
 
void Run (UInt_t proc=kDefaultProc, UInt_t viz=kDefaultViz, UShort_t maxBins=9, const char *dataName="data.root", const char *simName="sim.root", const char *output=0, Double_t fudge=1)
 
Steer processing
Bool_t Process (Container *realTop, Container *simTop, TDirectory *outTop, Int_t maxBins)
 
Bool_t ProcessBin (Double_t c1, Double_t c2, Container *realTop, Container *simTop, Double_t realEff, Double_t simEff, TDirectory *outTop)
 
Bool_t ProcessBin (Double_t c1, Double_t c2, Container *realCont, Container *simCont, Double_t realEff, Double_t simEff, TDirectory *outTop, TDirectory *outDir, Int_t dimen)
 
Strangeness
Bool_t CalculateSEF (Container *simCont, const TAxis *centAxis, TDirectory *out)
 
@f$\Delta@f$ distributions
Bool_t Deltas (Container *realCont, Container *simCont, TDirectory *outParent, Int_t dim)
 
Bool_t Deltas0D (Container *realCont, Container *simCont, TDirectory *outParent)
 
Bool_t Deltas1D (Container *realCont, Container *simCont, TDirectory *outParent)
 
Bool_t Deltas2D (Container *realCont, Container *simCont, TDirectory *outParent)
 
Bool_t Deltas3D (Container *realCont, Container *simCont, TDirectory *outParent)
 
void WriteDeltas (TDirectory *outDir, TH1 *realDeltaM, TH1 *realDeltaI, TH1 *simDeltaM, TH1 *simDeltaI, TH1 *simDeltaC, TH1 *simDeltaP, TH1 *simDeltaS, TH1 *simDeltaD, TH1 *fit)
 
TH1FractionFit (TDirectory *outDir, TH1 *realDeltaM, TH1 *simDeltaC, TH1 *simDeltaP, TH1 *simDeltaS)
 
Result extraction
TH1Results (Container *realCont, Container *simCont, Double_t realEff, Double_t simEff, TDirectory *outParent, Int_t deltaDimen)
 
void FlattenCentrality (TH2 *h, Container *c)
 
Canvas functions
void ClearCanvas ()
 
void CreateCanvas (const TString &outputName)
 
void CloseCanvas ()
 
void PrintCanvas (const char *title, const char *shortTitle="page", Float_t size=.7)
 
TLegend * DrawInPad (TVirtualPad *c, Int_t pad, TObject *o, Option_t *opt)
 
void ModLegend (TVirtualPad *p, TLegend *l, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 
THStack * Make2Stack (const char *name, const char *title, Container *realList, Container *simList, Option_t *dataOpt="", Option_t *simOpt="")
 
Visualization functions
Bool_t Visualize (Container *realSums, Container *simSums, Container *realRess, Container *simRess, TDirectory *outTop, Int_t maxBins)
 
void VisualizeGeneral (Container *realList, Container *simList)
 
void VisualizeWeights (Container *simList)
 
void VisualizeFinal (TDirectory *outDir, Int_t i)
 
void VisualizeClosure (TDirectory *outDir, Int_t i)
 
Bool_t VisualizeBin (Double_t c1, Double_t c2, Container *simList, TDirectory *outTop)
 
Bool_t VisualizeSpecies (Container *simCont)
 
Bool_t VisualizeSpeciesDelta (Container *simCont, TDirectory *outDir)
 
Bool_t VisualizePrimary (Container *simCont)
 
Bool_t VisualizeDelta (TDirectory *outTop, Int_t dimen)
 
Bool_t VisualizeDetails (TDirectory *outTop, Int_t dimen)
 
Bool_t VisualizeResult (TDirectory *outTop, Int_t dimen)
 
Drawing parameters
void VisualizeParam (const char *name, Double_t &y, const char *val)
 
void VisualizeParam (const char *name, Double_t &y, Double_t val)
 
void VisualizeParam (const char *name, Double_t &y, Int_t val)
 
void VisualizeParam (const char *name, Double_t &y, Bool_t val)
 
void VisualizeParams (Container *pars, const char *title)
 
void VisualizeParams (Container *realSums, Container *simSums)
 
- Public Member Functions inherited from AliTrackletAODUtils
 AliTrackletAODUtils ()
 
virtual ~AliTrackletAODUtils ()
 

Public Attributes

UInt_t fViz
 
UInt_t fProc
 
Double_t fDeltaCut
 
Double_t fTailDelta
 
Double_t fTailMax
 
Double_t fMaxDelta
 
Double_t fMinK
 
Double_t fMaxK
 
Double_t fMinAlpha
 
Double_t fMaxAlpha
 
Double_t fFudge
 
Double_t fSEF
 
TCanvas * fCanvas
 
TPad * fTop
 
TPad * fBody
 
TString fLastTitle
 
TString fLastBin
 
TString fLastShort
 
TLatex * fHeader
 
Bool_t fRealIsSim
 

Related Functions

(Note that these are not member functions.)

Post-processing steering code
void Post (const char *sim, const char *real, const char *output=0, UInt_t proc=0x2, UInt_t viz=0x32f, UInt_t n=10, UInt_t sNN=5023)
 

Some utilities

TH1SetAttr (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)
 
const char * ObsTitle () const
 
Double_t MeanY (TH1 *h, Double_t &e)
 
Double_t MeanZ (TH2 *h, Double_t &e)
 
static void StackMinMax (THStack *stack, Double_t &min, Double_t &max)
 

Additional Inherited Members

- Static Public Member Functions inherited from AliTrackletAODUtils
static void PdgAttr (Int_t pdg, TString &nme, Color_t &c, Style_t &s)
 
static const char * CentName (Double_t c1, Double_t c2)
 
static Color_t CentColor (const TAxis &axis, Double_t c1, Double_t c2)
 
static Color_t CentColor (Int_t bin)
 
static TFile * OpenFile (const char *filename)
 
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 TObjectGetO (Container *parent, const char *name, TClass *cls=0, Bool_t verb=true)
 
static TObjectGetO (TDirectory *parent, const char *name, TClass *cls=0, Bool_t verb=true)
 
static TH1GetH1 (Container *parent, const char *name, Bool_t verb=true)
 
static TH1GetH1 (TDirectory *parent, const char *name, Bool_t verb=true)
 
static TProfile * GetP1 (Container *parent, const char *name, Bool_t verb=true)
 
static TH2GetH2 (Container *parent, const char *name, Bool_t verb=true)
 
static TH2GetH2 (TDirectory *parent, const char *name, Bool_t verb=true)
 
static TH3GetH3 (Container *parent, const char *name, Bool_t verb=true)
 
static TH3GetH3 (TDirectory *parent, const char *name, Bool_t verb=true)
 
static TProfile2D * GetP2 (Container *parent, const char *name, Bool_t verb=true)
 
static TProfile * GetP (Container *parent, const char *name, Bool_t verb=true)
 
static THStack * GetHS (Container *parent, const char *name, Bool_t verb=true)
 
static THStack * GetHS (TDirectory *parent, const char *name, Bool_t verb=true)
 
static ContainerGetC (Container *parent, const char *name, Bool_t verb=true)
 
static ContainerGetC (TDirectory *parent, const char *name, Bool_t verb=true)
 
static TDirectory * GetT (TDirectory *parent, const char *name, Bool_t verb=true)
 
static Double_t GetD (Container *parent, const char *name, Double_t def=-1, Bool_t verb=true)
 
static Int_t GetI (Container *parent, const char *name, Int_t def=-1, Bool_t verb=true)
 
static Int_t GetB (Container *parent, const char *name, Bool_t def=false, Bool_t verb=true)
 
static TH1CopyH1 (Container *parent, const char *name, const char *newName=0, Bool_t verb=true)
 
static TH2CopyH2 (Container *parent, const char *name, const char *newName=0, Bool_t verb=true)
 
static TH3CopyH3 (Container *parent, const char *name, const char *newName=0, Bool_t verb=true)
 
static void CopyAttr (const TH1 *src, TH1 *dest)
 
static TH1Make1D (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis)
 
static TProfile * Make1P (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis)
 
static TH2Make2D (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis, const TAxis &yAxis)
 
static TH3Make3D (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis, const TAxis &yAxis, const TAxis &zAxis)
 
static TProfile2D * Make2P (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis, const TAxis &yAxis)
 
static TH1Scale (TH1 *h, Double_t x, Double_t xe)
 
static TH2Scale (TH2 *h, Double_t x, Double_t xe)
 
static TH2Scale (TH2 *h, TH1 *s)
 
static void FixAxis (TAxis &axis, const char *title=0)
 
static void ScaleAxis (TAxis &ret, 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 TH2ScaleToIPz (TH2 *h, TH1 *ipZ, Bool_t full=false)
 
static TH3ScaleToIPz (TH3 *h, TH1 *ipZ, Bool_t full=false)
 
static TH3ScaleDelta (TH3 *h, TH2 *scale)
 
static TH2ProjectEtaDelta (TH3 *h)
 
static TH1ProjectDelta (TH2 *h)
 
static TH1ProjectDeltaFull (TH3 *h)
 
static TH1AverageOverIPz (TH2 *h, const char *name, UShort_t mode, TH1 *ipz, Double_t ipEff=0, TH2 *mask=0, Bool_t verb=false)
 
static TObjectCloneAndAdd (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)
 
static TH1RatioH (const TH1 *num, const TH1 *denom, const char *name=0)
 
static void FixMinMax (TH1 *h, Bool_t ignoreZero=true)
 
static void FixMinMax (THStack *h, Bool_t ignoreZero=true)
 
static Int_tPdgArray (Int_t &size)
 
static const TAxisPdgAxis ()
 
static Int_t PdgBin (Int_t pdg)
 

Detailed Description

Post processing

Definition at line 58 of file AliTrackletdNdeta2.C.

Member Typedef Documentation

Member Enumeration Documentation

anonymous enum

Display options

Enumerator
kGeneral 

Draw general information

kParameters 

Draw parameters

kWeights 

Draw weights

kdNdetas 

Draw dNch/deta

kSpecies 

Draw alphas

kDeltas 

Draw delta information

kDetails 

Draw backgrounds

kPDF 

Whether to make a PDF

kPNG 
kPause 

Whether to pause after each plot

kLandscape 

Draw in landscape

kAltMarker 

Alternative markers

kDefaultViz 

Default options

Definition at line 65 of file AliTrackletdNdeta2.C.

anonymous enum

Calculation options

Enumerator
kUnitScale 

Do scaling by unity

kAverageScale 

Do scaling by full average

kEtaScale 

Do scaling by eta differential

kFullScale 

Do scaling by fully differential

kDTFS 

Correct for decay of strange to secondary

kFake 

Correct for fakes even if doing DTFS

kCentAverage 

Correct for centrality assumetry

kClosure 

MC closure test

kDebug 

Debug flat

kDefaultProc 

Default processing options

Definition at line 96 of file AliTrackletdNdeta2.C.

anonymous enum
Enumerator
kTopBackground 

Definition at line 118 of file AliTrackletdNdeta2.C.

Constructor & Destructor Documentation

AliTrackletdNdeta2::AliTrackletdNdeta2 ( )

Constructor

Definition at line 801 of file AliTrackletdNdeta2.C.

Member Function Documentation

Bool_t AliTrackletdNdeta2::CalculateSEF ( Container simCont,
const TAxis centAxis,
TDirectory *  out 
)

Calculate the strangeness enhancement factor by looking at the species distributions relative to pions.

Parameters
simContSimulation container
centAxisCentrality axis
outOutput directory
Returns
true on success

Definition at line 1148 of file AliTrackletdNdeta2.C.

Referenced by Process().

void AliTrackletdNdeta2::CloseCanvas ( )

Close the canvas for good

Definition at line 2175 of file AliTrackletdNdeta2.C.

Referenced by Visualize().

void AliTrackletdNdeta2::CreateCanvas ( const TString outputName)

Create our canvas

Parameters
outputNameOutput file name

Definition at line 2115 of file AliTrackletdNdeta2.C.

Referenced by Visualize().

Bool_t AliTrackletdNdeta2::Deltas ( Container realCont,
Container simCont,
TDirectory *  outParent,
Int_t  dim 
)

Get \( \Delta\) distributions and scale appropriately

Parameters
realContContainer of real distributions
simContContainer of simulated distributions
outParentParent directory for output
dimDimensions of dependence
Returns
true on success

Definition at line 1205 of file AliTrackletdNdeta2.C.

Referenced by ProcessBin().

Bool_t AliTrackletdNdeta2::Deltas0D ( Container realCont,
Container simCont,
TDirectory *  outParent 
)

Get \( \Delta\) distributions but only scale those from injection. In this member function, we use a fixed scaling factor of 1 except for the injection distribtions, where we use the integrated scaling factors. That is, we extract the scaling factors as

\[ k_{XY} = \frac{\int_{\mathrm{tail}}d\Delta_{X}\frac{dN}{d\Delta_{X}}}{ \int_{\mathrm{tail}}d\Delta_{Y}\frac{dN}{d\Delta_{Y}}} \]

where \( X,Y\) are either \( M, I\) or \( M', I'\)

Parameters
realContContainer of real distributions
simContContainer of simulated distributions
outParentParent directory for output
Returns
true on success

Definition at line 1224 of file AliTrackletdNdeta2.C.

Referenced by Deltas().

Bool_t AliTrackletdNdeta2::Deltas1D ( Container realCont,
Container simCont,
TDirectory *  outParent 
)

Get \( \Delta\) distributions and scale them appropriately. In this member function, we use the integrated scaling factors (e.g., as done in the past). That is, we extract the scaling factors as

\[ k_{XY} = \frac{\int_{\mathrm{tail}}d\Delta_{X}\frac{dN}{d\Delta_{X}}}{ \int_{\mathrm{tail}}d\Delta_{Y}\frac{dN}{d\Delta_{Y}}} \]

where \( X,Y\) are one of \( M, M', I, I'\)

Parameters
realContContainer of real distributions
simContContainer of simulated distributions
outParentParent directory for output
Returns
true on success

Definition at line 1295 of file AliTrackletdNdeta2.C.

Referenced by Deltas().

Bool_t AliTrackletdNdeta2::Deltas2D ( Container realCont,
Container simCont,
TDirectory *  outParent 
)

Get \( \Delta\) distributions and scale them appropriately. In this member function, we use the \(\eta\) differential scaling factors. That is, we extract the scaling factors as

\[ k_{XY}(\eta) = \frac{\int_{\mathrm{tail}}d\Delta_{X}\frac{d^2N}{d\Delta_{X}d\eta}}{ \int_{\mathrm{tail}}d\Delta_{Y}\frac{d^2N}{d\Delta_{Y}d\eta}} \]

where \( X,Y\) are one of \( M, M', I, I'\)

Parameters
realContContainer of real distributions
simContContainer of simulated distributions
outParentParent directory for output
Returns
true on success

Definition at line 1388 of file AliTrackletdNdeta2.C.

Referenced by Deltas().

Bool_t AliTrackletdNdeta2::Deltas3D ( Container realCont,
Container simCont,
TDirectory *  outParent 
)

Get \( \Delta\) distributions and scale them appropriately. In this member function, we use the \(\eta,\mathrm{IP}_z\) differential scaling factors. That is, we extract the scaling factors as

\[ k_{XY}(\eta) = \frac{ \int_{\mathrm{tail}}d\Delta_{X}\frac{d^3N}{d\Delta_{X}d\eta d\mathrm{IP}_Z}}{ \int_{\mathrm{tail}}d\Delta_{Y}\frac{d^3N}{d\Delta_{Y}d\eta d\mathrm{IP}_Z}} \]

where \( X,Y\) are one of \( M, M', I, I'\)

Parameters
realContContainer of real distributions
simContContainer of simulated distributions
outParentParent directory for output
Returns
true on success

Definition at line 1514 of file AliTrackletdNdeta2.C.

Referenced by Deltas().

TLegend * AliTrackletdNdeta2::DrawInPad ( TVirtualPad *  c,
Int_t  pad,
TObject o,
Option_t opt 
)

Draw an object in a sub-pad

Parameters
cCanvas (or pad)
padSub-pad number
oObject to draw
optDrawing options
Returns
if a legend is drawn, return that

Definition at line 2221 of file AliTrackletdNdeta2.C.

Referenced by VisualizeClosure(), VisualizeDelta(), VisualizeDetails(), VisualizeFinal(), VisualizeGeneral(), VisualizePrimary(), VisualizeResult(), VisualizeSpecies(), VisualizeSpeciesDelta(), and VisualizeWeights().

void AliTrackletdNdeta2::FlattenCentrality ( TH2 h,
Container c 
)

Flatten the result with respect to the mean centrality of the bin. This scales each IPz row by the mean centrality in that row divided by the mean centrality of the full bin. This only happens if the appropriate flag is set.

Parameters
hResult histogram
cReal data container.

Definition at line 2060 of file AliTrackletdNdeta2.C.

Referenced by Results().

TH1 * AliTrackletdNdeta2::FractionFit ( TDirectory *  outDir,
TH1 realDeltaM,
TH1 simDeltaC,
TH1 simDeltaP,
TH1 simDeltaS 
)

Do a template fit of

\[ \frac{dN}{d\Delta_M} = a\frac{dN}{d\Delta_C'} + b\frac{dN}{d\Delta_P'} + c\frac{dN}{d\Delta_S'} \]

That is, find parameters \( a, b, c\) that scales the simulation combinatorics \( C'\), primaries \( P'\), and secondaries \( S'\) to match the data \( M\)

Parameters
outDir
realDeltaM
simDeltaC
simDeltaP
simDeltaS
Returns
fitted sum

Definition at line 1665 of file AliTrackletdNdeta2.C.

Referenced by Deltas0D(), Deltas1D(), Deltas2D(), and Deltas3D().

THStack * AliTrackletdNdeta2::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.

Parameters
nameName of stack
titleTitle of stack
realListContainer of real data
simListContainer of simulated data
dataOptOptions for real data
simOptOptions for simulated data
Returns
The created stack

Definition at line 2283 of file AliTrackletdNdeta2.C.

Referenced by VisualizeGeneral().

Double_t AliTrackletdNdeta2::MeanY ( TH1 h,
Double_t e 
)

Get mean of a histogram content by fitting with a constant.

Parameters
hThe histogram to get the mean off
eOn return, the fit error
Returns
The fit parameter

Definition at line 3574 of file AliTrackletdNdeta2.C.

Referenced by Deltas2D(), and ObsTitle().

Double_t AliTrackletdNdeta2::MeanZ ( TH2 h,
Double_t e 
)

Get mean of a histogram content by fitting with a constant.

Parameters
hThe histogram to get the mean off
eOn return, the fit error
Returns
The fit parameter

Definition at line 3590 of file AliTrackletdNdeta2.C.

Referenced by Deltas3D(), and ObsTitle().

void AliTrackletdNdeta2::ModLegend ( TVirtualPad *  p,
TLegend *  l,
Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2 
)

Modify placement of legend

Parameters
pPad it's drawn in
lThe legend
x1New X1 coordiante in pad NDC
y1New Y1 coordiante in pad NDC
x2New X2 coordiante in pad NDC
y2New Y2 coordiante in pad NDC

Definition at line 2267 of file AliTrackletdNdeta2.C.

Referenced by VisualizeClosure(), VisualizeDelta(), VisualizeFinal(), VisualizeGeneral(), VisualizePrimary(), VisualizeResult(), VisualizeSpecies(), and VisualizeWeights().

const char* AliTrackletdNdeta2::ObsTitle ( ) const
inline

The observable title

Returns
Observable title

Definition at line 749 of file AliTrackletdNdeta2.C.

Referenced by Process(), Results(), and VisualizeResult().

void AliTrackletdNdeta2::PrintCanvas ( const char *  title,
const char *  shortTitle = "page",
Float_t  size = .7 
)

Print the canvas

Parameters
titleTitle of this page
shortTitleShort title of page
sizeSize of title

Definition at line 2190 of file AliTrackletdNdeta2.C.

Referenced by VisualizeClosure(), VisualizeDelta(), VisualizeDetails(), VisualizeFinal(), VisualizeGeneral(), VisualizeParams(), VisualizePrimary(), VisualizeResult(), VisualizeSpecies(), VisualizeSpeciesDelta(), and VisualizeWeights().

Bool_t AliTrackletdNdeta2::Process ( Container realTop,
Container simTop,
TDirectory *  outTop,
Int_t  maxBins 
)

Process the data

Parameters
realTopTop-level container of real data
simTopTop-level container of simulated data
outTopTop-level output directory
maxBinsMaximum number of bins to process
Returns
true on success

Definition at line 903 of file AliTrackletdNdeta2.C.

Referenced by Run().

Bool_t AliTrackletdNdeta2::ProcessBin ( Double_t  c1,
Double_t  c2,
Container realTop,
Container simTop,
Double_t  realEff,
Double_t  simEff,
TDirectory *  outTop 
)

Process a single centrality bin

Parameters
c1Lower centrality bound
c2Upper centrality bound
realTopReal container
simTopSimulation container
realEffTrigger efficiency for real data
simEffTrigger efficiency for simulated data
outTopTop-level output directory
Returns
true on success

Definition at line 1027 of file AliTrackletdNdeta2.C.

Referenced by Process().

Bool_t AliTrackletdNdeta2::ProcessBin ( Double_t  c1,
Double_t  c2,
Container realCont,
Container simCont,
Double_t  realEff,
Double_t  simEff,
TDirectory *  outTop,
TDirectory *  outDir,
Int_t  dimen 
)

Process a single centrality bin

Parameters
c1Lower centrality bound
c2Upper centrality bound
realContReal container
simContSimulation container
realEffTrigger efficiency for real data
simEffTrigger efficiency for simulated data
outTopTop-level output directory
outDirCurrent output directory
dimenDimensions of k depdendence
Returns
true on success

Definition at line 1066 of file AliTrackletdNdeta2.C.

TH1 * AliTrackletdNdeta2::Results ( Container realCont,
Container simCont,
Double_t  realEff,
Double_t  simEff,
TDirectory *  outParent,
Int_t  deltaDimen 
)

Calculate the result as

\[ R_{\eta,\mathrm{IP}_z} = \frac{G\prime_{\eta,\mathrm{IP}_z}}{ (1-\beta\prime)M\prime_{\eta,\mathrm{IP}_z}} (1-\beta)M_{\eta,\mathrm{IP}_z} \]

where

  • \( G'\) is the generated, primary, charged particles
  • \( M'\) is the measured tracklets in simulated data
  • \( \beta'=C'/M'\) is the fraction of background tracklets in simulated data
  • \( C'\) is the tracklets from combinatorics in simulated data
  • \( M\) is the measured tracklets in real data
  • \( \beta=k\beta'\) is the fraction of background tracklets in real data
  • \( k\) is the scalar to real, background, tracklets from simulated, background, tracklets
Parameters
realContContainer of real data
simContContainer of simulated data
realEffTrigger efficiency for real data
simEffTrigger efficiency for simulated data
outParentOutput directory
deltaDimenDimensionality of \(\Delta\) distribution.
Returns
The result histogram

Definition at line 1786 of file AliTrackletdNdeta2.C.

Referenced by ProcessBin().

void AliTrackletdNdeta2::Run ( UInt_t  proc = kDefaultProc,
UInt_t  viz = kDefaultViz,
UShort_t  maxBins = 9,
const char *  dataName = "data.root",
const char *  simName = "sim.root",
const char *  output = 0,
Double_t  fudge = 1 
)

Run it

Parameters
procProcess mask
vizVisualisation mask
maxBinsMaximum number of bins to look at
dataNameName of file from real data
simNameName of file from simulated data
outputOutput file name
fudgeFudge parameter

Definition at line 822 of file AliTrackletdNdeta2.C.

Referenced by Post().

TH1 * AliTrackletdNdeta2::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

Parameters
hHistogram
colorColor of histogram
markerMarker style
sizeMarker size
fillFill style
lineLine style
widthLine width
Returns
The modified histogram

Definition at line 3553 of file AliTrackletdNdeta2.C.

Referenced by ProcessBin(), Results(), and WriteDeltas().

void AliTrackletdNdeta2::StackMinMax ( THStack *  stack,
Double_t min,
Double_t max 
)
static

Definition at line 2555 of file AliTrackletdNdeta2.C.

Referenced by VisualizeFinal().

Bool_t AliTrackletdNdeta2::Visualize ( Container realSums,
Container simSums,
Container realRess,
Container simRess,
TDirectory *  outTop,
Int_t  maxBins 
)

Visualize the results

Parameters
realSumsTop-level container of real data sums
simSumsTop-level container of simulated data sums
realRessTop-level container of real data results
simRessTop-level container of simulated data results
outTopTop-level directory of output
maxBinsMaximum number of bins to visualize
Returns
true on success

Definition at line 2318 of file AliTrackletdNdeta2.C.

Referenced by Run().

Bool_t AliTrackletdNdeta2::VisualizeBin ( Double_t  c1,
Double_t  c2,
Container simList,
TDirectory *  outTop 
)

Visualize a centrality bin

Parameters
c1Lowest centrality limit
c2Highest centrality limit
simListSimulated data output
outTopOutput top directory
Returns
true on success

Definition at line 2795 of file AliTrackletdNdeta2.C.

Referenced by Visualize().

void AliTrackletdNdeta2::VisualizeClosure ( TDirectory *  outDir,
Int_t  i 
)

Visualize the closure test

Parameters
outDirOutput directory
iBin number

Definition at line 2651 of file AliTrackletdNdeta2.C.

Referenced by Visualize().

Bool_t AliTrackletdNdeta2::VisualizeDelta ( TDirectory *  outTop,
Int_t  dimen 
)

Visualize the \(\Delta\) distributions

Parameters
outTopOutput top directory
dimenThe dimension to show
Returns
true on success

Definition at line 3290 of file AliTrackletdNdeta2.C.

Referenced by VisualizeBin().

Bool_t AliTrackletdNdeta2::VisualizeDetails ( TDirectory *  outTop,
Int_t  dimen 
)

Visualize the details of the calculations

Parameters
outTopOutput directory
dimenThe dimension to show
Returns
true on success

Definition at line 3390 of file AliTrackletdNdeta2.C.

Referenced by VisualizeBin().

void AliTrackletdNdeta2::VisualizeFinal ( TDirectory *  outDir,
Int_t  i 
)

Visualize the final output

Parameters
outDirOutput directory
iBin number

Definition at line 2576 of file AliTrackletdNdeta2.C.

Referenced by Visualize().

void AliTrackletdNdeta2::VisualizeGeneral ( Container realList,
Container simList 
)

Visualize the general stuff

Parameters
realListReal data output list
simListSimulated data output list

Definition at line 2356 of file AliTrackletdNdeta2.C.

Referenced by Visualize().

void AliTrackletdNdeta2::VisualizeParam ( const char *  name,
Double_t y,
const char *  val 
)

Draw parameter name and value

Parameters
nameName of parameter
yCurrent y coordinate
valValue

Definition at line 2684 of file AliTrackletdNdeta2.C.

Referenced by VisualizeParam(), and VisualizeParams().

void AliTrackletdNdeta2::VisualizeParam ( const char *  name,
Double_t y,
Double_t  val 
)

Draw a real valued paraemeter

Parameters
nameName of parameter
yCurrent y coordinate
valValue

Definition at line 2701 of file AliTrackletdNdeta2.C.

void AliTrackletdNdeta2::VisualizeParam ( const char *  name,
Double_t y,
Int_t  val 
)

Draw an integer valued paraemeter

Parameters
nameName of parameter
yCurrent y coordinate
valValue

Definition at line 2708 of file AliTrackletdNdeta2.C.

void AliTrackletdNdeta2::VisualizeParam ( const char *  name,
Double_t y,
Bool_t  val 
)

Draw a boolean valued paraemeter

Parameters
nameName of parameter
yCurrent y coordinate
valValue

Definition at line 2715 of file AliTrackletdNdeta2.C.

void AliTrackletdNdeta2::VisualizeParams ( Container pars,
const char *  title 
)

Draw all parameters in a container

Parameters
pars
title

Definition at line 2722 of file AliTrackletdNdeta2.C.

Referenced by Visualize(), and VisualizeParams().

void AliTrackletdNdeta2::VisualizeParams ( Container realSums,
Container simSums 
)

Draw parameters from both real and simulated analysis

Parameters
realSumsReal data
simSumssimulated data

Definition at line 2743 of file AliTrackletdNdeta2.C.

Bool_t AliTrackletdNdeta2::VisualizePrimary ( Container simCont)

Visualize primary particles

Parameters
simContCentrality container of simulated data
Returns
true on success

Definition at line 3168 of file AliTrackletdNdeta2.C.

Referenced by VisualizeBin().

Bool_t AliTrackletdNdeta2::VisualizeResult ( TDirectory *  outTop,
Int_t  dimen 
)

Visualize the \( dN_{\mathrm{ch}}/d\eta\) and components

Parameters
outTopOutput top directory
dimenThe dimension to show
Returns
true on success

Definition at line 3473 of file AliTrackletdNdeta2.C.

Referenced by VisualizeBin().

Bool_t AliTrackletdNdeta2::VisualizeSpecies ( Container simCont)

Visualize species from simulation

Parameters
simContCentrality container of simulated data
Returns
true on success

Definition at line 2833 of file AliTrackletdNdeta2.C.

Referenced by VisualizeBin().

Bool_t AliTrackletdNdeta2::VisualizeSpeciesDelta ( Container simCont,
TDirectory *  outDir 
)

Visualize specie deltas from simulation

Parameters
simContCentrality container of simulated data
outDirOutput directory
Returns
true on success

Definition at line 2904 of file AliTrackletdNdeta2.C.

Referenced by VisualizeBin().

void AliTrackletdNdeta2::VisualizeWeights ( Container simList)

Draw the used simulation weights

Parameters
simListSimulation list

Definition at line 2450 of file AliTrackletdNdeta2.C.

Referenced by Visualize().

void AliTrackletdNdeta2::WriteDeltas ( TDirectory *  outDir,
TH1 realDeltaM,
TH1 realDeltaI,
TH1 simDeltaM,
TH1 simDeltaI,
TH1 simDeltaC,
TH1 simDeltaP,
TH1 simDeltaS,
TH1 simDeltaD,
TH1 fit 
)

Write 1-dimensional \(\Delta\) distributions to disk

Parameters
outDirOutput directory
realDeltaMReal measured \( dN/d\Delta\)
realDeltaIReal injection \( dN/d\Delta\)
simDeltaMSimulated measured \( dN/d\Delta\)
simDeltaISimulated injection \( dN/d\Delta\)
simDeltaCSimulated combinatorial \( dN/d\Delta\)
simDeltaPSimulated primary \( dN/d\Delta\)
simDeltaSSimulated secondary \( dN/d\Delta\)
simDeltaDSimulated distinct combinatorial \( dN/d\Delta\)
fitTemplate fit

Definition at line 1720 of file AliTrackletdNdeta2.C.

Referenced by Deltas0D(), Deltas1D(), Deltas2D(), and Deltas3D().

Member Data Documentation

TCanvas* AliTrackletdNdeta2::fCanvas

The canvas to draw in

Definition at line 148 of file AliTrackletdNdeta2.C.

Referenced by ClearCanvas(), CloseCanvas(), CreateCanvas(), and PrintCanvas().

Double_t AliTrackletdNdeta2::fDeltaCut

Cut on \( \Delta\) read from real data input file

Definition at line 127 of file AliTrackletdNdeta2.C.

Referenced by Run().

Double_t AliTrackletdNdeta2::fFudge

Fudge factor

Definition at line 143 of file AliTrackletdNdeta2.C.

Referenced by Results(), Run(), and VisualizeParams().

TLatex* AliTrackletdNdeta2::fHeader

The page header text

Definition at line 160 of file AliTrackletdNdeta2.C.

Referenced by CreateCanvas(), and PrintCanvas().

TString AliTrackletdNdeta2::fLastBin
TString AliTrackletdNdeta2::fLastShort
TString AliTrackletdNdeta2::fLastTitle

Cache of last title

Definition at line 154 of file AliTrackletdNdeta2.C.

Referenced by CloseCanvas(), and PrintCanvas().

Double_t AliTrackletdNdeta2::fMaxAlpha

Largest primary correction

Definition at line 141 of file AliTrackletdNdeta2.C.

Referenced by Results(), and VisualizeParams().

Double_t AliTrackletdNdeta2::fMaxDelta

Highest value of \(\Delta\) read from real data input file

Definition at line 133 of file AliTrackletdNdeta2.C.

Referenced by Run().

Double_t AliTrackletdNdeta2::fMaxK

Largest background scalar

Definition at line 137 of file AliTrackletdNdeta2.C.

Referenced by Deltas0D(), Deltas1D(), Deltas2D(), Deltas3D(), and VisualizeParams().

Double_t AliTrackletdNdeta2::fMinAlpha

Least primary correction

Definition at line 139 of file AliTrackletdNdeta2.C.

Referenced by Results(), and VisualizeParams().

Double_t AliTrackletdNdeta2::fMinK

Least background scalar

Definition at line 135 of file AliTrackletdNdeta2.C.

Referenced by Deltas0D(), Deltas1D(), Deltas2D(), Deltas3D(), and VisualizeParams().

Bool_t AliTrackletdNdeta2::fRealIsSim

Definition at line 161 of file AliTrackletdNdeta2.C.

Referenced by Process(), Results(), and Run().

Double_t AliTrackletdNdeta2::fSEF

Strangeness enhancement factor - scale sim to real

Definition at line 145 of file AliTrackletdNdeta2.C.

Referenced by CalculateSEF(), and Results().

Double_t AliTrackletdNdeta2::fTailDelta

Lower cut on \(\Delta\) tail read from real data input file

Definition at line 129 of file AliTrackletdNdeta2.C.

Referenced by Run().

Double_t AliTrackletdNdeta2::fTailMax

Upper cut on \(\Delta\) tail read from real data input file

Definition at line 131 of file AliTrackletdNdeta2.C.

Referenced by Run().

TPad* AliTrackletdNdeta2::fTop

Top bar to put title in

Definition at line 150 of file AliTrackletdNdeta2.C.

Referenced by ClearCanvas(), CreateCanvas(), and PrintCanvas().

UInt_t AliTrackletdNdeta2::fViz

Vizualisation options

Definition at line 123 of file AliTrackletdNdeta2.C.

Referenced by CloseCanvas(), CreateCanvas(), PrintCanvas(), Results(), Run(), Visualize(), VisualizeBin(), and VisualizeParams().


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