Heavy ion Analysis Libriares
|
Public Member Functions | |
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 | Rebin (Int_t ngroup, Option_t *opt) |
virtual void | Add (const Object *h) |
virtual void | Browse (TBrowser *b) |
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 TString | HTMLExtract (Int_t counter=0, TString dir=" ") const |
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 | |
DividedHisto1D (TString name, const Int_t dim) | |
virtual void | Folding1D (Double_t val, Option_t *axis) |
virtual void | Normalize (TH1 *h) const |
virtual TString | CommonExtract (Int_t counter, TString dir) const |
virtual void | SetHistoName (TH1 *h) const |
virtual TString | GetPic () const |
virtual void | ApplyStyle (const HistoStyle &h) |
Protected Attributes | |
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 |
Friends | |
class | HistoStyle |
Definition at line 31 of file DividedHisto.h.
|
protected |
name | name |
dim | number of dimensions of histograms |
Definition at line 57 of file DividedHisto.cxx.
Hal::DividedHisto1D::DividedHisto1D | ( | ) |
default constructor - should not be used!
Definition at line 43 of file DividedHisto.cxx.
|
inline |
constructor with names - note histograms are not allocated!
name |
Definition at line 129 of file DividedHisto.h.
Hal::DividedHisto1D::DividedHisto1D | ( | TString | name, |
Int_t | nbins, | ||
Double_t | min, | ||
Double_t | max, | ||
Char_t | type = 'D' ) |
main constructor
name | name of this object |
nbins | number of bins |
min | min-x |
max | max-x |
type | type - 'D' for TH1D, 'I' for TH1I etc. |
Definition at line 1282 of file DividedHisto.cxx.
Hal::DividedHisto1D::DividedHisto1D | ( | TString | name, |
const HistogramAxisConf & | conf, | ||
Char_t | type = 'D' ) |
name | |
conf |
Definition at line 1320 of file DividedHisto.cxx.
Hal::DividedHisto1D::DividedHisto1D | ( | const DividedHisto1D & | other | ) |
|
virtual |
Definition at line 472 of file DividedHisto.cxx.
|
virtual |
add object of the same class
h | another object of the same class |
Reimplemented from Hal::Object.
Reimplemented in Hal::Femto3DCFQinv, Hal::FemtoDoubleRatio1DCF, and Hal::FemtoSHCF.
Definition at line 214 of file DividedHisto.cxx.
|
virtual |
den | denominator |
opt | option of adding if equal to "" then histogram is added by copying pointer if "clone" then histogram is cloned into this object |
Reimplemented in Hal::Femto1DCF, Hal::Femto3DCF, and Hal::Femto3DCFQinv.
Definition at line 152 of file DividedHisto.cxx.
void Hal::DividedHisto1D::AddLabel | ( | TString | label | ) |
|
virtual |
num | numerator |
opt | option of adding if equal to "" then histogram is added by copying pointer if "clone" then histogram is cloned into this object |
Reimplemented in Hal::Femto1DCF, Hal::Femto3DCF, and Hal::Femto3DCFQinv.
Definition at line 135 of file DividedHisto.cxx.
|
virtual |
add numerator and denominator
num | numerator |
den | denominator |
opt | option of adding if equal to "" then histogram is added by copying pointer if "clone" then histogram is cloned into this object |
Definition at line 169 of file DividedHisto.cxx.
|
virtual |
add num/den according to scale
other | |
scale |
Reimplemented in Hal::Femto3DCFQinv, and Hal::FemtoSHCFQinv.
Definition at line 1565 of file DividedHisto.cxx.
|
protectedvirtual |
apply style for this object
Reimplemented in Hal::FemtoSHCF.
Definition at line 1576 of file DividedHisto.cxx.
|
virtual |
used to draw histograms
b |
Reimplemented in Hal::DividedHisto2D, Hal::Femto1DCF, Hal::Femto3DCF, Hal::Femto3DCFQinv, Hal::FemtoDebug2DCF, Hal::FemtoDoubleRatio1DCF, Hal::FemtoDPhiDEta, and Hal::FemtoSHCF.
Definition at line 399 of file DividedHisto.cxx.
Double_t Hal::DividedHisto1D::CalculateNorm | ( | Double_t | min, |
Double_t | max ) const |
calucalte denominator/numerator ratio at given range
min | lower norm range |
max | upper norm range |
Definition at line 1449 of file DividedHisto.cxx.
|
protectedvirtual |
make common part of HTML report for all derived classes
counter | used for numerating objects in the same directory |
dir | palce where report should be extracted |
Definition at line 299 of file DividedHisto.cxx.
|
virtual |
draw this object
opt | if "num" then only numerator is drawn, in "den" if "all" draw all histograms m, otherwise draw divided histogram |
Reimplemented in Hal::Femto1DCF, Hal::Femto3DCF, Hal::FemtoDebug2DCF, Hal::FemtoDoubleRatio1DCF, Hal::FemtoDPhiDEta, and Hal::FemtoSHCF.
Definition at line 1229 of file DividedHisto.cxx.
|
inline |
x | value to fill |
weight | weight |
Definition at line 231 of file DividedHisto.h.
|
inlinevirtual |
fill denominator
obj |
Reimplemented in Hal::Femto1DCF, Hal::Femto3DCF, Hal::FemtoDebug2DCF, Hal::FemtoDoubleRatio1DCF, Hal::FemtoDPhiDEta, Hal::FemtoSHCF, and Hal::FemtoSHCFQinv.
Definition at line 296 of file DividedHisto.h.
|
inline |
fill numerator histogram
x | value to fill |
weight | weight |
Definition at line 225 of file DividedHisto.h.
|
inlinevirtual |
fill numerator
obj |
Reimplemented in Hal::Femto1DCF, Hal::Femto3DCF, Hal::Femto3DCFQinv, Hal::FemtoDebug2DCF, Hal::FemtoDoubleRatio1DCF, Hal::FemtoDPhiDEta, Hal::FemtoSHCF, and Hal::FemtoSHCFQinv.
Definition at line 291 of file DividedHisto.h.
void Hal::DividedHisto1D::Fold1D | ( | Double_t | val, |
Option_t * | opt = "x" ) |
makes folding of histogram around given point, point must be in the middle of bin or in the edge of bin, if point is in the middle of bin then content of such bin is multiplied by 2 and error by sqrt(2) in case of 2 and 3D histograms makes folding around given plane
val | value of folding (if value is not in the middle of axis, assumption of periodical histogram is used |
opt | option should contain axis label (x,y or z) |
Definition at line 410 of file DividedHisto.cxx.
|
protectedvirtual |
make folding around given axis
val | value of folding |
axis | axis label (x,y or z) |
Reimplemented in Hal::DividedHisto2D, and Hal::DividedHisto3D.
Definition at line 436 of file DividedHisto.cxx.
|
inline |
Definition at line 366 of file DividedHisto.h.
|
inline |
Definition at line 387 of file DividedHisto.h.
TH1 * Hal::DividedHisto1D::GetDen | ( | ) | const |
Definition at line 176 of file DividedHisto.cxx.
|
virtual |
TH1 * Hal::DividedHisto1D::GetHist | ( | Bool_t | normalized = kTRUE | ) | const |
normalized | if true then normalization is performed |
Definition at line 178 of file DividedHisto.cxx.
TString Hal::DividedHisto1D::GetLabel | ( | Int_t | i | ) | const |
i | label number |
Definition at line 382 of file DividedHisto.cxx.
|
inline |
Definition at line 371 of file DividedHisto.h.
Int_t Hal::DividedHisto1D::GetLabelsNo | ( | ) | const |
Definition at line 1271 of file DividedHisto.cxx.
|
inline |
Definition at line 307 of file DividedHisto.h.
Double_t Hal::DividedHisto1D::GetNormMax | ( | Int_t | no = 0 | ) | const |
no | axis no |
Definition at line 256 of file DividedHisto.cxx.
Double_t Hal::DividedHisto1D::GetNormMin | ( | Int_t | no = 0 | ) | const |
no | axis no |
Definition at line 250 of file DividedHisto.cxx.
TH1 * Hal::DividedHisto1D::GetNum | ( | ) | const |
Definition at line 174 of file DividedHisto.cxx.
|
protectedvirtual |
return line with pictures that show this class
Reimplemented in Hal::Femto1DCF.
Definition at line 1278 of file DividedHisto.cxx.
Double_t Hal::DividedHisto1D::GetScale | ( | ) | const |
Definition at line 262 of file DividedHisto.cxx.
|
inlinevirtual |
returns "special object, not used except cf's
opt |
Reimplemented in Hal::Femto1DCF, Hal::Femto3DCF, and Hal::FemtoSHCF.
Definition at line 406 of file DividedHisto.h.
|
virtual |
crates htm repot
counter | counter of this object |
dir | place where extract report |
Reimplemented from Hal::Object.
Reimplemented in Hal::DividedHisto2D, Hal::DividedHisto3D, Hal::Femto1DCF, Hal::Femto3DCF, Hal::FemtoDebug2DCF, Hal::FemtoDoubleRatio1DCF, Hal::FemtoDPhiDEta, and Hal::FemtoSHCF.
Definition at line 264 of file DividedHisto.cxx.
|
inline |
Definition at line 317 of file DividedHisto.h.
|
inline |
Definition at line 322 of file DividedHisto.h.
|
inline |
Definition at line 327 of file DividedHisto.h.
|
inline |
Definition at line 332 of file DividedHisto.h.
|
virtual |
used to merge similar objects
collection |
Reimplemented from Hal::Object.
Reimplemented in Hal::Femto3DCFQinv, and Hal::FemtoSHCF.
Definition at line 388 of file DividedHisto.cxx.
|
protectedvirtual |
make normalization for histogram
h | histogram for normalization |
Reimplemented in Hal::DividedHisto2D, and Hal::DividedHisto3D.
Definition at line 108 of file DividedHisto.cxx.
DividedHisto1D & Hal::DividedHisto1D::operator= | ( | const DividedHisto1D & | other | ) |
|
virtual |
Definition at line 1534 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 |
Reimplemented in Hal::DividedHisto2D, Hal::DividedHisto3D, Hal::FemtoDoubleRatio1DCF, and Hal::FemtoSHCF.
Definition at line 1141 of file DividedHisto.cxx.
void Hal::DividedHisto1D::SetAxisName | ( | TString | name | ) |
set name for axis of divided histogram
name | axis name |
Definition at line 248 of file DividedHisto.cxx.
void Hal::DividedHisto1D::SetBinomial | ( | Bool_t | binomial | ) |
if true then option "B" is used when histogram is obtained
binomial |
Definition at line 408 of file DividedHisto.cxx.
void Hal::DividedHisto1D::SetComment | ( | TString | comment | ) |
|
virtual |
call SetDirectory for TH1 inside of this object
dir |
Definition at line 1581 of file DividedHisto.cxx.
|
protectedvirtual |
set titles for histogram axis
h | histogram to set titles on axis |
Reimplemented in Hal::DividedHisto2D, and Hal::DividedHisto3D.
Definition at line 240 of file DividedHisto.cxx.
void Hal::DividedHisto1D::SetNorm | ( | Double_t | min, |
Double_t | max, | ||
Int_t | axis = 0 ) |
set normalization range, if scale!=0 then those settings are not used. Algorith try to normalize divied histogra to one at given range
min | lower edge of area |
max | upper edge of area |
axis | axis id - for x,y,z, respectively 0,1,2 |
Definition at line 193 of file DividedHisto.cxx.
|
inline |
set owhership of numerator and denominator
own |
Definition at line 196 of file DividedHisto.h.
|
inline |
|
inline |
void Hal::DividedHisto1D::SetScale | ( | Double_t | scale | ) |
set scale for normalization if 0 - then scale is not used
scale | scale |
Definition at line 212 of file DividedHisto.cxx.
|
friend |
Definition at line 32 of file DividedHisto.h.
|
protected |
name of axis for divided histogram
Definition at line 76 of file DividedHisto.h.
|
protected |
if true then Histo histogram is divided with "B" option
Definition at line 56 of file DividedHisto.h.
|
protected |
comment to this object
Definition at line 80 of file DividedHisto.h.
|
protected |
denominator histogram
Definition at line 52 of file DividedHisto.h.
|
protected |
number of histogram dimensions
Definition at line 60 of file DividedHisto.h.
|
protected |
labels -additional information about this object
Definition at line 84 of file DividedHisto.h.
|
protected |
array of upper edges of ranges for normalization
Definition at line 68 of file DividedHisto.h.
|
protected |
array of lower edges of ranges for normalization
Definition at line 64 of file DividedHisto.h.
|
protected |
numerator histogram
Definition at line 48 of file DividedHisto.h.
|
protected |
scale, if 0 - then scale is not used
Definition at line 72 of file DividedHisto.h.