AliPhysics  fde8a9f (fde8a9f)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliTrackletAODUtils Class Reference
Inheritance diagram for AliTrackletAODUtils:

Public Types

typedef TList Container
 

Public Member Functions

 AliTrackletAODUtils ()
 
virtual ~AliTrackletAODUtils ()
 

Static Public Member Functions

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)
 
Service functions to check histogram consistencies
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)
 
Utilities
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, TH2 *mask=0, Bool_t verb=true)
 
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)
 
Particle type utilities
static Int_tPdgArray (Int_t &size)
 
static const TAxisPdgAxis ()
 
static Int_t PdgBin (Int_t pdg)
 

Protected Member Functions

 ClassDef (AliTrackletAODUtils, 1)
 

Detailed Description

Class with utlity functions

Definition at line 55 of file AliTrackletAODUtils.C.

Member Typedef Documentation

Definition at line 58 of file AliTrackletAODUtils.C.

Constructor & Destructor Documentation

AliTrackletAODUtils::AliTrackletAODUtils ( )
inline

Dummy constructor

Definition at line 62 of file AliTrackletAODUtils.C.

virtual AliTrackletAODUtils::~AliTrackletAODUtils ( )
inlinevirtual

Dummy destructor

Definition at line 66 of file AliTrackletAODUtils.C.

Member Function Documentation

TH1 * AliTrackletAODUtils::AverageOverIPz ( TH2 h,
const char *  name,
UShort_t  mode,
TH1 ipz,
TH2 mask = 0,
Bool_t  verb = true 
)
static

Average primary particle \(\mathrm{d}N_{\mathrm{ch}}/\mathrm{d}\\eta\) over \(\mathrm{IP}_z\)

Mode can be one of

  • 0: Scale average by content of ipz and do error propagation
  • 1: Only propagate errors from ipz (no scale)
  • 2: Do not propagate errors or scale by ipz
Parameters
hHistogram
nameName of projection
modeMode of operation.
ipzVertex distribution
maskOptional mask - if a bin is zero here, do not count it in average.
verbWhether to be verbose
Returns
Newly allocated histogram or null

Definition at line 1801 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::Deltas3D(), AliTrackletdNdeta::DrawdNdeta(), AliTrackletdNdeta::DrawScalars(), AliTrackletdNdeta::GetScaledCombi(), AliTrackletAODdNdeta::Histos::ProjectEtaPdgIPz(), and AliTrackletdNdeta2::Results().

Color_t AliTrackletAODUtils::CentColor ( const TAxis axis,
Double_t  c1,
Double_t  c2 
)
static

Return colour correspondig to a centrality bin

Parameters
axisCentrality axis
c1Least centrality
c2Largest centrality
Returns
Colour

Definition at line 2215 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::ProcessBin(), and MakeDeltaWeights::ProcessBin().

Color_t AliTrackletAODUtils::CentColor ( Int_t  bin)
static

Return colour correspondig to a centrality bin

Parameters
binCentrality bin number
Returns
Colour

Definition at line 2198 of file AliTrackletAODUtils.C.

const char * AliTrackletAODUtils::CentName ( Double_t  c1,
Double_t  c2 
)
static

Get name of centrality folder

Parameters
c1Lower bound
c2Upper bound
Returns
String

Definition at line 2189 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::CalculateSEF(), AliTrackletAODdNdeta::CentBin::CentBin(), AliTrackletdNdeta2::ProcessBin(), MakeDeltaWeights::ProcessBin(), and AliTrackletdNdeta2::VisualizeBin().

Bool_t AliTrackletAODUtils::CheckAxis ( const char *  which,
const TAxis a1,
const TAxis a2,
Bool_t  alsoLbls 
)
static

Check that axis definitions are compatible

Parameters
whichWhich axis we're checking
a1First axis
a2Second axis
alsoLblsIf true, also check labels
Returns
true if the axes are compatible

Definition at line 930 of file AliTrackletAODUtils.C.

Referenced by CheckConsistency().

Bool_t AliTrackletAODUtils::CheckAxisBins ( const char *  which,
const TAxis a1,
const TAxis a2 
)
static

In case of non-uniform bins, check each bin edge to see if they are the same

Parameters
whichWhich axis we're checking
a1First axis
a2Second axis
Returns
true if all bin edges are the same

Definition at line 868 of file AliTrackletAODUtils.C.

Referenced by CheckAxis().

Bool_t AliTrackletAODUtils::CheckAxisLabels ( const char *  which,
const TAxis a1,
const TAxis a2 
)
static

Check if all bin labels (if specified) are the same

Parameters
whichWhich axis we're checking
a1First axis
a2Second axis
Returns
True if all bin labels are the same

Definition at line 897 of file AliTrackletAODUtils.C.

Referenced by CheckAxis().

Bool_t AliTrackletAODUtils::CheckAxisLimits ( const char *  which,
const TAxis a1,
const TAxis a2 
)
static

Check axis limits (min,max) are the same

Parameters
whichWhich axis we're checking
a1First axis
a2Second axis
Returns
true if axis min/max are indetical

Definition at line 852 of file AliTrackletAODUtils.C.

Referenced by CheckAxis().

Bool_t AliTrackletAODUtils::CheckAxisNBins ( const char *  which,
const TAxis a1,
const TAxis a2 
)
static

Check if both axis have the same number of bins

Parameters
whichWhich axis is being checked
a1First axis
a2Second axis
Returns
true of both axis have equal number of bins

Definition at line 840 of file AliTrackletAODUtils.C.

Referenced by CheckAxis().

Bool_t AliTrackletAODUtils::CheckConsistency ( const TH1 h1,
const TH1 h2 
)
static

Check if two histograms are compatible by checking each defined axis.

Parameters
h1First histogram
h2Second histogram
Returns
true of they are compatible

Definition at line 943 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::Process(), RatioH(), MakeDeltaWeights::Run(), PureMCWeights::Run(), and AliTrackletdNdeta::Run().

AliTrackletAODUtils::ClassDef ( AliTrackletAODUtils  ,
 
)
protected
TObject * AliTrackletAODUtils::CloneAndAdd ( Container c,
TObject o 
)
static

Clone an object and add to container

Parameters
cContainer to add to
oObject to clone
Returns
The new copy of the object

Definition at line 1891 of file AliTrackletAODUtils.C.

Referenced by AliTrackletAODdNdeta::CentBin::MasterFinalize(), and AliTrackletAODdNdeta::MasterFinalize().

void AliTrackletAODUtils::CopyAttr ( const TH1 src,
TH1 dest 
)
static

Copy attributes from one histogram to another

Parameters
srcSource histogram
destDestination histogram

Definition at line 1226 of file AliTrackletAODUtils.C.

Referenced by AliTrackletAODdNdeta::CentBin::EstimateBackground().

TH1 * AliTrackletAODUtils::CopyH1 ( Container parent,
const char *  name,
const char *  newName = 0,
Bool_t  verb = true 
)
static

Get a copy of a 1D histogram from a container

Parameters
parentContainer
nameName of histogram
newNameOptional new name of copy
verbWhether to be verbose
Returns
Pointer to histogram or null

Definition at line 1189 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::Deltas0D(), AliTrackletdNdeta2::Deltas1D(), AliTrackletdNdeta::DrawdNdeta(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletdNdeta::FindDelta(), AliTrackletdNdeta::Make2Stack(), AliTrackletdNdeta2::Make2Stack(), AliTrackletdNdeta2::Process(), AliTrackletdNdeta2::Results(), and AliTrackletdNdeta::Run().

TH2 * AliTrackletAODUtils::CopyH2 ( Container parent,
const char *  name,
const char *  newName = 0,
Bool_t  verb = true 
)
static
TH3 * AliTrackletAODUtils::CopyH3 ( Container parent,
const char *  name,
const char *  newName = 0,
Bool_t  verb = true 
)
static

Get a copy of a 3D histogram from a container

Parameters
parentContainer
nameName of histogram
newNameOptional new name of copy
verbWhether to be verbose
Returns
Pointer to histogram or null

Definition at line 1213 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::Deltas3D(), and AliTrackletAODdNdeta::CentBin::EstimateBackground().

void AliTrackletAODUtils::FixAxis ( TAxis axis,
const char *  title = 0 
)
static
void AliTrackletAODUtils::FixMinMax ( TH1 h,
Bool_t  ignoreZero = true 
)
static

Fix min/max value of histogram based on content and errors.

Parameters
hHistogram to fix up
ignoreZeroIf true, ignore zero bins

Definition at line 1980 of file AliTrackletAODUtils.C.

Referenced by FixMinMax(), RatioH(), and AliTrackletdNdeta2::VisualizeResult().

void AliTrackletAODUtils::FixMinMax ( THStack *  h,
Bool_t  ignoreZero = true 
)
static

Fix min/max value of a histogram stack based on content and errors.

Parameters
hHistogram to fix up
ignoreZeroIf true, ignore zero bins

Definition at line 2000 of file AliTrackletAODUtils.C.

Int_t AliTrackletAODUtils::GetB ( Container parent,
const char *  name,
Bool_t  def = false,
Bool_t  verb = true 
)
static

Get a boolean value from a container

Parameters
parentParent container
nameName of parameter
defDefault value if not found
verbWhether to be verbose
Returns
The value (or default if not found)

Definition at line 1177 of file AliTrackletAODUtils.C.

AliTrackletAODUtils::Container * AliTrackletAODUtils::GetC ( Container parent,
const char *  name,
Bool_t  verb = true 
)
static

Get a container from a container

Parameters
parentContainer
nameName of container
verbWhether to be verbose
Returns
Pointer to container or null

Definition at line 1130 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::CalculateSEF(), AliTrackletdNdeta2::Deltas0D(), AliTrackletdNdeta2::Deltas1D(), AliTrackletdNdeta2::Deltas2D(), AliTrackletdNdeta2::Deltas3D(), AliTrackletdNdeta::DrawAlpha(), AliTrackletdNdeta::DrawBackground(), AliTrackletdNdeta::DrawDeltas(), AliTrackletdNdeta::DrawdNdeta(), AliTrackletdNdeta::DrawParams(), AliTrackletdNdeta::DrawScalars(), AliTrackletdNdeta::DrawWeights(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletAODdNdeta::Histos::FinalizeInit(), AliTrackletAODdNdeta::CentBin::FinalizeInit(), AliTrackletdNdeta::FindDelta(), AliTrackletdNdeta::FindSub(), AliTrackletdNdeta::GetRealBackground(), AliTrackletdNdeta::GetRealSignal(), AliTrackletdNdeta::GetScaledCombi(), AliTrackletdNdeta::GetSim(), AliTrackletAODdNdeta::CentBin::MasterFinalize(), AliTrackletdNdeta2::ProcessBin(), MakeDeltaWeights::ProcessBin(), AliTrackletdNdeta::ProcessBin(), AliTrackletdNdeta2::Results(), MakeDeltaWeights::Run(), PureMCWeights::Run(), AliTrackletdNdeta2::Run(), AliTrackletdNdeta::Run(), AliTrackletdNdeta2::VisualizeBin(), AliTrackletdNdeta2::VisualizeParams(), AliTrackletdNdeta2::VisualizePrimary(), AliTrackletdNdeta2::VisualizeSpecies(), AliTrackletdNdeta2::VisualizeSpeciesDelta(), AliTrackletdNdeta2::VisualizeWeights(), and AliTrackletAODdNdeta::Histos::WorkerInit().

AliTrackletAODUtils::Container * AliTrackletAODUtils::GetC ( TDirectory *  parent,
const char *  name,
Bool_t  verb = true 
)
static

Get a container from a directory

Parameters
parentContainer
nameName of container
verbWhether to be verbose
Returns
Pointer to container or null

Definition at line 1136 of file AliTrackletAODUtils.C.

Double_t AliTrackletAODUtils::GetD ( Container parent,
const char *  name,
Double_t  def = -1,
Bool_t  verb = true 
)
static

Get a double-precision value from a container

Parameters
parentParent container
nameName of parameter
defDefault value if not found
verbWhether to be verbose
Returns
The value (or default if not found)

Definition at line 1153 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::Deltas0D(), AliTrackletdNdeta2::Deltas1D(), AliTrackletdNdeta::DrawParams(), AliTrackletdNdeta::DrawScalars(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletdNdeta::FindDelta(), AliTrackletdNdeta::GetScaledCombi(), AliTrackletdNdeta2::Run(), AliTrackletdNdeta::Run(), AliTrackletdNdeta2::VisualizeParams(), and MakeDeltaWeights::Weights1().

TH1 * AliTrackletAODUtils::GetH1 ( TDirectory *  parent,
const char *  name,
Bool_t  verb = true 
)
static

Get a 1D histogram from a directory

Parameters
parentContainer
nameName of histogram
verbWhether to be verbose
Returns
Pointer to histogram or null

Definition at line 1080 of file AliTrackletAODUtils.C.

TH2 * AliTrackletAODUtils::GetH2 ( TDirectory *  parent,
const char *  name,
Bool_t  verb = true 
)
static

Get a 2D histogram from a directory

Parameters
parentDirectory
nameName of histogram
verbWhether to be verbose
Returns
Pointer to histogram or null

Definition at line 1090 of file AliTrackletAODUtils.C.

TH3 * AliTrackletAODUtils::GetH3 ( Container parent,
const char *  name,
Bool_t  verb = true 
)
static

Get a 3D histogram from a container

Parameters
parentContainer
nameName of histogram
verbWhether to be verbose
Returns
Pointer to histogram or null

Definition at line 1095 of file AliTrackletAODUtils.C.

Referenced by CopyH3(), AliTrackletdNdeta::DrawDeltas(), AliTrackletAODdNdeta::Histos::FinalizeInit(), AliTrackletdNdeta::FindDelta(), and MakeDeltaWeights::Weights3().

TH3 * AliTrackletAODUtils::GetH3 ( TDirectory *  parent,
const char *  name,
Bool_t  verb = true 
)
static

Get a 3D histogram from a directory

Parameters
parentDirectory
nameName of histogram
verbWhether to be verbose
Returns
Pointer to histogram or null

Definition at line 1100 of file AliTrackletAODUtils.C.

THStack * AliTrackletAODUtils::GetHS ( Container parent,
const char *  name,
Bool_t  verb = true 
)
static
THStack * AliTrackletAODUtils::GetHS ( TDirectory *  parent,
const char *  name,
Bool_t  verb = true 
)
static

Get a stack from a directory

Parameters
parentContainer
nameName of container
verbWhether to be verbose
Returns
Pointer to container or null

Definition at line 1118 of file AliTrackletAODUtils.C.

Int_t AliTrackletAODUtils::GetI ( Container parent,
const char *  name,
Int_t  def = -1,
Bool_t  verb = true 
)
static

Get a integer value from a container

Parameters
parentParent container
nameName of parameter
defDefault value if not found
verbWhether to be verbose
Returns
The value (or default if not found)

Definition at line 1165 of file AliTrackletAODUtils.C.

TObject * AliTrackletAODUtils::GetO ( Container parent,
const char *  name,
TClass *  cls = 0,
Bool_t  verb = true 
)
static

Get an object from a container.

Parameters
parentContainer
nameName of object
clsIf not null, check if object has this type
verbWhether to be verboe
Returns
Pointer to object or null

Definition at line 1025 of file AliTrackletAODUtils.C.

Referenced by GetB(), GetC(), GetD(), GetH1(), GetH2(), GetH3(), GetHS(), GetI(), GetP1(), and GetP2().

TObject * AliTrackletAODUtils::GetO ( TDirectory *  parent,
const char *  name,
TClass *  cls = 0,
Bool_t  verb = true 
)
static

Get an object from a directory.

Parameters
parentdirectory
nameName of object
clsIf not null, check if object has this type
verbWhether to be verboe
Returns
Pointer to object or null

Definition at line 1050 of file AliTrackletAODUtils.C.

static TProfile* AliTrackletAODUtils::GetP ( Container parent,
const char *  name,
Bool_t  verb = true 
)
inlinestatic

Get a profile from a container

Parameters
parentContainer
nameName of profile
verbWhether to be verbose
Returns
Pointer to profile or null

Definition at line 269 of file AliTrackletAODUtils.C.

Referenced by AliTrackletAODdNdeta::MasterFinalize().

TProfile * AliTrackletAODUtils::GetP1 ( Container parent,
const char *  name,
Bool_t  verb = true 
)
static

Get a 1D profile from a container

Parameters
parentContainer
nameName of profile
verbWhether to be verbose
Returns
Pointer to profile or null

Definition at line 1105 of file AliTrackletAODUtils.C.

Referenced by AliTrackletAODdNdeta::CentBin::FinalizeInit(), and GetP().

TProfile2D * AliTrackletAODUtils::GetP2 ( Container parent,
const char *  name,
Bool_t  verb = true 
)
static

Get a 2D profile from a container

Parameters
parentContainer
nameName of profile
verbWhether to be verbose
Returns
Pointer to profile or null

Definition at line 1111 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta::DrawWeights(), and AliTrackletdNdeta2::VisualizeWeights().

TDirectory * AliTrackletAODUtils::GetT ( TDirectory *  parent,
const char *  name,
Bool_t  verb = true 
)
static

Get a directory from a directory

Parameters
parentContainer
nameName of container
verbWhether to be verbose
Returns
Pointer to container or null

Definition at line 1142 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::ProcessBin().

Double_t AliTrackletAODUtils::Integrate ( TH1 h,
Double_t  min,
Double_t  max,
Double_t err 
)
static

Helper function to integrate a histogram. Note, for symmetric histograms, both sides are integrate, and the errors added in quadrature.

Parameters
hHistogram to integrate
minLeast limint
maxLargest limit
errOn return, the error on the integral (95% CL)
Returns
The integral value.

Definition at line 1907 of file AliTrackletAODUtils.C.

Referenced by AliTrackletAODdNdeta::Histos::ProjectEtaDeltaPdgPart().

TH1 * AliTrackletAODUtils::Make1D ( Container c,
const TString name,
const TString title,
Color_t  color,
Style_t  style,
const TAxis xAxis 
)
static

Service function to make a 1D histogram from an axis definition

Parameters
cContainer to add to
nameName of histogram
titleTitle of histogram
colorColor
styleMarker style
xAxisX axis to use
Returns
Newly created histogram

Definition at line 1241 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta::DrawScalars(), AliTrackletdNdeta::GetScaledCombi(), AliTrackletdNdeta2::Process(), AliTrackletAODdNdeta::Histos::ProjectEtaDeltaPdgPart(), PureMCWeights::Run(), AliTrackletdNdeta::Run(), AliTrackletAODdNdeta::CentBin::WorkerInit(), and AliTrackletAODdNdeta::WorkerInit().

TProfile * AliTrackletAODUtils::Make1P ( Container c,
const TString name,
const TString title,
Color_t  color,
Style_t  style,
const TAxis xAxis 
)
static

Service function to make a 1D profile from an axis definition

Parameters
cContainer to add to
nameName of profile
titleTitle of profile
colorColor
styleMarker style
xAxisX axis to use
Returns
Newly created profile

Definition at line 1284 of file AliTrackletAODUtils.C.

Referenced by AliTrackletAODdNdeta::CentBin::WorkerInit(), and AliTrackletAODdNdeta::WorkerInit().

TH2 * AliTrackletAODUtils::Make2D ( Container c,
const TString name,
const TString title,
Color_t  color,
Style_t  style,
const TAxis xAxis,
const TAxis yAxis 
)
static

Service function to make a 2D histogram from axis definitions

Parameters
cContainer to add to
nameName of histogram
titleTitle of histogram
colorColor
styleMarker style
xAxisX axis definition
yAxisY axis definition
Returns
Newly created histogram

Definition at line 1327 of file AliTrackletAODUtils.C.

Referenced by PureMCWeights::Run(), AliTrackletAODdNdeta::Histos::WorkerInit(), AliTrackletAODdNdeta::WorkerInit(), and AliTrackletAODWeightedMCdNdeta::WorkerInit().

TProfile2D * AliTrackletAODUtils::Make2P ( Container c,
const TString name,
const TString title,
Color_t  color,
Style_t  style,
const TAxis xAxis,
const TAxis yAxis 
)
static

Service function to make a 2D profile from axis definitions

Parameters
cContainer to add to
nameName of profile
titleTitle of profile
colorColor
styleMarker style
xAxisX axis definition
yAxisY axis definition
Returns
Newly created profile

Definition at line 1463 of file AliTrackletAODUtils.C.

Referenced by AliTrackletAODWeightedMCdNdeta::WorkerInit().

TH3 * AliTrackletAODUtils::Make3D ( Container c,
const TString name,
const TString title,
Color_t  color,
Style_t  style,
const TAxis xAxis,
const TAxis yAxis,
const TAxis zAxis 
)
static

Service function to make a 3D histogram from axis definitions

Parameters
cContainer to add to
nameName of histogram
titleTitle of histogram
colorColor
styleMarker style
xAxisX axis definition
yAxisY axis definition
zAxisZ axis definition
Returns
Newly created histogram

Definition at line 1382 of file AliTrackletAODUtils.C.

Referenced by AliTrackletAODdNdeta::Histos::WorkerInit().

TFile * AliTrackletAODUtils::OpenFile ( const char *  filename)
static

Open a file

Parameters
filenameFile name
Returns
Opened file handle or null

Definition at line 2179 of file AliTrackletAODUtils.C.

Referenced by MakeDeltaWeights::Run(), and AliTrackletdNdeta2::Run().

Int_t * AliTrackletAODUtils::PdgArray ( Int_t size)
static

Definition at line 2016 of file AliTrackletAODUtils.C.

Referenced by PdgAxis(), and PdgBin().

void AliTrackletAODUtils::PdgAttr ( Int_t  pdg,
TString nme,
Color_t &  c,
Style_t &  s 
)
static

Get attributes corresponding to a PDG code

Parameters
pdgPDG code
nmeOn return, the name
cOn return, the color
sOn return, the marker style

Definition at line 2081 of file AliTrackletAODUtils.C.

Referenced by AliTrackletAODdNdeta::Histos::ProjectEtaDeltaPdgPart(), AliTrackletAODdNdeta::Histos::ProjectEtaPdg(), AliTrackletAODdNdeta::Histos::ProjectEtaPdgIPz(), PureMCWeights::Run(), and AliTrackletdNdeta2::VisualizeSpeciesDelta().

const TAxis & AliTrackletAODUtils::PdgAxis ( )
static

Get the PDG axis

Returns
Reference to static TAxis object

Definition at line 2157 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::VisualizeSpeciesDelta(), and AliTrackletAODdNdeta::Histos::WorkerInit().

Int_t AliTrackletAODUtils::PdgBin ( Int_t  pdg)
static

Get the PDG bin

Parameters
pdgParticle type
Returns
Bin number

Definition at line 2145 of file AliTrackletAODUtils.C.

Referenced by AliTrackletAODdNdeta::Histos::ProcessTracklet().

void AliTrackletAODUtils::PrintAxis ( const TAxis axis,
Int_t  nSig = 2,
const char *  alt = 0 
)
static

Print axis

Parameters
axisAxis to print
nSigNumber of significant digits
altAlternative

Definition at line 1610 of file AliTrackletAODUtils.C.

Referenced by AliTrackletAODdNdeta::Print(), and AliTrackletdNdeta2::Process().

TH1 * AliTrackletAODUtils::ProjectDelta ( TH2 h)
static

Project (integrate)

\[ \frac{\mathrm{d}^2N}{\mathrm{d}\eta\mathrm{d}\Delta} \]

over \(\eta\)

\[ \frac{\mathrm{d}N}{\mathrm{d}\Delta} \]

Parameters
h
Returns

Definition at line 1772 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::Deltas2D(), AliTrackletdNdeta::DrawDeltas(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletdNdeta::FindDelta(), AliTrackletAODdNdeta::Histos::MasterFinalize(), and ProjectDeltaFull().

TH1 * AliTrackletAODUtils::ProjectDeltaFull ( TH3 h)
static

Project (integrate)

\[ \frac{\mathrm{d}^3N}{\mathrm{d}\eta\mathrm{d}\Delta\mathrm{dIP}_z} \]

over \(\eta,\mathrm{IP}_z\)

\[ \frac{\mathrm{d}N}{\mathrm{d}\Delta} \]

Parameters
h
Returns

Definition at line 1786 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::Deltas3D().

static TH2* AliTrackletAODUtils::ProjectEtaDelta ( TH3 h)
static

Project (integrate)

\[ \frac{\mathrm{d}^3N}{\mathrm{d}\eta\mathrm{d}\Delta\mathrm{dIP}_z} \]

over \(\mathrm{IP}_z\) to return

\[ \frac{\mathrm{d}^2N}{\mathrm{d}\eta\mathrm{d}\Delta} \]

The integral is scaled to number of bins, that is, we calculate the weighted average over \(\mathrm{IP}_z\)

\begin{eqnarray*} N(\eta,\Delta) &=& \sum_{\mathrm{IP}_z} w N(\eta,\Delta,\mathrm{IP}_z)\\ \delta N(\eta,\Delta) &=& \sqrt{1/\sum_{\mathrm{IP}_z} w}\\ w &=& \delta N(\eta,\Delta,\mathrm{IP}_z) \end{eqnarray*}

Parameters
h3D histogram to integrate
Returns
Newly allocated projection

Referenced by AliTrackletdNdeta::DrawDeltas(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletdNdeta::FindDelta(), AliTrackletAODdNdeta::Histos::MasterFinalize(), and ProjectDeltaFull().

Double_t AliTrackletAODUtils::RatioE ( Double_t  n,
Double_t  en,
Double_t  d,
Double_t  ed,
Double_t er 
)
static
Double_t AliTrackletAODUtils::RatioE2 ( Double_t  n,
Double_t  e2n,
Double_t  d,
Double_t  e2d,
Double_t e2r 
)
static

Calculate ratio and error on ratio

Parameters
nNumerator value
e2nSquared numerator error
dDenominator value
e2dSquared denominator error
e2rOn return, squared ratio error
Returns
Ratio

Definition at line 1942 of file AliTrackletAODUtils.C.

TH1 * AliTrackletAODUtils::RatioH ( const TH1 num,
const TH1 denom,
const char *  name = 0 
)
static

Divide one histogram with another

Parameters
numNumerator
denomDenominator
name(optional) name of new histogram
Returns
Newly allocated histogram with ratio, or null

Definition at line 1954 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::Results().

TH1 * AliTrackletAODUtils::Scale ( TH1 h,
Double_t  x,
Double_t  xe 
)
static
TH2 * AliTrackletAODUtils::Scale ( TH2 h,
Double_t  x,
Double_t  xe 
)
static

Scale a histogram by factor with error propagation

Parameters
hHistogram to scale
xScalar
xeError on scalar
Returns
Pointer to histogram

Definition at line 989 of file AliTrackletAODUtils.C.

TH2 * AliTrackletAODUtils::Scale ( TH2 h,
TH1 s 
)
static

Scale the two dimensional histogram with content of the 1-dimensional histogram (over X)

Parameters
hHistogram to scale
sThe scalar histogram
Returns
The scaled histogram (pointer to input)

Definition at line 968 of file AliTrackletAODUtils.C.

void AliTrackletAODUtils::ScaleAxis ( TAxis ret,
Double_t  fact = 1 
)
static

Scale bins of an axis by constant factor. The number of bins remains the same.

Parameters
retAxis to modify
factFactor to scale by

Definition at line 1534 of file AliTrackletAODUtils.C.

TH2 * AliTrackletAODUtils::ScaleToIPz ( TH2 h,
TH1 ipZ,
Bool_t  full = false 
)
static

Scale each Y-row of input histogram to the number of events in second histogram. Also scale to bin-width in X direction.

Parameters
hInput histogram
ipZHistogram to scale by
fullIf true, do error propegation of IPz errors
Returns
New copy of input, scaled by second histogram

Definition at line 1626 of file AliTrackletAODUtils.C.

Referenced by AliTrackletAODdNdeta::Histos::MasterFinalize(), and AliTrackletAODdNdeta::Histos::ProjectEtaPdgIPz().

TH3 * AliTrackletAODUtils::ScaleToIPz ( TH3 h,
TH1 ipZ,
Bool_t  full = false 
)
static

Definition at line 1663 of file AliTrackletAODUtils.C.

void AliTrackletAODUtils::SetAxis ( TAxis axis,
Int_t  n,
Double_t borders 
)
static

Set an axis based ona bin borders

Parameters
axisAxis to set
nNumber of bins
bordersBin borders (n+1 entries)

Definition at line 1548 of file AliTrackletAODUtils.C.

Referenced by SetAxis(), AliTrackletAODdNdeta::SetCentralityAxis(), AliTrackletAODdNdeta::SetEtaAxis(), AliTrackletAODdNdeta::SetIPzAxis(), and AliTrackletAODdNdeta::SetPhiAxis().

void AliTrackletAODUtils::SetAxis ( TAxis axis,
const TString spec,
const char *  sep = ":," 
)
static

Set an axis based on test string of specs. The token separator is given in sep.

Parameters
axisAxis to set
specSpecification
sepToken separate

Definition at line 1554 of file AliTrackletAODUtils.C.

void AliTrackletAODUtils::SetAxis ( TAxis axis,
Int_t  n,
Double_t  l,
Double_t  h 
)
static

Set axis with least and largest values

Parameters
axisAxis to set
nNumber of bins
lLeast value
hLargest value

Definition at line 1596 of file AliTrackletAODUtils.C.

void AliTrackletAODUtils::SetAxis ( TAxis axis,
Int_t  n,
Double_t  m 
)
static

Set a symmetric axis

Parameters
axisAxis to set
nNumber of bins
mMaximum absolute value

Definition at line 1605 of file AliTrackletAODUtils.C.


The documentation for this class was generated from the following file: