AliPhysics  59e0e03 (59e0e03)
Inheritance diagram for AliTrackletAODUtils:

Classes

struct  DebugGuard
 

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, 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)
 
Particle type utilities
static Int_tPdgArray (Int_t &size)
 
static const TAxisPdgAxis ()
 
static Int_t PdgBin (Int_t pdg)
 

Detailed Description

Class with utlity functions

Definition at line 56 of file AliTrackletAODUtils.C.

Member Typedef Documentation

Definition at line 59 of file AliTrackletAODUtils.C.

Constructor & Destructor Documentation

AliTrackletAODUtils::AliTrackletAODUtils ( )
inline

Dummy constructor

Definition at line 63 of file AliTrackletAODUtils.C.

virtual AliTrackletAODUtils::~AliTrackletAODUtils ( )
inlinevirtual

Dummy destructor

Definition at line 67 of file AliTrackletAODUtils.C.

Member Function Documentation

TH1 * AliTrackletAODUtils::AverageOverIPz ( TH2 h,
const char *  name,
UShort_t  mode,
TH1 ipz,
Double_t  ipEff = 0,
TH2 mask = 0,
Bool_t  verb = false 
)
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

If mode is less than 2, and ipEff is non-zero, then we scale the histogram ipz by the inverse vertex efficiency.

Parameters
hHistogram
nameName of projection
modeMode of operation.
ipzVertex distribution
ipEffIP efficiency \( \varepsilon_{V}\)
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 1859 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::Deltas3D(), AliTrackletdNdeta::DrawdNdeta(), AliTrackletdNdeta::DrawScalars(), GetP(), 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 2278 of file AliTrackletAODUtils.C.

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

Color_t AliTrackletAODUtils::CentColor ( Int_t  bin)
static

Return colour correspondig to a centrality bin

Parameters
binCentrality bin number
Returns
Colour

Definition at line 2261 of file AliTrackletAODUtils.C.

const char * AliTrackletAODUtils::CentName ( Double_t  c1,
Double_t  c2 
)
static
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 984 of file AliTrackletAODUtils.C.

Referenced by CheckConsistency(), and ~AliTrackletAODUtils().

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 922 of file AliTrackletAODUtils.C.

Referenced by CheckAxis(), and ~AliTrackletAODUtils().

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 951 of file AliTrackletAODUtils.C.

Referenced by CheckAxis(), and ~AliTrackletAODUtils().

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 906 of file AliTrackletAODUtils.C.

Referenced by CheckAxis(), and ~AliTrackletAODUtils().

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 894 of file AliTrackletAODUtils.C.

Referenced by CheckAxis(), and ~AliTrackletAODUtils().

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 997 of file AliTrackletAODUtils.C.

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

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 1952 of file AliTrackletAODUtils.C.

Referenced by GetP(), 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 1284 of file AliTrackletAODUtils.C.

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

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 1247 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::Deltas0D(), AliTrackletdNdeta2::Deltas1D(), AliTrackletdNdeta::DrawdNdeta(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletdNdeta::FindDelta(), GetP(), 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 1271 of file AliTrackletAODUtils.C.

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

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 2041 of file AliTrackletAODUtils.C.

Referenced by FixMinMax(), GetP(), 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 2061 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 1235 of file AliTrackletAODUtils.C.

Referenced by GetP().

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 1184 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::CalculateSEF(), AliTrackletdNdeta2::Deltas0D(), AliTrackletdNdeta2::Deltas1D(), AliTrackletdNdeta2::Deltas2D(), AliTrackletdNdeta2::Deltas3D(), Computer::DoOne(), AliTrackletdNdeta::DrawAlpha(), AliTrackletdNdeta::DrawBackground(), AliTrackletdNdeta::DrawDeltas(), AliTrackletdNdeta::DrawdNdeta(), AliTrackletdNdeta::DrawGeneral(), AliTrackletdNdeta::DrawParams(), AliTrackletdNdeta::DrawScalars(), AliTrackletdNdeta::DrawWeights(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletAODdNdeta::Histos::FinalizeInit(), AliTrackletAODdNdeta::CentBin::FinalizeInit(), AliTrackletdNdeta::FindDelta(), AliTrackletdNdeta::FindSub(), GetP(), AliTrackletdNdeta::GetRealBackground(), AliTrackletdNdeta::GetRealSignal(), AliTrackletdNdeta::GetScaledCombi(), AliTrackletdNdeta::GetSim(), AliTrackletAODdNdeta::CentBin::MasterFinalize(), YieldCalculations::One::One(), AliTrackletdNdeta2::ProcessBin(), MakeDeltaWeights::ProcessBin(), AliTrackletdNdeta::ProcessBin(), AliTrackletdNdeta2::Results(), Computer::Run(), MakeDeltaWeights::Run(), PureMCWeights::Run(), ClusterCalculations::Run(), AliTrackletdNdeta2::Run(), AliTrackletdNdeta::Run(), AliTrackletdNdeta2::VisualizeBin(), AliTrackletdNdeta2::VisualizeGeneral(), 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 1190 of file AliTrackletAODUtils.C.

Double_t AliTrackletAODUtils::GetD ( Container parent,
const char *  name,
Double_t  def = -1,
Bool_t  verb = true 
)
static
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 1134 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 1144 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 1149 of file AliTrackletAODUtils.C.

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

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 1154 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 1172 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 1223 of file AliTrackletAODUtils.C.

Referenced by GetP().

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 1079 of file AliTrackletAODUtils.C.

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

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 1104 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 270 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 1159 of file AliTrackletAODUtils.C.

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

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 1165 of file AliTrackletAODUtils.C.

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

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 1196 of file AliTrackletAODUtils.C.

Referenced by GetP(), and 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 1968 of file AliTrackletAODUtils.C.

Referenced by GetP(), and 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 1299 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta::DrawScalars(), GetP(), AliTrackletdNdeta::GetScaledCombi(), AliTrackletdNdeta2::Process(), AliTrackletAODdNdeta::Histos::ProjectEtaDeltaPdgPart(), PureMCWeights::Run(), AliTrackletdNdeta::Run(), AliTrackletAODdNdeta::CentBin::WorkerInit(), AliTrackletAODdNdeta::WorkerInit(), and AliTrackletAODMCTask::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 1342 of file AliTrackletAODUtils.C.

Referenced by GetP(), 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 1385 of file AliTrackletAODUtils.C.

Referenced by GetP(), PureMCWeights::Run(), AliTrackletAODdNdeta::Histos::WorkerInit(), AliTrackletAODdNdeta::WorkerInit(), AliTrackletAODMCTask::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 1521 of file AliTrackletAODUtils.C.

Referenced by GetP(), AliTrackletAODdNdeta::WorkerInit(), and 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 1440 of file AliTrackletAODUtils.C.

Referenced by GetP(), and 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 2240 of file AliTrackletAODUtils.C.

Referenced by GetP(), YieldCalculations::One::One(), Computer::Run(), MakeDeltaWeights::Run(), ClusterCalculations::Run(), and AliTrackletdNdeta2::Run().

Int_t * AliTrackletAODUtils::PdgArray ( Int_t size)
static

Definition at line 2077 of file AliTrackletAODUtils.C.

Referenced by GetP(), 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 2142 of file AliTrackletAODUtils.C.

Referenced by Computer::DoOne(), ClusterCalculations::FixLabels(), GetP(), AliTrackletAODdNdeta::Histos::ProjectEtaDeltaPdgPart(), AliTrackletAODdNdeta::Histos::ProjectEtaPdg(), AliTrackletAODdNdeta::Histos::ProjectEtaPdgIPz(), PureMCWeights::Run(), and AliTrackletdNdeta2::VisualizeSpeciesDelta().

const TAxis & AliTrackletAODUtils::PdgAxis ( )
static
Int_t AliTrackletAODUtils::PdgBin ( Int_t  pdg)
static

Get the PDG bin

Parameters
pdgParticle type
Returns
Bin number

Definition at line 2206 of file AliTrackletAODUtils.C.

Referenced by AliTrackletAODMCTask::FilterClustersTrack(), GetP(), and 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 1668 of file AliTrackletAODUtils.C.

Referenced by GetP(), 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 1830 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::Deltas2D(), AliTrackletdNdeta::DrawDeltas(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletdNdeta::FindDelta(), GetP(), 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 1844 of file AliTrackletAODUtils.C.

Referenced by AliTrackletdNdeta2::Deltas3D(), and GetP().

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(), GetP(), AliTrackletAODdNdeta::Histos::MasterFinalize(), ProjectDeltaFull(), and ScaleDelta().

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 2003 of file AliTrackletAODUtils.C.

Referenced by GetP().

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 2015 of file AliTrackletAODUtils.C.

Referenced by GetP(), and 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 1043 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 1022 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 1592 of file AliTrackletAODUtils.C.

Referenced by GetP().

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 1684 of file AliTrackletAODUtils.C.

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

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

Definition at line 1721 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 1606 of file AliTrackletAODUtils.C.

Referenced by GetP(), 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 1612 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 1654 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 1663 of file AliTrackletAODUtils.C.


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