![]() |
AliPhysics
fffcdf3 (fffcdf3)
|
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 TObject * | GetO (Container *parent, const char *name, TClass *cls=0, Bool_t verb=true) |
static TObject * | GetO (TDirectory *parent, const char *name, TClass *cls=0, Bool_t verb=true) |
static TH1 * | GetH1 (Container *parent, const char *name, Bool_t verb=true) |
static TH1 * | GetH1 (TDirectory *parent, const char *name, Bool_t verb=true) |
static TProfile * | GetP1 (Container *parent, const char *name, Bool_t verb=true) |
static TH2 * | GetH2 (Container *parent, const char *name, Bool_t verb=true) |
static TH2 * | GetH2 (TDirectory *parent, const char *name, Bool_t verb=true) |
static TH3 * | GetH3 (Container *parent, const char *name, Bool_t verb=true) |
static TH3 * | GetH3 (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 Container * | GetC (Container *parent, const char *name, Bool_t verb=true) |
static Container * | GetC (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 TH1 * | CopyH1 (Container *parent, const char *name, const char *newName=0, Bool_t verb=true) |
static TH2 * | CopyH2 (Container *parent, const char *name, const char *newName=0, Bool_t verb=true) |
static TH3 * | CopyH3 (Container *parent, const char *name, const char *newName=0, Bool_t verb=true) |
static void | CopyAttr (const TH1 *src, TH1 *dest) |
static TH1 * | Make1D (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 TH2 * | Make2D (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis, const TAxis &yAxis) |
static TH3 * | 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 TProfile2D * | Make2P (Container *c, const TString &name, const TString &title, Color_t color, Style_t style, const TAxis &xAxis, const TAxis &yAxis) |
static TH1 * | Scale (TH1 *h, Double_t x, Double_t xe) |
static TH2 * | Scale (TH2 *h, Double_t x, Double_t xe) |
static TH2 * | Scale (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 TH2 * | ScaleToIPz (TH2 *h, TH1 *ipZ, Bool_t full=false) |
static TH3 * | ScaleToIPz (TH3 *h, TH1 *ipZ, Bool_t full=false) |
static TH3 * | ScaleDelta (TH3 *h, TH2 *scale) |
static TH2 * | ProjectEtaDelta (TH3 *h) |
static TH1 * | ProjectDelta (TH2 *h) |
static TH1 * | ProjectDeltaFull (TH3 *h) |
static TH1 * | AverageOverIPz (TH2 *h, const char *name, UShort_t mode, TH1 *ipz, Double_t ipEff=0, TH2 *mask=0, Bool_t verb=false) |
static TObject * | CloneAndAdd (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 TH1 * | RatioH (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_t * | PdgArray (Int_t &size) |
static const TAxis & | PdgAxis () |
static Int_t | PdgBin (Int_t pdg) |
Class with utlity functions
Definition at line 56 of file AliTrackletAODUtils.C.
typedef TList AliTrackletAODUtils::Container |
Definition at line 59 of file AliTrackletAODUtils.C.
|
inline |
Dummy constructor
Definition at line 63 of file AliTrackletAODUtils.C.
|
inlinevirtual |
Dummy destructor
Definition at line 67 of file AliTrackletAODUtils.C.
|
static |
Average primary particle \(\mathrm{d}N_{\mathrm{ch}}/\mathrm{d}\\eta\) over \(\mathrm{IP}_z\)
Mode can be one of
If mode is less than 2, and ipEff is non-zero, then we scale the histogram ipz by the inverse vertex efficiency.
h | Histogram |
name | Name of projection |
mode | Mode of operation. |
ipz | Vertex distribution |
ipEff | IP efficiency \( \varepsilon_{V}\) |
mask | Optional mask - if a bin is zero here, do not count it in average. |
verb | Whether to be verbose |
Definition at line 1859 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta2::Deltas3D(), AliTrackletdNdeta::DrawdNdeta(), AliTrackletdNdeta::DrawScalars(), AliTrackletdNdeta::GetScaledCombi(), AliTrackletAODdNdeta::Histos::ProjectEtaPdgIPz(), and AliTrackletdNdeta2::Results().
Return colour correspondig to a centrality bin
axis | Centrality axis |
c1 | Least centrality |
c2 | Largest centrality |
Definition at line 2278 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta2::ProcessBin(), and MakeDeltaWeights::ProcessBin().
|
static |
Return colour correspondig to a centrality bin
bin | Centrality bin number |
Definition at line 2261 of file AliTrackletAODUtils.C.
Get name of centrality folder
c1 | Lower bound |
c2 | Upper bound |
Definition at line 2250 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta2::CalculateSEF(), AliTrackletAODdNdeta::CentBin::CentBin(), YieldCalculations::One::One(), AliTrackletdNdeta2::ProcessBin(), MakeDeltaWeights::ProcessBin(), Computer::Run(), YieldCalculations::Run(), and AliTrackletdNdeta2::VisualizeBin().
|
static |
Check that axis definitions are compatible
which | Which axis we're checking |
a1 | First axis |
a2 | Second axis |
alsoLbls | If true, also check labels |
Definition at line 984 of file AliTrackletAODUtils.C.
Referenced by CheckConsistency().
|
static |
In case of non-uniform bins, check each bin edge to see if they are the same
which | Which axis we're checking |
a1 | First axis |
a2 | Second axis |
Definition at line 922 of file AliTrackletAODUtils.C.
Referenced by CheckAxis().
|
static |
Check if all bin labels (if specified) are the same
which | Which axis we're checking |
a1 | First axis |
a2 | Second axis |
Definition at line 951 of file AliTrackletAODUtils.C.
Referenced by CheckAxis().
|
static |
Check axis limits (min,max) are the same
which | Which axis we're checking |
a1 | First axis |
a2 | Second axis |
Definition at line 906 of file AliTrackletAODUtils.C.
Referenced by CheckAxis().
|
static |
Check if both axis have the same number of bins
which | Which axis is being checked |
a1 | First axis |
a2 | Second axis |
Definition at line 894 of file AliTrackletAODUtils.C.
Referenced by CheckAxis().
Check if two histograms are compatible by checking each defined axis.
h1 | First histogram |
h2 | Second histogram |
Definition at line 997 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta2::Process(), RatioH(), MakeDeltaWeights::Run(), PureMCWeights::Run(), and AliTrackletdNdeta::Run().
Clone an object and add to container
c | Container to add to |
o | Object to clone |
Definition at line 1952 of file AliTrackletAODUtils.C.
Referenced by AliTrackletAODdNdeta::CentBin::MasterFinalize(), and AliTrackletAODdNdeta::MasterFinalize().
Copy attributes from one histogram to another
src | Source histogram |
dest | Destination histogram |
Definition at line 1284 of file AliTrackletAODUtils.C.
Referenced by AliTrackletAODdNdeta::CentBin::EstimateBackground().
|
static |
Get a copy of a 1D histogram from a container
parent | Container |
name | Name of histogram |
newName | Optional new name of copy |
verb | Whether to be verbose |
Definition at line 1247 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().
|
static |
Get a copy of a 2D histogram from a container
parent | Container |
name | Name of histogram |
newName | Optional new name of copy |
verb | Whether to be verbose |
Definition at line 1259 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta2::Deltas0D(), AliTrackletdNdeta2::Deltas1D(), AliTrackletdNdeta2::Deltas2D(), AliTrackletdNdeta::DrawAlpha(), AliTrackletdNdeta::DrawBackground(), AliTrackletdNdeta::DrawdNdeta(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletdNdeta::FindDelta(), AliTrackletdNdeta::GetRealBackground(), AliTrackletdNdeta::GetRealSignal(), AliTrackletdNdeta::GetSim(), and AliTrackletdNdeta2::Results().
|
static |
Get a copy of a 3D histogram from a container
parent | Container |
name | Name of histogram |
newName | Optional new name of copy |
verb | Whether to be verbose |
Definition at line 1271 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta2::Deltas3D(), and AliTrackletAODdNdeta::CentBin::EstimateBackground().
|
static |
Fix axis attributes
axis | Axis to fix |
title | Possible title for axis |
Definition at line 1576 of file AliTrackletAODUtils.C.
Referenced by AliTrackletAODdNdeta::AliTrackletAODdNdeta(), AliTrackletAODdNdeta::InitCentBins(), PdgAxis(), ScaleAxis(), SetAxis(), AliTrackletAODdNdeta::Histos::WorkerInit(), AliTrackletAODdNdeta::CentBin::WorkerInit(), AliTrackletAODdNdeta::WorkerInit(), AliTrackletAODMCTask::WorkerInit(), and AliTrackletAODWeightedMCdNdeta::WorkerInit().
Fix min/max value of histogram based on content and errors.
h | Histogram to fix up |
ignoreZero | If true, ignore zero bins |
Definition at line 2041 of file AliTrackletAODUtils.C.
Referenced by FixMinMax(), RatioH(), and AliTrackletdNdeta2::VisualizeResult().
|
static |
Fix min/max value of a histogram stack based on content and errors.
h | Histogram to fix up |
ignoreZero | If true, ignore zero bins |
Definition at line 2061 of file AliTrackletAODUtils.C.
|
static |
Get a boolean value from a container
parent | Parent container |
name | Name of parameter |
def | Default value if not found |
verb | Whether to be verbose |
Definition at line 1235 of file AliTrackletAODUtils.C.
|
static |
Get a container from a container
parent | Container |
name | Name of container |
verb | Whether to be verbose |
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::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(), 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::VisualizeParams(), AliTrackletdNdeta2::VisualizePrimary(), AliTrackletdNdeta2::VisualizeSpecies(), AliTrackletdNdeta2::VisualizeSpeciesDelta(), AliTrackletdNdeta2::VisualizeWeights(), and AliTrackletAODdNdeta::Histos::WorkerInit().
|
static |
Get a container from a directory
parent | Container |
name | Name of container |
verb | Whether to be verbose |
Definition at line 1190 of file AliTrackletAODUtils.C.
|
static |
Get a double-precision value from a container
parent | Parent container |
name | Name of parameter |
def | Default value if not found |
verb | Whether to be verbose |
Definition at line 1211 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta2::Deltas0D(), AliTrackletdNdeta2::Deltas1D(), AliTrackletdNdeta::DrawParams(), AliTrackletdNdeta::DrawScalars(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletdNdeta::FindDelta(), AliTrackletdNdeta::GetScaledCombi(), AliTrackletdNdeta2::Process(), AliTrackletdNdeta2::Results(), AliTrackletdNdeta2::Run(), AliTrackletdNdeta::Run(), AliTrackletdNdeta2::VisualizeParams(), and MakeDeltaWeights::Weights1().
|
static |
Get a 1D histogram from a container
parent | Container |
name | Name of histogram |
verb | Whether to be verbose |
Definition at line 1129 of file AliTrackletAODUtils.C.
Referenced by CopyH1(), AliTrackletdNdeta2::Deltas2D(), AliTrackletdNdeta::DrawdNdeta(), AliTrackletdNdeta::DrawScalars(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletAODdNdeta::CentBin::FinalizeInit(), Computer::FindHist(), AliTrackletdNdeta::FindSub(), AliTrackletdNdeta::GetScaledCombi(), AliTrackletAODdNdeta::MasterFinalize(), AliTrackletdNdeta2::Process(), AliTrackletdNdeta2::ProcessBin(), MakeDeltaWeights::Run(), PureMCWeights::Run(), ClusterCalculations::Run(), AliTrackletdNdeta::Run(), AliTrackletdNdeta2::Visualize(), AliTrackletdNdeta2::VisualizeDelta(), AliTrackletdNdeta2::VisualizeDetails(), AliTrackletdNdeta2::VisualizeFinal(), AliTrackletdNdeta2::VisualizeSpeciesDelta(), AliTrackletdNdeta2::VisualizeWeights(), MakeDeltaWeights::Weights1(), and MakeDeltaWeights::Weights2().
|
static |
Get a 1D histogram from a directory
parent | Container |
name | Name of histogram |
verb | Whether to be verbose |
Definition at line 1134 of file AliTrackletAODUtils.C.
|
static |
Get a 2D histogram from a container
parent | Container |
name | Name of histogram |
verb | Whether to be verbose |
Definition at line 1139 of file AliTrackletAODUtils.C.
Referenced by CopyH2(), AliTrackletdNdeta2::Deltas3D(), AliTrackletdNdeta::DrawGeneral(), AliTrackletdNdeta::DrawScalars(), AliTrackletdNdeta::DrawWeights(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletAODdNdeta::Histos::FinalizeInit(), AliTrackletdNdeta::FindDelta(), AliTrackletdNdeta::GetScaledCombi(), AliTrackletAODdNdeta::MasterFinalize(), PureMCWeights::Run(), ClusterCalculations::Run(), AliTrackletdNdeta2::VisualizeDelta(), AliTrackletdNdeta2::VisualizeDetails(), AliTrackletdNdeta2::VisualizeGeneral(), AliTrackletdNdeta2::VisualizePrimary(), AliTrackletdNdeta2::VisualizeWeights(), MakeDeltaWeights::Weights2(), and MakeDeltaWeights::Weights3().
|
static |
Get a 2D histogram from a directory
parent | Directory |
name | Name of histogram |
verb | Whether to be verbose |
Definition at line 1144 of file AliTrackletAODUtils.C.
|
static |
Get a 3D histogram from a container
parent | Container |
name | Name of histogram |
verb | Whether to be verbose |
Definition at line 1149 of file AliTrackletAODUtils.C.
Referenced by CopyH3(), AliTrackletdNdeta::DrawDeltas(), AliTrackletAODdNdeta::Histos::FinalizeInit(), AliTrackletdNdeta::FindDelta(), and MakeDeltaWeights::Weights3().
|
static |
Get a 3D histogram from a directory
parent | Directory |
name | Name of histogram |
verb | Whether to be verbose |
Definition at line 1154 of file AliTrackletAODUtils.C.
|
static |
Get a stack from a container
parent | Container |
name | Name of container |
verb | Whether to be verbose |
Definition at line 1178 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta2::CalculateSEF(), Computer::DoOne(), AliTrackletdNdeta2::ProcessBin(), AliTrackletdNdeta::Run(), AliTrackletdNdeta2::VisualizeClosure(), AliTrackletdNdeta2::VisualizeDelta(), AliTrackletdNdeta2::VisualizeFinal(), AliTrackletdNdeta2::VisualizePrimary(), AliTrackletdNdeta2::VisualizeResult(), AliTrackletdNdeta2::VisualizeSpecies(), and AliTrackletdNdeta2::VisualizeSpeciesDelta().
|
static |
Get a stack from a directory
parent | Container |
name | Name of container |
verb | Whether to be verbose |
Definition at line 1172 of file AliTrackletAODUtils.C.
|
static |
Get a integer value from a container
parent | Parent container |
name | Name of parameter |
def | Default value if not found |
verb | Whether to be verbose |
Definition at line 1223 of file AliTrackletAODUtils.C.
|
static |
Get an object from a container.
parent | Container |
name | Name of object |
cls | If not null, check if object has this type |
verb | Whether to be verboe |
Definition at line 1079 of file AliTrackletAODUtils.C.
Referenced by GetB(), GetC(), GetD(), GetH1(), GetH2(), GetH3(), GetHS(), GetI(), GetP1(), and GetP2().
|
static |
Get an object from a directory.
parent | directory |
name | Name of object |
cls | If not null, check if object has this type |
verb | Whether to be verboe |
Definition at line 1104 of file AliTrackletAODUtils.C.
|
inlinestatic |
Get a profile from a container
parent | Container |
name | Name of profile |
verb | Whether to be verbose |
Definition at line 270 of file AliTrackletAODUtils.C.
Referenced by AliTrackletAODdNdeta::MasterFinalize().
|
static |
Get a 1D profile from a container
parent | Container |
name | Name of profile |
verb | Whether to be verbose |
Definition at line 1159 of file AliTrackletAODUtils.C.
Referenced by AliTrackletAODdNdeta::CentBin::FinalizeInit(), and GetP().
|
static |
Get a 2D profile from a container
parent | Container |
name | Name of profile |
verb | Whether to be verbose |
Definition at line 1165 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta::DrawWeights(), and AliTrackletdNdeta2::VisualizeWeights().
|
static |
Get a directory from a directory
parent | Container |
name | Name of container |
verb | Whether to be verbose |
Definition at line 1196 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta2::ProcessBin().
|
static |
Helper function to integrate a histogram. Note, for symmetric histograms, both sides are integrate, and the errors added in quadrature.
h | Histogram to integrate |
min | Least limint |
max | Largest limit |
err | On return, the error on the integral (95% CL) |
Definition at line 1968 of file AliTrackletAODUtils.C.
Referenced by AliTrackletAODdNdeta::Histos::ProjectEtaDeltaPdgPart().
|
static |
Service function to make a 1D histogram from an axis definition
c | Container to add to |
name | Name of histogram |
title | Title of histogram |
color | Color |
style | Marker style |
xAxis | X axis to use |
Definition at line 1299 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta::DrawScalars(), AliTrackletdNdeta::GetScaledCombi(), AliTrackletdNdeta2::Process(), AliTrackletAODdNdeta::Histos::ProjectEtaDeltaPdgPart(), PureMCWeights::Run(), AliTrackletdNdeta::Run(), AliTrackletAODdNdeta::CentBin::WorkerInit(), AliTrackletAODdNdeta::WorkerInit(), and AliTrackletAODMCTask::WorkerInit().
|
static |
Service function to make a 1D profile from an axis definition
c | Container to add to |
name | Name of profile |
title | Title of profile |
color | Color |
style | Marker style |
xAxis | X axis to use |
Definition at line 1342 of file AliTrackletAODUtils.C.
Referenced by AliTrackletAODdNdeta::CentBin::WorkerInit(), and AliTrackletAODdNdeta::WorkerInit().
|
static |
Service function to make a 2D histogram from axis definitions
c | Container to add to |
name | Name of histogram |
title | Title of histogram |
color | Color |
style | Marker style |
xAxis | X axis definition |
yAxis | Y axis definition |
Definition at line 1385 of file AliTrackletAODUtils.C.
Referenced by PureMCWeights::Run(), AliTrackletAODdNdeta::Histos::WorkerInit(), AliTrackletAODdNdeta::WorkerInit(), AliTrackletAODMCTask::WorkerInit(), and AliTrackletAODWeightedMCdNdeta::WorkerInit().
|
static |
Service function to make a 2D profile from axis definitions
c | Container to add to |
name | Name of profile |
title | Title of profile |
color | Color |
style | Marker style |
xAxis | X axis definition |
yAxis | Y axis definition |
Definition at line 1521 of file AliTrackletAODUtils.C.
Referenced by AliTrackletAODdNdeta::WorkerInit(), and AliTrackletAODWeightedMCdNdeta::WorkerInit().
|
static |
Service function to make a 3D histogram from axis definitions
c | Container to add to |
name | Name of histogram |
title | Title of histogram |
color | Color |
style | Marker style |
xAxis | X axis definition |
yAxis | Y axis definition |
zAxis | Z axis definition |
Definition at line 1440 of file AliTrackletAODUtils.C.
Referenced by AliTrackletAODdNdeta::Histos::WorkerInit().
|
static |
Open a file
filename | File name |
Definition at line 2240 of file AliTrackletAODUtils.C.
Referenced by YieldCalculations::One::One(), Computer::Run(), MakeDeltaWeights::Run(), ClusterCalculations::Run(), and AliTrackletdNdeta2::Run().
Definition at line 2077 of file AliTrackletAODUtils.C.
Get attributes corresponding to a PDG code
pdg | PDG code |
nme | On return, the name |
c | On return, the color |
s | On return, the marker style |
Definition at line 2142 of file AliTrackletAODUtils.C.
Referenced by Computer::DoOne(), ClusterCalculations::FixLabels(), AliTrackletAODdNdeta::Histos::ProjectEtaDeltaPdgPart(), AliTrackletAODdNdeta::Histos::ProjectEtaPdg(), AliTrackletAODdNdeta::Histos::ProjectEtaPdgIPz(), PureMCWeights::Run(), and AliTrackletdNdeta2::VisualizeSpeciesDelta().
|
static |
Get the PDG axis
Definition at line 2218 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta2::VisualizeSpeciesDelta(), AliTrackletAODdNdeta::Histos::WorkerInit(), and AliTrackletAODMCTask::WorkerInit().
Get the PDG bin
pdg | Particle type |
Definition at line 2206 of file AliTrackletAODUtils.C.
Referenced by AliTrackletAODMCTask::FilterClustersTrack(), and AliTrackletAODdNdeta::Histos::ProcessTracklet().
|
static |
Print axis
axis | Axis to print |
nSig | Number of significant digits |
alt | Alternative |
Definition at line 1668 of file AliTrackletAODUtils.C.
Referenced by AliTrackletAODdNdeta::Print(), and AliTrackletdNdeta2::Process().
Project (integrate)
\[ \frac{\mathrm{d}^2N}{\mathrm{d}\eta\mathrm{d}\Delta} \]
over \(\eta\)
\[ \frac{\mathrm{d}N}{\mathrm{d}\Delta} \]
h |
Definition at line 1830 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta2::Deltas2D(), AliTrackletdNdeta::DrawDeltas(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletdNdeta::FindDelta(), AliTrackletAODdNdeta::Histos::MasterFinalize(), and ProjectDeltaFull().
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} \]
h |
Definition at line 1844 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta2::Deltas3D().
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*}
h | 3D histogram to integrate |
Referenced by AliTrackletdNdeta::DrawDeltas(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletdNdeta::FindDelta(), AliTrackletAODdNdeta::Histos::MasterFinalize(), and ProjectDeltaFull().
|
static |
Calculate ratio and error on ratio
n | Numerator value |
en | Numerator error |
d | Denominator value |
ed | Denominator error |
er | On return, ratio error |
Definition at line 1991 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta2::CalculateSEF(), AliTrackletdNdeta2::Deltas1D(), AliTrackletdNdeta2::Deltas3D(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletdNdeta::FindDelta(), AliTrackletdNdeta::GetScaledCombi(), AliTrackletdNdeta2::Process(), AliTrackletAODdNdeta::Histos::ProjectEtaDeltaPdgPart(), AliTrackletdNdeta2::VisualizePrimary(), and MakeDeltaWeights::Weights1().
|
static |
Calculate ratio and error on ratio
n | Numerator value |
e2n | Squared numerator error |
d | Denominator value |
e2d | Squared denominator error |
e2r | On return, squared ratio error |
Definition at line 2003 of file AliTrackletAODUtils.C.
|
static |
Divide one histogram with another
num | Numerator |
denom | Denominator |
name | (optional) name of new histogram |
Definition at line 2015 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta2::Results().
Scale a histogram by factor with error propagation
h | Histogram to scale |
x | Scalar |
xe | Error on scalar |
Definition at line 1062 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta2::Deltas0D(), AliTrackletdNdeta2::Deltas1D(), AliTrackletdNdeta2::Deltas2D(), AliTrackletdNdeta::DrawDeltas(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletdNdeta::FindDelta(), AliTrackletdNdeta::GetScaledCombi(), AliTrackletdNdeta2::Results(), MakeDeltaWeights::Weights1(), and MakeDeltaWeights::Weights2().
Scale a histogram by factor with error propagation
h | Histogram to scale |
x | Scalar |
xe | Error on scalar |
Definition at line 1043 of file AliTrackletAODUtils.C.
Scale the two dimensional histogram with content of the 1-dimensional histogram (over X)
h | Histogram to scale |
s | The scalar histogram |
Definition at line 1022 of file AliTrackletAODUtils.C.
Scale bins of an axis by constant factor. The number of bins remains the same.
ret | Axis to modify |
fact | Factor to scale by |
Definition at line 1592 of file AliTrackletAODUtils.C.
Definition at line 1760 of file AliTrackletAODUtils.C.
Referenced by AliTrackletdNdeta2::Deltas3D(), AliTrackletdNdeta::DrawDeltas(), AliTrackletAODdNdeta::CentBin::EstimateBackground(), AliTrackletdNdeta::FindDelta(), and MakeDeltaWeights::Weights3().
Scale each Y-row of input histogram to the number of events in second histogram. Also scale to bin-width in X direction.
h | Input histogram |
ipZ | Histogram to scale by |
full | If true, do error propegation of IPz errors |
Definition at line 1684 of file AliTrackletAODUtils.C.
Referenced by AliTrackletAODdNdeta::Histos::MasterFinalize(), and AliTrackletAODdNdeta::Histos::ProjectEtaPdgIPz().
Definition at line 1721 of file AliTrackletAODUtils.C.
Set an axis based ona bin borders
axis | Axis to set |
n | Number of bins |
borders | Bin borders (n+1 entries) |
Definition at line 1606 of file AliTrackletAODUtils.C.
Referenced by SetAxis(), AliTrackletAODdNdeta::SetCentralityAxis(), AliTrackletAODdNdeta::SetEtaAxis(), AliTrackletAODdNdeta::SetIPzAxis(), and AliTrackletAODdNdeta::SetPhiAxis().
|
static |
Set an axis based on test string of specs. The token separator is given in sep.
axis | Axis to set |
spec | Specification |
sep | Token separate |
Definition at line 1612 of file AliTrackletAODUtils.C.
Set axis with least and largest values
axis | Axis to set |
n | Number of bins |
l | Least value |
h | Largest value |
Definition at line 1654 of file AliTrackletAODUtils.C.
Set a symmetric axis
axis | Axis to set |
n | Number of bins |
m | Maximum absolute value |
Definition at line 1663 of file AliTrackletAODUtils.C.