Heavy ion Analysis Libriares
|
#include <DividedHisto.h>
Public Member Functions | |
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) |
virtual TString | HTMLExtract (Int_t counter=0, TString dir=" ") const |
virtual void | Rebin (Int_t ngroup, Option_t *opt) |
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 | |
virtual void | Normalize (TH1 *h) const |
virtual void | SetHistoName (TH1 *h) const |
virtual void | Folding2D (Double_t valX, Double_t valY, Option_t *opt) |
virtual void | Folding1D (Double_t val, Option_t *axis) |
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 |
class for storing divided 2-dim histograms
Definition at line 413 of file DividedHisto.h.
|
inlineprotected |
to used only with 3D constructors
name | |
dim |
Definition at line 431 of file DividedHisto.h.
Hal::DividedHisto2D::DividedHisto2D | ( | ) |
default constructor should not be used
Definition at line 510 of file DividedHisto.cxx.
|
inline |
constructor without allocation of histograms
name |
Definition at line 456 of file DividedHisto.h.
Hal::DividedHisto2D::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' ) |
main constructor
name | name of this object |
binsX | number of x-bins |
minX | min-x |
maxX | max-x |
binsY | number of bins on Y |
minY | min Y |
maxY | max Y |
type | type eg. 'D" for TH2D 'I" for TH2I etc. |
Definition at line 1329 of file DividedHisto.cxx.
Hal::DividedHisto2D::DividedHisto2D | ( | TString | name, |
const HistogramAxisConf & | axX, | ||
const HistogramAxisConf & | axY, | ||
Char_t | type = 'D' ) |
Definition at line 1378 of file DividedHisto.cxx.
Hal::DividedHisto2D::DividedHisto2D | ( | const DividedHisto2D & | other | ) |
Hal::DividedHisto2D::~DividedHisto2D | ( | ) |
Definition at line 746 of file DividedHisto.cxx.
|
virtual |
used to draw histograms
b |
Reimplemented from Hal::DividedHisto1D.
Reimplemented in Hal::Femto3DCF, Hal::Femto3DCFQinv, Hal::FemtoDebug2DCF, and Hal::FemtoDPhiDEta.
Definition at line 733 of file DividedHisto.cxx.
Double_t Hal::DividedHisto2D::CalculateNorm | ( | Double_t | minX, |
Double_t | maxX, | ||
Double_t | minY, | ||
Double_t | maxY ) const |
calucalte denominator/numerator ratio at given range
min | lower norm range |
max | upper norm range |
minY | lower norm range |
maxY | upper norm range |
Definition at line 1461 of file DividedHisto.cxx.
|
inline |
fill denominator
x | x - value |
y | y - value |
weight | weight |
Definition at line 511 of file DividedHisto.h.
|
inline |
fill numerator
x | x - value |
y | y - value |
weight | weight |
Definition at line 504 of file DividedHisto.h.
void Hal::DividedHisto2D::Fold2D | ( | Double_t | valX, |
Double_t | valY, | ||
Option_t * | opt = "xy" ) |
for 2D histograms makes folding around point if "xy" options is specified, if options is equal to "z" then Fol1D(valX,"x") and Fold1D(valY,"y") is called (
Definition at line 652 of file DividedHisto.cxx.
|
protectedvirtual |
make folding around given axis
val | value of folding |
axis | axis label (x,y or z) |
Reimplemented from Hal::DividedHisto1D.
Reimplemented in Hal::DividedHisto3D.
Definition at line 543 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 in Hal::DividedHisto3D.
Definition at line 603 of file DividedHisto.cxx.
|
inline |
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, if "y" is specified the projection is made along y axis, otherwise along x axis. |
Definition at line 534 of file DividedHisto.h.
|
virtual |
crates htm repot
counter | counter of this object |
dir | place where extract report |
Reimplemented from Hal::DividedHisto1D.
Reimplemented in Hal::DividedHisto3D, Hal::Femto3DCF, Hal::FemtoDebug2DCF, and Hal::FemtoDPhiDEta.
Definition at line 512 of file DividedHisto.cxx.
|
protectedvirtual |
make normalization for histogram
h | histogram for normalization |
Reimplemented from Hal::DividedHisto1D.
Reimplemented in Hal::DividedHisto3D.
Definition at line 480 of file DividedHisto.cxx.
DividedHisto2D & Hal::DividedHisto2D::operator= | ( | const DividedHisto2D & | other | ) |
|
protected |
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, if "y" is specified the projection is made along y axis, otherwise along x axis. |
Definition at line 1498 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" or "y" are used then rebin is performed only on given axis |
Reimplemented from Hal::DividedHisto1D.
Reimplemented in Hal::DividedHisto3D.
Definition at line 1153 of file DividedHisto.cxx.
|
protectedvirtual |
set titles for histogram axis
h | histogram to set titles on axis |
Reimplemented from Hal::DividedHisto1D.
Reimplemented in Hal::DividedHisto3D.
Definition at line 536 of file DividedHisto.cxx.