Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::DividedHisto1D Class Reference
Inheritance diagram for Hal::DividedHisto1D:
Hal::Object Hal::DividedHisto2D Hal::Femto1DCF Hal::FemtoDoubleRatio1DCF Hal::FemtoSHCF Hal::DividedHisto3D Hal::FemtoDPhiDEta Hal::FemtoDebug2DCF Hal::FemtoSHCFQinv Hal::Femto3DCF Hal::Femto3DCFQinv

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)
 
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 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
 

Detailed Description

Definition at line 31 of file DividedHisto.h.

Constructor & Destructor Documentation

◆ DividedHisto1D() [1/6]

Hal::DividedHisto1D::DividedHisto1D ( TString name,
const Int_t dim )
protected
Parameters
namename
dimnumber of dimensions of histograms

Definition at line 57 of file DividedHisto.cxx.

◆ DividedHisto1D() [2/6]

Hal::DividedHisto1D::DividedHisto1D ( )

default constructor - should not be used!

Definition at line 43 of file DividedHisto.cxx.

◆ DividedHisto1D() [3/6]

Hal::DividedHisto1D::DividedHisto1D ( TString name)
inline

constructor with names - note histograms are not allocated!

Parameters
name

Definition at line 129 of file DividedHisto.h.

◆ DividedHisto1D() [4/6]

Hal::DividedHisto1D::DividedHisto1D ( TString name,
Int_t nbins,
Double_t min,
Double_t max,
Char_t type = 'D' )

main constructor

Parameters
namename of this object
nbinsnumber of bins
minmin-x
maxmax-x
typetype - 'D' for TH1D, 'I' for TH1I etc.

Definition at line 1282 of file DividedHisto.cxx.

◆ DividedHisto1D() [5/6]

Hal::DividedHisto1D::DividedHisto1D ( TString name,
const HistogramAxisConf & conf,
Char_t type = 'D' )
Parameters
name
conf

Definition at line 1320 of file DividedHisto.cxx.

◆ DividedHisto1D() [6/6]

Hal::DividedHisto1D::DividedHisto1D ( const DividedHisto1D & other)

copy constructor

Parameters
otherobject to copy

Definition at line 80 of file DividedHisto.cxx.

◆ ~DividedHisto1D()

Hal::DividedHisto1D::~DividedHisto1D ( )
virtual

Definition at line 472 of file DividedHisto.cxx.

Member Function Documentation

◆ Add()

void Hal::DividedHisto1D::Add ( const Object * h)
virtual

add object of the same class

Parameters
hanother 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.

◆ AddDen()

void Hal::DividedHisto1D::AddDen ( TH1 * den,
Option_t * opt = "" )
virtual
Parameters
dendenominator
optoption 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.

◆ AddLabel()

void Hal::DividedHisto1D::AddLabel ( TString label)

add label

Parameters
labellabel

Definition at line 1205 of file DividedHisto.cxx.

◆ AddNum()

void Hal::DividedHisto1D::AddNum ( TH1 * num,
Option_t * opt = "" )
virtual
Parameters
numnumerator
optoption 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.

◆ AddNumDen()

void Hal::DividedHisto1D::AddNumDen ( TH1 * num,
TH1 * den,
Option_t * opt = "" )
virtual

add numerator and denominator

Parameters
numnumerator
dendenominator
optoption 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.

◆ AddScaled()

void Hal::DividedHisto1D::AddScaled ( const DividedHisto1D & other,
Double_t scale = 1 )
virtual

add num/den according to scale

Parameters
other
scale

Reimplemented in Hal::Femto3DCFQinv, and Hal::FemtoSHCFQinv.

Definition at line 1565 of file DividedHisto.cxx.

◆ ApplyStyle()

void Hal::DividedHisto1D::ApplyStyle ( const HistoStyle & h)
protectedvirtual

apply style for this object

Reimplemented in Hal::FemtoSHCF.

Definition at line 1576 of file DividedHisto.cxx.

◆ Browse()

void Hal::DividedHisto1D::Browse ( TBrowser * b)
virtual

◆ CalculateNorm()

Double_t Hal::DividedHisto1D::CalculateNorm ( Double_t min,
Double_t max ) const

calucalte denominator/numerator ratio at given range

Parameters
minlower norm range
maxupper norm range
Returns

Definition at line 1449 of file DividedHisto.cxx.

◆ CommonExtract()

TString Hal::DividedHisto1D::CommonExtract ( Int_t counter,
TString dir ) const
protectedvirtual

make common part of HTML report for all derived classes

Parameters
counterused for numerating objects in the same directory
dirpalce where report should be extracted
Returns
linkt to report

Definition at line 299 of file DividedHisto.cxx.

◆ Draw()

void Hal::DividedHisto1D::Draw ( Option_t * opt = "all")
virtual

draw this object

Parameters
optif "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.

◆ FillDen()

void Hal::DividedHisto1D::FillDen ( Double_t x,
Double_t weight )
inline
Parameters
xvalue to fill
weightweight

Definition at line 231 of file DividedHisto.h.

◆ FillDenObj()

virtual void Hal::DividedHisto1D::FillDenObj ( TObject * )
inlinevirtual

fill denominator

Parameters
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.

◆ FillNum()

void Hal::DividedHisto1D::FillNum ( Double_t x,
Double_t weight )
inline

fill numerator histogram

Parameters
xvalue to fill
weightweight

Definition at line 225 of file DividedHisto.h.

◆ FillNumObj()

virtual void Hal::DividedHisto1D::FillNumObj ( TObject * )
inlinevirtual

◆ Fold1D()

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

Parameters
valvalue of folding (if value is not in the middle of axis, assumption of periodical histogram is used
optoption should contain axis label (x,y or z)

Definition at line 410 of file DividedHisto.cxx.

◆ Folding1D()

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

make folding around given axis

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

Reimplemented in Hal::DividedHisto2D, and Hal::DividedHisto3D.

Definition at line 436 of file DividedHisto.cxx.

◆ GetAxisName()

TString Hal::DividedHisto1D::GetAxisName ( ) const
inline
Returns
name of axis for divied histogram

Definition at line 366 of file DividedHisto.h.

◆ GetComment()

TString Hal::DividedHisto1D::GetComment ( ) const
inline
Returns
comment

Definition at line 387 of file DividedHisto.h.

◆ GetDen()

TH1 * Hal::DividedHisto1D::GetDen ( ) const
Returns
denominator

Definition at line 176 of file DividedHisto.cxx.

◆ GetExtractType()

TString Hal::DividedHisto1D::GetExtractType ( ) const
virtual

not used

Returns

Reimplemented from Hal::Object.

Definition at line 297 of file DividedHisto.cxx.

◆ GetHist()

TH1 * Hal::DividedHisto1D::GetHist ( Bool_t normalized = kTRUE) const
Parameters
normalizedif true then normalization is performed
Returns
numerator divide by denominator

Definition at line 178 of file DividedHisto.cxx.

◆ GetLabel()

TString Hal::DividedHisto1D::GetLabel ( Int_t i) const
Parameters
ilabel number
Returns
label at i-th position

Definition at line 382 of file DividedHisto.cxx.

◆ GetLabelList()

TList * Hal::DividedHisto1D::GetLabelList ( ) const
inline
Returns
array with list of labels

Definition at line 371 of file DividedHisto.h.

◆ GetLabelsNo()

Int_t Hal::DividedHisto1D::GetLabelsNo ( ) const
Returns
labels no

Definition at line 1271 of file DividedHisto.cxx.

◆ GetNDim()

Int_t Hal::DividedHisto1D::GetNDim ( ) const
inline
Returns
number of histogram dimensions

Definition at line 307 of file DividedHisto.h.

◆ GetNormMax()

Double_t Hal::DividedHisto1D::GetNormMax ( Int_t no = 0) const
Parameters
noaxis no
Returns
upper value of normalization rage

Definition at line 256 of file DividedHisto.cxx.

◆ GetNormMin()

Double_t Hal::DividedHisto1D::GetNormMin ( Int_t no = 0) const
Parameters
noaxis no
Returns
lower value of normalization range

Definition at line 250 of file DividedHisto.cxx.

◆ GetNum()

TH1 * Hal::DividedHisto1D::GetNum ( ) const
Returns
numerator

Definition at line 174 of file DividedHisto.cxx.

◆ GetPic()

TString Hal::DividedHisto1D::GetPic ( ) const
protectedvirtual

return line with pictures that show this class

Reimplemented in Hal::Femto1DCF.

Definition at line 1278 of file DividedHisto.cxx.

◆ GetScale()

Double_t Hal::DividedHisto1D::GetScale ( ) const
Returns
scale used for normalization

Definition at line 262 of file DividedHisto.cxx.

◆ GetSpecial()

virtual TObject * Hal::DividedHisto1D::GetSpecial ( TString opt) const
inlinevirtual

returns "special object, not used except cf's

Parameters
opt
Returns

Reimplemented in Hal::Femto1DCF, Hal::Femto3DCF, and Hal::FemtoSHCF.

Definition at line 406 of file DividedHisto.h.

◆ HTMLExtract()

TString Hal::DividedHisto1D::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::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.

◆ IsBinomial()

Bool_t Hal::DividedHisto1D::IsBinomial ( ) const
inline
Returns
true if division is made with binomial

Definition at line 317 of file DividedHisto.h.

◆ IsDenOwner()

Bool_t Hal::DividedHisto1D::IsDenOwner ( ) const
inline
Returns
true if owns denominator

Definition at line 322 of file DividedHisto.h.

◆ IsNumOwner()

Bool_t Hal::DividedHisto1D::IsNumOwner ( ) const
inline
Returns
true if owner numerator

Definition at line 327 of file DividedHisto.h.

◆ IsOwner()

Bool_t Hal::DividedHisto1D::IsOwner ( ) const
inline
Returns
if own numerator and denominator

Definition at line 332 of file DividedHisto.h.

◆ Merge()

Long64_t Hal::DividedHisto1D::Merge ( TCollection * collection)
virtual

used to merge similar objects

Parameters
collection

Reimplemented from Hal::Object.

Reimplemented in Hal::Femto3DCFQinv, and Hal::FemtoSHCF.

Definition at line 388 of file DividedHisto.cxx.

◆ Normalize()

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

make normalization for histogram

Parameters
hhistogram for normalization

Reimplemented in Hal::DividedHisto2D, and Hal::DividedHisto3D.

Definition at line 108 of file DividedHisto.cxx.

◆ operator=()

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

operator =

Parameters
other
Returns

Definition at line 1207 of file DividedHisto.cxx.

◆ Print()

void Hal::DividedHisto1D::Print ( Option_t * opt) const
virtual

Definition at line 1534 of file DividedHisto.cxx.

◆ Rebin()

void Hal::DividedHisto1D::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

Reimplemented in Hal::DividedHisto2D, Hal::DividedHisto3D, Hal::FemtoDoubleRatio1DCF, and Hal::FemtoSHCF.

Definition at line 1141 of file DividedHisto.cxx.

◆ SetAxisName()

void Hal::DividedHisto1D::SetAxisName ( TString name)

set name for axis of divided histogram

Parameters
nameaxis name

Definition at line 248 of file DividedHisto.cxx.

◆ SetBinomial()

void Hal::DividedHisto1D::SetBinomial ( Bool_t binomial)

if true then option "B" is used when histogram is obtained

Parameters
binomial

Definition at line 408 of file DividedHisto.cxx.

◆ SetComment()

void Hal::DividedHisto1D::SetComment ( TString comment)

set comment

Parameters
commentcomment

Definition at line 1139 of file DividedHisto.cxx.

◆ SetDirectory()

void Hal::DividedHisto1D::SetDirectory ( TDirectory * dir = nullptr)
virtual

call SetDirectory for TH1 inside of this object

Parameters
dir

Definition at line 1581 of file DividedHisto.cxx.

◆ SetHistoName()

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

set titles for histogram axis

Parameters
hhistogram to set titles on axis

Reimplemented in Hal::DividedHisto2D, and Hal::DividedHisto3D.

Definition at line 240 of file DividedHisto.cxx.

◆ SetNorm()

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

Parameters
minlower edge of area
maxupper edge of area
axisaxis id - for x,y,z, respectively 0,1,2

Definition at line 193 of file DividedHisto.cxx.

◆ SetOwner()

void Hal::DividedHisto1D::SetOwner ( Bool_t own)
inline

set owhership of numerator and denominator

Parameters
own

Definition at line 196 of file DividedHisto.h.

◆ SetOwnerDen()

void Hal::DividedHisto1D::SetOwnerDen ( Bool_t own)
inline

set ownership of numerator

Parameters
own

Definition at line 191 of file DividedHisto.h.

◆ SetOwnerNum()

void Hal::DividedHisto1D::SetOwnerNum ( Bool_t own)
inline

set ownership of numerator

Parameters
own

Definition at line 186 of file DividedHisto.h.

◆ SetScale()

void Hal::DividedHisto1D::SetScale ( Double_t scale)

set scale for normalization if 0 - then scale is not used

Parameters
scalescale

Definition at line 212 of file DividedHisto.cxx.

Friends And Related Symbol Documentation

◆ HistoStyle

friend class HistoStyle
friend

Definition at line 32 of file DividedHisto.h.

Member Data Documentation

◆ fAxisName

TString Hal::DividedHisto1D::fAxisName
protected

name of axis for divided histogram

Definition at line 76 of file DividedHisto.h.

◆ fBinomial

Bool_t Hal::DividedHisto1D::fBinomial
protected

if true then Histo histogram is divided with "B" option

Definition at line 56 of file DividedHisto.h.

◆ fComment

TString Hal::DividedHisto1D::fComment
protected

comment to this object

Definition at line 80 of file DividedHisto.h.

◆ fDen

TH1* Hal::DividedHisto1D::fDen
protected

denominator histogram

Definition at line 52 of file DividedHisto.h.

◆ fDim

const Int_t Hal::DividedHisto1D::fDim
protected

number of histogram dimensions

Definition at line 60 of file DividedHisto.h.

◆ fLabels

TList* Hal::DividedHisto1D::fLabels
protected

labels -additional information about this object

Definition at line 84 of file DividedHisto.h.

◆ fNormMax

Double_t* Hal::DividedHisto1D::fNormMax
protected

array of upper edges of ranges for normalization

Definition at line 68 of file DividedHisto.h.

◆ fNormMin

Double_t* Hal::DividedHisto1D::fNormMin
protected

array of lower edges of ranges for normalization

Definition at line 64 of file DividedHisto.h.

◆ fNum

TH1* Hal::DividedHisto1D::fNum
protected

numerator histogram

Definition at line 48 of file DividedHisto.h.

◆ fScale

Double_t Hal::DividedHisto1D::fScale
protected

scale, if 0 - then scale is not used

Definition at line 72 of file DividedHisto.h.


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