Heavy ion Analysis Libriares
|
#include <DividedHisto.h>
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 |
DividedHisto3D & | operator= (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) |
DividedHisto2D & | operator= (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) | |
DividedHisto1D & | operator= (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 |
array for storing divided 3-dim histograms
Definition at line 557 of file DividedHisto.h.
Hal::DividedHisto3D::DividedHisto3D | ( | ) |
default constructor should not be used
name |
Definition at line 788 of file DividedHisto.cxx.
|
inline |
constructor without alloction of histograms
name | name |
Definition at line 589 of file DividedHisto.h.
Hal::DividedHisto3D::DividedHisto3D | ( | TString | name, |
const HistogramAxisConf & | axX, | ||
const HistogramAxisConf & | axY, | ||
const HistogramAxisConf & | axZ, | ||
Char_t | type = 'D' ) |
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' ) |
name | |
binsX | |
minX | |
maxX | |
binsY | |
minY | |
maxY | |
binsZ | |
minZ | |
maxZ | |
type | type of histogram 'D' for TH3D 'I' for TH3I etc |
Definition at line 1392 of file DividedHisto.cxx.
Hal::DividedHisto3D::DividedHisto3D | ( | const DividedHisto3D & | other | ) |
Hal::DividedHisto3D::~DividedHisto3D | ( | ) |
Definition at line 1135 of file DividedHisto.cxx.
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
minX | lower norm range |
maxX | upper norm range |
minY | lower norm range |
maxY | upper norm range |
minZ | lower norm range |
maxZ | upper norm range |
Definition at line 1478 of file DividedHisto.cxx.
|
inline |
fill denominator
x | x - value |
y | y - value |
z | z-value |
weight | weight |
Definition at line 648 of file DividedHisto.h.
|
inline |
fill numerator
x | x - value |
y | y - value |
z | z -value |
weight | weight |
Definition at line 640 of file DividedHisto.h.
|
virtual |
do folding of histograms
valX | value of X to fold around it |
valY | value of Y to fold around it |
valZ | value of Z to fold around it |
opt | option of folding if "xyz" then folding around point is done, otherwise Fold1D(valX,"x") Fold1D(valY,"y") and Fold1D("valZ,"z") are made |
Definition at line 1070 of file DividedHisto.cxx.
|
protectedvirtual |
make folding around given axis
val | value of folding |
axis | axis label (x,y or z) |
Reimplemented from Hal::DividedHisto2D.
Definition at line 875 of file DividedHisto.cxx.
|
protectedvirtual |
called by
valX | value on first axis |
valY | value on second axis |
opt | option 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.
|
inline |
min1 | mimum value for first axis |
max1 | maximum value for first axis |
min2 | minimum value for second axis |
max2 | maximum value for second axis |
opt | option, for specify object is allowed to use "num" or "den" (num
|
Definition at line 663 of file DividedHisto.h.
|
virtual |
return projection
min | projection lower range |
max | projection upper range |
opt | if "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 ( |
Definition at line 855 of file DividedHisto.cxx.
|
virtual |
crates htm repot
counter | counter of this object |
dir | place where extract report |
Reimplemented from Hal::DividedHisto2D.
Reimplemented in Hal::Femto3DCF.
Definition at line 823 of file DividedHisto.cxx.
|
protectedvirtual |
make normalization for histogram
h | histogram for normalization |
Reimplemented from Hal::DividedHisto2D.
Definition at line 748 of file DividedHisto.cxx.
DividedHisto3D & Hal::DividedHisto3D::operator= | ( | const DividedHisto3D & | other | ) |
|
protectedvirtual |
min1 | mimum value for first axis |
max1 | maximum value for first axis |
min2 | minimum value for second axis |
max2 | maximum value for second axis |
opt | option, for specify object is allowed to use "num" or "den" (num
|
Definition at line 1513 of file DividedHisto.cxx.
|
virtual |
rebin numerator and/or denominator
ngroup | |
opt | if "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.
|
protectedvirtual |
set titles for histogram axis
h | histogram to set titles on axis |
Reimplemented from Hal::DividedHisto2D.
Definition at line 1137 of file DividedHisto.cxx.