Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::DividedHisto3D Class Reference

#include <DividedHisto.h>

Inheritance diagram for Hal::DividedHisto3D:
Hal::DividedHisto2D Hal::DividedHisto1D Hal::Object Hal::Femto3DCF Hal::Femto3DCFQinv

Public Member Functions

 DividedHisto3D ()
 
 DividedHisto3D (TString name)
 
 DividedHisto3D (TString name, const HistogramAxisConf &axX, const HistogramAxisConf &axY, const HistogramAxisConf &axZ, Char_t type='D')
 
 DividedHisto3D (TString name, Int_t binsX, Double_t minX, Double_t maxX, Int_t binsY, Double_t minY, Double_t maxY, Int_t binsZ, Double_t minZ, Double_t maxZ, Char_t type='D')
 
 DividedHisto3D (const DividedHisto3D &other)
 
void FillNum (Double_t x, Double_t y, Double_t z, Double_t weight)
 
void FillDen (Double_t x, Double_t y, Double_t z, Double_t weight)
 
TH1D * GetProjection1D (Double_t min1, Double_t max1, Double_t min2, Double_t max2, Option_t *opt) const
 
virtual void Rebin (Int_t ngroup, Option_t *opt)
 
virtual void Fold3D (Double_t valX, Double_t valY, Double_t valZ, Option_t *opt)
 
virtual TH2D * GetProjection2D (Double_t min, Double_t max, Option_t *opt) const
 
Double_t CalculateNorm (Double_t minX, Double_t maxX, Double_t minY, Double_t maxY, Double_t minZ, Double_t maxZ) const
 
DividedHisto3Doperator= (const DividedHisto3D &other)
 
virtual TString HTMLExtract (Int_t counter=0, TString dir=" ") const
 
- Public Member Functions inherited from Hal::DividedHisto2D
 DividedHisto2D ()
 
 DividedHisto2D (TString name)
 
 DividedHisto2D (TString name, Int_t binsX, Double_t minX, Double_t maxX, Int_t binsY, Double_t minY, Double_t maxY, Char_t type='D')
 
 DividedHisto2D (TString name, const HistogramAxisConf &axX, const HistogramAxisConf &axY, Char_t type='D')
 
 DividedHisto2D (const DividedHisto2D &other)
 
void Fold2D (Double_t valX, Double_t valY, Option_t *opt="xy")
 
void FillNum (Double_t x, Double_t y, Double_t weight)
 
void FillDen (Double_t x, Double_t y, Double_t weight)
 
TH1D * GetProjection1D (Double_t min, Double_t max, Option_t *opt) const
 
Double_t CalculateNorm (Double_t minX, Double_t maxX, Double_t minY, Double_t maxY) const
 
virtual void Browse (TBrowser *b)
 
DividedHisto2Doperator= (const DividedHisto2D &other)
 
- Public Member Functions inherited from Hal::DividedHisto1D
 DividedHisto1D ()
 
 DividedHisto1D (TString name)
 
 DividedHisto1D (TString name, Int_t nbins, Double_t min, Double_t max, Char_t type='D')
 
 DividedHisto1D (TString name, const HistogramAxisConf &conf, Char_t type='D')
 
 DividedHisto1D (const DividedHisto1D &other)
 
DividedHisto1Doperator= (const DividedHisto1D &other)
 
void SetScale (Double_t scale)
 
void SetAxisName (TString name)
 
TH1 * GetNum () const
 
TH1 * GetDen () const
 
TH1 * GetHist (Bool_t normalized=kTRUE) const
 
void SetOwnerNum (Bool_t own)
 
void SetOwnerDen (Bool_t own)
 
void SetOwner (Bool_t own)
 
void SetNorm (Double_t min, Double_t max, Int_t axis=0)
 
void AddLabel (TString label)
 
void SetBinomial (Bool_t binomial)
 
void SetComment (TString comment)
 
void FillNum (Double_t x, Double_t weight)
 
void FillDen (Double_t x, Double_t weight)
 
virtual void AddNum (TH1 *num, Option_t *opt="")
 
virtual void AddDen (TH1 *den, Option_t *opt="")
 
virtual void AddNumDen (TH1 *num, TH1 *den, Option_t *opt="")
 
virtual void AddScaled (const DividedHisto1D &other, Double_t scale=1)
 
void Fold1D (Double_t val, Option_t *opt="x")
 
virtual void Add (const Object *h)
 
virtual void FillNumObj (TObject *)
 
virtual void FillDenObj (TObject *)
 
virtual void Print (Option_t *opt) const
 
virtual void SetDirectory (TDirectory *dir=nullptr)
 
Int_t GetNDim () const
 
Int_t GetLabelsNo () const
 
Bool_t IsBinomial () const
 
Bool_t IsDenOwner () const
 
Bool_t IsNumOwner () const
 
Bool_t IsOwner () const
 
Double_t GetNormMin (Int_t no=0) const
 
Double_t GetNormMax (Int_t no=0) const
 
Double_t GetScale () const
 
Double_t CalculateNorm (Double_t min, Double_t max) const
 
virtual Long64_t Merge (TCollection *collection)
 
TString GetAxisName () const
 
TList * GetLabelList () const
 
TString GetLabel (Int_t i) const
 
TString GetExtractType () const
 
TString GetComment () const
 
virtual void Draw (Option_t *opt="all")
 
virtual TObject * GetSpecial (TString opt) const
 
- Public Member Functions inherited from Hal::Object
 Object ()
 
virtual void HTMLExtractIntoTable (Int_t, HtmlTable &, TString="", TString="") const
 
virtual Bool_t CanBeTableElement () const
 

Protected Member Functions

void Normalize (TH1 *h) const
 
virtual void SetHistoName (TH1 *h) const
 
virtual void Folding1D (Double_t val, Option_t *axis)
 
virtual void Folding2D (Double_t valX, Double_t valY, Option_t *opt)
 
virtual TH1D * Projection3DTo1D (Double_t min1, Double_t max1, Double_t min2, Double_t max2, Option_t *opt) const
 
- Protected Member Functions inherited from Hal::DividedHisto2D
 DividedHisto2D (TString name, const Int_t dim)
 
TH1D * Projection2DTo1D (Double_t min, Double_t max, Option_t *opt) const
 
- Protected Member Functions inherited from Hal::DividedHisto1D
 DividedHisto1D (TString name, const Int_t dim)
 
virtual TString CommonExtract (Int_t counter, TString dir) const
 
virtual TString GetPic () const
 
virtual void ApplyStyle (const HistoStyle &h)
 

Additional Inherited Members

- Protected Attributes inherited from Hal::DividedHisto1D
TH1 * fNum
 
TH1 * fDen
 
Bool_t fBinomial
 
const Int_t fDim
 
Double_t * fNormMin
 
Double_t * fNormMax
 
Double_t fScale
 
TString fAxisName
 
TString fComment
 
TList * fLabels
 

Detailed Description

array for storing divided 3-dim histograms

Definition at line 557 of file DividedHisto.h.

Constructor & Destructor Documentation

◆ DividedHisto3D() [1/5]

Hal::DividedHisto3D::DividedHisto3D ( )

default constructor should not be used

Parameters
name

Definition at line 788 of file DividedHisto.cxx.

◆ DividedHisto3D() [2/5]

Hal::DividedHisto3D::DividedHisto3D ( TString name)
inline

constructor without alloction of histograms

Parameters
namename

Definition at line 589 of file DividedHisto.h.

◆ DividedHisto3D() [3/5]

Hal::DividedHisto3D::DividedHisto3D ( TString name,
const HistogramAxisConf & axX,
const HistogramAxisConf & axY,
const HistogramAxisConf & axZ,
Char_t type = 'D' )

constructor

Parameters
name
axX
axY
axZ
type

Definition at line 790 of file DividedHisto.cxx.

◆ DividedHisto3D() [4/5]

Hal::DividedHisto3D::DividedHisto3D ( TString name,
Int_t binsX,
Double_t minX,
Double_t maxX,
Int_t binsY,
Double_t minY,
Double_t maxY,
Int_t binsZ,
Double_t minZ,
Double_t maxZ,
Char_t type = 'D' )
Parameters
name
binsX
minX
maxX
binsY
minY
maxY
binsZ
minZ
maxZ
typetype of histogram 'D' for TH3D 'I' for TH3I etc

Definition at line 1392 of file DividedHisto.cxx.

◆ DividedHisto3D() [5/5]

Hal::DividedHisto3D::DividedHisto3D ( const DividedHisto3D & other)

copy constructor

Parameters
other

Definition at line 1447 of file DividedHisto.cxx.

◆ ~DividedHisto3D()

Hal::DividedHisto3D::~DividedHisto3D ( )

Definition at line 1135 of file DividedHisto.cxx.

Member Function Documentation

◆ CalculateNorm()

Double_t Hal::DividedHisto3D::CalculateNorm ( Double_t minX,
Double_t maxX,
Double_t minY,
Double_t maxY,
Double_t minZ,
Double_t maxZ ) const

calucalte denominator/numerator ratio at given range

Parameters
minXlower norm range
maxXupper norm range
minYlower norm range
maxYupper norm range
minZlower norm range
maxZupper norm range
Returns

Definition at line 1478 of file DividedHisto.cxx.

◆ FillDen()

void Hal::DividedHisto3D::FillDen ( Double_t x,
Double_t y,
Double_t z,
Double_t weight )
inline

fill denominator

Parameters
xx - value
yy - value
zz-value
weightweight

Definition at line 648 of file DividedHisto.h.

◆ FillNum()

void Hal::DividedHisto3D::FillNum ( Double_t x,
Double_t y,
Double_t z,
Double_t weight )
inline

fill numerator

Parameters
xx - value
yy - value
zz -value
weightweight

Definition at line 640 of file DividedHisto.h.

◆ Fold3D()

void Hal::DividedHisto3D::Fold3D ( Double_t valX,
Double_t valY,
Double_t valZ,
Option_t * opt )
virtual

do folding of histograms

Parameters
valXvalue of X to fold around it
valYvalue of Y to fold around it
valZvalue of Z to fold around it
optoption of folding if "xyz" then folding around point is done, otherwise Fold1D(valX,"x") Fold1D(valY,"y") and Fold1D("valZ,"z") are made
See also
Fold1D

Definition at line 1070 of file DividedHisto.cxx.

◆ Folding1D()

void Hal::DividedHisto3D::Folding1D ( Double_t val,
Option_t * axis )
protectedvirtual

make folding around given axis

Parameters
valvalue of folding
axisaxis label (x,y or z)

Reimplemented from Hal::DividedHisto2D.

Definition at line 875 of file DividedHisto.cxx.

◆ Folding2D()

void Hal::DividedHisto3D::Folding2D ( Double_t valX,
Double_t valY,
Option_t * opt )
protectedvirtual

called by

See also
Fold2D
Parameters
valXvalue on first axis
valYvalue on second axis
optoption can be "xy" for 2D, for 3D it's say witch plane is used (e.g. can be "yz")

Reimplemented from Hal::DividedHisto2D.

Definition at line 958 of file DividedHisto.cxx.

◆ GetProjection1D()

TH1D * Hal::DividedHisto3D::GetProjection1D ( Double_t min1,
Double_t max1,
Double_t min2,
Double_t max2,
Option_t * opt ) const
inline
Parameters
min1mimum value for first axis
max1maximum value for first axis
min2minimum value for second axis
max2maximum value for second axis
optoption, for specify object is allowed to use "num" or "den" (num
  • for numerator, den for denominator,if none of them specified then result of dividing is returned). If user specifiy "bins" option then projection is made by min an max values but they specify projection by bin number not values on axes. Option "x" "y" "z" can be used for specify axis. If "scale" then histogram is divided by number of histogram in projection range.
Returns
projection

Definition at line 663 of file DividedHisto.h.

◆ GetProjection2D()

TH2D * Hal::DividedHisto3D::GetProjection2D ( Double_t min,
Double_t max,
Option_t * opt ) const
virtual

return projection

Parameters
minprojection lower range
maxprojection upper range
optif "num" - then projection of numerator is returned, if "den" projection of denominator is returned, if option don't contain "num" or "den" then projection of divided function is returned, if "bins" then min and max are treated as number of bins for projection. If "scale" is specified, then projection is divided by number of bins in projection range, you can also specify projection direction (
See also
Hal::Std::GetProjection2D).
Returns
projection

Definition at line 855 of file DividedHisto.cxx.

◆ HTMLExtract()

TString Hal::DividedHisto3D::HTMLExtract ( Int_t counter = 0,
TString dir = " " ) const
virtual

crates htm repot

Parameters
countercounter of this object
dirplace where extract report
Returns
relative address

Reimplemented from Hal::DividedHisto2D.

Reimplemented in Hal::Femto3DCF.

Definition at line 823 of file DividedHisto.cxx.

◆ Normalize()

void Hal::DividedHisto3D::Normalize ( TH1 * h) const
protectedvirtual

make normalization for histogram

Parameters
hhistogram for normalization

Reimplemented from Hal::DividedHisto2D.

Definition at line 748 of file DividedHisto.cxx.

◆ operator=()

DividedHisto3D & Hal::DividedHisto3D::operator= ( const DividedHisto3D & other)

operator =

Parameters
other
Returns

Definition at line 870 of file DividedHisto.cxx.

◆ Projection3DTo1D()

TH1D * Hal::DividedHisto3D::Projection3DTo1D ( Double_t min1,
Double_t max1,
Double_t min2,
Double_t max2,
Option_t * opt ) const
protectedvirtual
Parameters
min1mimum value for first axis
max1maximum value for first axis
min2minimum value for second axis
max2maximum value for second axis
optoption, for specify object is allowed to use "num" or "den" (num
  • for numerator, den for denominator,if none of them specified then result of dividing is returned). If user specifiy "bins" option then projection is made by min an max values but they specify projection by bin number not values on axes. Option "x" "y" "z" can be used for specify axis. If "scale" then histogram is divided by number of histogram in projection range.
Returns
projection

Definition at line 1513 of file DividedHisto.cxx.

◆ Rebin()

void Hal::DividedHisto3D::Rebin ( Int_t ngroup,
Option_t * opt )
virtual

rebin numerator and/or denominator

Parameters
ngroup
optif "num" only numerator is rebined, if "den" only denominator is rebined, otherwise both, if "x" "y" or "z" are used then rebin is performed only on given axis

Reimplemented from Hal::DividedHisto2D.

Definition at line 1178 of file DividedHisto.cxx.

◆ SetHistoName()

void Hal::DividedHisto3D::SetHistoName ( TH1 * h) const
protectedvirtual

set titles for histogram axis

Parameters
hhistogram to set titles on axis

Reimplemented from Hal::DividedHisto2D.

Definition at line 1137 of file DividedHisto.cxx.


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