AliPhysics  b76e98e (b76e98e)
AliPWGHistoTools Class Reference

#include <AliPWGHistoTools.h>

Inheritance diagram for AliPWGHistoTools:

Public Member Functions

 AliPWGHistoTools ()
 
 ~AliPWGHistoTools ()
 

Static Public Member Functions

static TH1GetOneOverPtdNdPt (const TH1 *hPt)
 
static TH1GetdNdmtFromdNdpt (const TH1 *hpt, Double_t mass)
 
static TH1GetdNdPtFromOneOverPt (const TH1 *h1Pt)
 
static TH1GetdNdptFromdNdmt (const TH1 *hmt, Double_t mass)
 
static TGraphErrorsConcatenateGraphs (const TGraphErrors *g1, const TGraphErrors *g2)
 
static TH1F * GetHistoFromGraph (const TGraphErrors *g, const TH1F *hTemplate)
 
static TGraphErrorsGetGraphFromHisto (const TH1F *h, Bool_t binWidth=kTRUE)
 
static void GetMeanDataAndExtrapolation (const TH1 *hData, TF1 *fExtrapolation, Double_t &mean, Double_t &error, Float_t min=0, Float_t max=100)
 
static TH1F * CombineHistos (const TH1 *h1, TH1 *h2, const TH1 *htemplate, Float_t renorm1=1.)
 
static TH1F * Combine3HistosWithErrors (const TH1 *h1, const TH1 *h2, const TH1 *h3, TH1 *he1, TH1 *he2, TH1 *he3, const TH1 *htemplate, Int_t statFrom=0, Float_t renorm1=1., Float_t renorm2=1., Float_t renorm3=1., TH1 **hSyst=0, Bool_t errorFromBinContent=kFALSE)
 
static void GetFromHistoGraphDifferentX (const TH1F *h, TF1 *f, TGraphErrors **gBarycentre, TGraphErrors **gXlw)
 
static Float_t GetMean (TH1F *h, Float_t min, Float_t max, Float_t *error=NULL)
 
static void GetMean (TF1 *func, Float_t &mean, Float_t &error, Float_t min=0, Float_t max=100, Int_t normPar=-1)
 
static void GetMeanSquare (TF1 *func, Float_t &mean, Float_t &error, Float_t min=0, Float_t max=100, Int_t normPar=-1)
 
static Bool_t Fit (TH1 *h, TF1 *f, Float_t min, Float_t max)
 
static Int_t GetLowestNotEmptyBin (const TH1 *h)
 
static Int_t GetHighestNotEmptyBin (const TH1 *h)
 
static Float_t GetLowestNotEmptyBinEdge (const TH1 *h)
 
static Float_t GetHighestNotEmptyBinEdge (const TH1 *h)
 
static void GetResiduals (const TGraphErrors *gdata, const TF1 *func, TH1F **hres, TGraphErrors **gres)
 
static void GetResiduals (const TH1F *hdata, const TF1 *func, TH1F **hres, TH1F **hresVsBin)
 
static void GetYield (TH1 *h, TF1 *f, Double_t &yield, Double_t &yieldError, Float_t min=0, Float_t max=100, Double_t *partialYields=0, Double_t *partialYieldsErrors=0)
 
static TGraphErrorsDivideGraphByFunc (const TGraphErrors *g, const TF1 *f, Bool_t invert=kFALSE)
 
static TGraphErrorsDivideGraphByHisto (const TGraphErrors *g, TH1 *h, Bool_t invert=kFALSE)
 
static TH1F * DivideHistoByFunc (TH1F *h, TF1 *f, Bool_t invert=kFALSE)
 
static void WeightedMean (Int_t npoints, const Double_t *x, const Double_t *xerr, Double_t &mean, Double_t &meanerr)
 
static void GetValueAndError (TH1 *hdest, const TH1 *hvalue, const TH1 *herror, Bool_t isPercentError)
 
static TH1GetRelativeError (TH1 *h)
 
static void AddHisto (TH1 *hdest, const TH1 *hsource, Bool_t getMirrorBins=kFALSE)
 
static void GetHistoCombinedErrors (TH1 *hdest, const TH1 *h1)
 
static TH1F * DivideHistosDifferentBins (const TH1F *h1, const TH1F *h2)
 
static Double_t DoIntegral (TH1 *h, Int_t binx1, Int_t binx2, Int_t biny1, Int_t biny2, Int_t binz1, Int_t binz2, Double_t &error, Option_t *option, Bool_t doError)
 
static TGraphErrorsDivide2Graphs (const TGraph *g1, const TGraph *g2, Int_t strategy)
 
static TGraphErrorsAdd2Graphs (const TGraphErrors *g1, const TGraphErrors *g2)
 
static void ScaleGraph (TGraph *g1, Double_t scale)
 
static Double_t dMtdptFunction (Double_t *x, Double_t *p)
 
static Double_t GetdMtdEta (TH1 *hData, TF1 *fExtrapolation, Double_t mass)
 

Private Member Functions

 AliPWGHistoTools (const AliPWGHistoTools &)
 
AliPWGHistoToolsoperator= (const AliPWGHistoTools &)
 

Static Private Member Functions

static void GetMoment (TString name, TString var, TF1 *func, Float_t &mean, Float_t &error, Float_t min, Float_t max, Int_t normPar=-1)
 

Static Private Attributes

static TF1 * fdNdptForETCalc = 0
 

Detailed Description

Definition at line 28 of file AliPWGHistoTools.h.

Constructor & Destructor Documentation

AliPWGHistoTools::AliPWGHistoTools ( )

Definition at line 31 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

AliPWGHistoTools::~AliPWGHistoTools ( )

Definition at line 35 of file AliPWGHistoTools.cxx.

AliPWGHistoTools::AliPWGHistoTools ( const AliPWGHistoTools )
private

Member Function Documentation

TGraphErrors * AliPWGHistoTools::Add2Graphs ( const TGraphErrors g1,
const TGraphErrors g2 
)
static

Definition at line 1018 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

void AliPWGHistoTools::AddHisto ( TH1 hdest,
const TH1 hsource,
Bool_t  getMirrorBins = kFALSE 
)
static

Definition at line 1243 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

TH1F * AliPWGHistoTools::Combine3HistosWithErrors ( const TH1 h1,
const TH1 h2,
const TH1 h3,
TH1 he1,
TH1 he2,
TH1 he3,
const TH1 htemplate,
Int_t  statFrom = 0,
Float_t  renorm1 = 1.,
Float_t  renorm2 = 1.,
Float_t  renorm3 = 1.,
TH1 **  hSyst = 0,
Bool_t  errorFromBinContent = kFALSE 
)
static

Definition at line 272 of file AliPWGHistoTools.cxx.

TH1F * AliPWGHistoTools::CombineHistos ( const TH1 h1,
TH1 h2,
const TH1 htemplate,
Float_t  renorm1 = 1. 
)
static

Definition at line 443 of file AliPWGHistoTools.cxx.

TGraphErrors * AliPWGHistoTools::ConcatenateGraphs ( const TGraphErrors g1,
const TGraphErrors g2 
)
static

Definition at line 245 of file AliPWGHistoTools.cxx.

TGraphErrors * AliPWGHistoTools::Divide2Graphs ( const TGraph g1,
const TGraph g2,
Int_t  strategy 
)
static

Definition at line 962 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

TGraphErrors * AliPWGHistoTools::DivideGraphByFunc ( const TGraphErrors g,
const TF1 *  f,
Bool_t  invert = kFALSE 
)
static

Definition at line 942 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

TGraphErrors * AliPWGHistoTools::DivideGraphByHisto ( const TGraphErrors g,
TH1 h,
Bool_t  invert = kFALSE 
)
static

Definition at line 1054 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

TH1F * AliPWGHistoTools::DivideHistoByFunc ( TH1F *  h,
TF1 *  f,
Bool_t  invert = kFALSE 
)
static

Definition at line 1098 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

TH1F * AliPWGHistoTools::DivideHistosDifferentBins ( const TH1F *  h1,
const TH1F *  h2 
)
static

Definition at line 1311 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

Double_t AliPWGHistoTools::dMtdptFunction ( Double_t x,
Double_t p 
)
static

Definition at line 1408 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

Double_t AliPWGHistoTools::DoIntegral ( TH1 h,
Int_t  binx1,
Int_t  binx2,
Int_t  biny1,
Int_t  biny2,
Int_t  binz1,
Int_t  binz2,
Double_t error,
Option_t option,
Bool_t  doError 
)
static

Definition at line 1349 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

Bool_t AliPWGHistoTools::Fit ( TH1 h,
TF1 *  f,
Float_t  min,
Float_t  max 
)
static

Definition at line 668 of file AliPWGHistoTools.cxx.

Double_t AliPWGHistoTools::GetdMtdEta ( TH1 hData,
TF1 *  fExtrapolation,
Double_t  mass 
)
static

Definition at line 1426 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

TH1 * AliPWGHistoTools::GetdNdmtFromdNdpt ( const TH1 hpt,
Double_t  mass 
)
static

Definition at line 39 of file AliPWGHistoTools.cxx.

TH1 * AliPWGHistoTools::GetdNdptFromdNdmt ( const TH1 hmt,
Double_t  mass 
)
static

Definition at line 72 of file AliPWGHistoTools.cxx.

TH1 * AliPWGHistoTools::GetdNdPtFromOneOverPt ( const TH1 h1Pt)
static

Definition at line 107 of file AliPWGHistoTools.cxx.

void AliPWGHistoTools::GetFromHistoGraphDifferentX ( const TH1F *  h,
TF1 *  f,
TGraphErrors **  gBarycentre,
TGraphErrors **  gXlw 
)
static

Definition at line 493 of file AliPWGHistoTools.cxx.

TGraphErrors * AliPWGHistoTools::GetGraphFromHisto ( const TH1F *  h,
Bool_t  binWidth = kTRUE 
)
static

Definition at line 184 of file AliPWGHistoTools.cxx.

Int_t AliPWGHistoTools::GetHighestNotEmptyBin ( const TH1 h)
static

Definition at line 789 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

static Float_t AliPWGHistoTools::GetHighestNotEmptyBinEdge ( const TH1 h)
inlinestatic

Definition at line 62 of file AliPWGHistoTools.h.

void AliPWGHistoTools::GetHistoCombinedErrors ( TH1 hdest,
const TH1 h1 
)
static

Definition at line 1295 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

TH1F * AliPWGHistoTools::GetHistoFromGraph ( const TGraphErrors g,
const TH1F *  hTemplate 
)
static

Definition at line 213 of file AliPWGHistoTools.cxx.

Int_t AliPWGHistoTools::GetLowestNotEmptyBin ( const TH1 h)
static

Definition at line 776 of file AliPWGHistoTools.cxx.

Referenced by GetLowestNotEmptyBinEdge().

static Float_t AliPWGHistoTools::GetLowestNotEmptyBinEdge ( const TH1 h)
inlinestatic

Definition at line 61 of file AliPWGHistoTools.h.

Float_t AliPWGHistoTools::GetMean ( TH1F *  h,
Float_t  min,
Float_t  max,
Float_t error = NULL 
)
static

Definition at line 550 of file AliPWGHistoTools.cxx.

void AliPWGHistoTools::GetMean ( TF1 *  func,
Float_t mean,
Float_t error,
Float_t  min = 0,
Float_t  max = 100,
Int_t  normPar = -1 
)
static

Definition at line 573 of file AliPWGHistoTools.cxx.

void AliPWGHistoTools::GetMeanDataAndExtrapolation ( const TH1 hData,
TF1 *  fExtrapolation,
Double_t mean,
Double_t error,
Float_t  min = 0,
Float_t  max = 100 
)
static

Definition at line 388 of file AliPWGHistoTools.cxx.

void AliPWGHistoTools::GetMeanSquare ( TF1 *  func,
Float_t mean,
Float_t error,
Float_t  min = 0,
Float_t  max = 100,
Int_t  normPar = -1 
)
static

Definition at line 585 of file AliPWGHistoTools.cxx.

void AliPWGHistoTools::GetMoment ( TString  name,
TString  var,
TF1 *  func,
Float_t mean,
Float_t error,
Float_t  min,
Float_t  max,
Int_t  normPar = -1 
)
staticprivate

Definition at line 598 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

TH1 * AliPWGHistoTools::GetOneOverPtdNdPt ( const TH1 hPt)
static

Definition at line 147 of file AliPWGHistoTools.cxx.

TH1 * AliPWGHistoTools::GetRelativeError ( TH1 h)
static

Definition at line 1165 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

void AliPWGHistoTools::GetResiduals ( const TGraphErrors gdata,
const TF1 *  func,
TH1F **  hres,
TGraphErrors **  gres 
)
static

Definition at line 802 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

void AliPWGHistoTools::GetResiduals ( const TH1F *  hdata,
const TF1 *  func,
TH1F **  hres,
TH1F **  hresVsBin 
)
static

Definition at line 836 of file AliPWGHistoTools.cxx.

void AliPWGHistoTools::GetValueAndError ( TH1 hdest,
const TH1 hvalue,
const TH1 herror,
Bool_t  isPercentError 
)
static

Definition at line 1183 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

void AliPWGHistoTools::GetYield ( TH1 h,
TF1 *  f,
Double_t yield,
Double_t yieldError,
Float_t  min = 0,
Float_t  max = 100,
Double_t partialYields = 0,
Double_t partialYieldsErrors = 0 
)
static

Definition at line 877 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

AliPWGHistoTools& AliPWGHistoTools::operator= ( const AliPWGHistoTools )
private
void AliPWGHistoTools::ScaleGraph ( TGraph g1,
Double_t  scale 
)
static

Definition at line 1451 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

void AliPWGHistoTools::WeightedMean ( Int_t  npoints,
const Double_t x,
const Double_t xerr,
Double_t mean,
Double_t meanerr 
)
static

Definition at line 1130 of file AliPWGHistoTools.cxx.

Referenced by GetHighestNotEmptyBinEdge().

Member Data Documentation

TF1 * AliPWGHistoTools::fdNdptForETCalc = 0
staticprivate

Definition at line 100 of file AliPWGHistoTools.h.


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