Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::QAPlotReport Class Reference
Inheritance diagram for Hal::QAPlotReport:
Hal::Object

Public Member Functions

 QAPlotReport (const QAPlot &other)
 
 QAPlotReport (const QAPlotReport &other)
 
QAPlotReportoperator= (const QAPlotReport &other)
 
virtual TString HTMLExtract (Int_t no, TString dir="") const
 
virtual void HTMLExtractIntoTable (Int_t no, HtmlTable &obj, TString dir="", TString rel_dir="") const
 
virtual Bool_t CanBeTableElement () const
 
virtual void Print (Option_t *option="") const
 
virtual void SetExtraInfo (Object *p)
 
virtual void Add (const Object *pack)
 
virtual void Browse (TBrowser *b)
 
void SetFlag (Int_t no, TString flag, Int_t dim)
 
virtual void Recalculate ()
 
void SetOriginClass (TString name)
 
TString GetOriginClass () const
 
Int_t GetSize1D () const
 
Int_t GetSize2D () const
 
Int_t GetSize3D () const
 
TH1D * Get1D (Int_t no) const
 
TH2D * Get2D (Int_t no) const
 
TH3D * Get3D (Int_t no) const
 
ObjectGetExtraInfo () const
 
virtual Long64_t Merge (TCollection *collection)
 
- Public Member Functions inherited from Hal::Object
 Object ()
 
virtual TString GetExtractType () const
 

Protected Member Functions

Bool_t CheckFlag (Int_t no, Char_t c, Int_t h1, Int_t h2, Int_t dim) const
 
void SetFlag1D (Int_t no, Char_t c=' ', Int_t h1=0, Int_t h2=0)
 
void SetFlag2D (Int_t no, Char_t c=' ', Int_t h1=0, Int_t h2=0)
 
void SetFlag3D (Int_t no, Char_t c=' ', Int_t h1=0, Int_t h2=0)
 
void TranslateFlag (TString flag, Int_t &hist, Int_t &hist2, Char_t &op) const
 
void Operate (TH1 *h0, TH1 *h1, TH1 *h2, Char_t op) const
 
TString ExportHistogramToFile (TString path, Int_t count, TH1 *h) const
 
TString ExportHistogramToFile (TString path, TString dir, Int_t count, TH1 *h) const
 
 QAPlotReport (TString name, Int_t oneDim, Int_t twoDim, Int_t threeDIm)
 
HistogramManager_1_1D< TH1D > * GetHistArray1D () const
 
HistogramManager_1_2D< TH2D > * GetHistArray2D () const
 
HistogramManager_1_3D< TH3D > * GetHistArray3D () const
 

Protected Attributes

HistogramManager_1_1D< TH1D > * f1dHistos
 
HistogramManager_1_2D< TH2D > * f2dHistos
 
HistogramManager_1_3D< TH3D > * f3dHistos
 

Friends

class QAPlot
 

Detailed Description

Definition at line 36 of file QAPlotReport.h.

Constructor & Destructor Documentation

◆ QAPlotReport() [1/3]

Hal::QAPlotReport::QAPlotReport ( TString name,
Int_t oneDim,
Int_t twoDim,
Int_t threeDIm )
protected

constructor that should be used to all QA plots

Parameters
name
oneDim
twoDim
threeDIm
upd

Definition at line 173 of file QAPlotReport.cxx.

◆ QAPlotReport() [2/3]

Hal::QAPlotReport::QAPlotReport ( )

Definition at line 30 of file QAPlotReport.cxx.

◆ QAPlotReport() [3/3]

Hal::QAPlotReport::QAPlotReport ( const QAPlotReport & other)

Definition at line 40 of file QAPlotReport.cxx.

◆ ~QAPlotReport()

Hal::QAPlotReport::~QAPlotReport ( )
virtual

Definition at line 33 of file QAPlotReport.cxx.

Member Function Documentation

◆ Add()

void Hal::QAPlotReport::Add ( const Object * pack)
virtual

add object of the same class to this

Parameters
packadded object

Reimplemented from Hal::Object.

Definition at line 124 of file QAPlotReport.cxx.

◆ Browse()

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

Definition at line 422 of file QAPlotReport.cxx.

◆ CanBeTableElement()

virtual Bool_t Hal::QAPlotReport::CanBeTableElement ( ) const
inlinevirtual
Returns
true if HTMLExtractIntoTable can be used

Reimplemented from Hal::Object.

Definition at line 146 of file QAPlotReport.h.

◆ CheckFlag()

Bool_t Hal::QAPlotReport::CheckFlag ( Int_t no,
Char_t c,
Int_t h1,
Int_t h2,
Int_t dim ) const
protected

check if flag can be set to given histogram

Parameters
nohistogram that we define
coperator "+" -adding "-" subtracking "/" division
h1first histogram
h2second histogram
dimdimension 1 for 1D histograms, etc.
Returns

Definition at line 202 of file QAPlotReport.cxx.

◆ ExportHistogramToFile() [1/2]

TString Hal::QAPlotReport::ExportHistogramToFile ( TString path,
Int_t count,
TH1 * h ) const
protected

export single histogram to file

Parameters
path
count
h
Returns

Definition at line 222 of file QAPlotReport.cxx.

◆ ExportHistogramToFile() [2/2]

TString Hal::QAPlotReport::ExportHistogramToFile ( TString path,
TString dir,
Int_t count,
TH1 * h ) const
protected

export single histogram to file in subdir

Parameters
path
dir
count
h
Returns

Definition at line 226 of file QAPlotReport.cxx.

◆ Get1D()

TH1D * Hal::QAPlotReport::Get1D ( Int_t no) const
inline

return 1D histogram, note: doesn't check if histogram exists

Parameters
noid of histogram
Returns

Definition at line 194 of file QAPlotReport.h.

◆ Get2D()

TH2D * Hal::QAPlotReport::Get2D ( Int_t no) const
inline

return 2D histogram, note: doesn't check if histogram exists

Parameters
noid of histogram
Returns

Definition at line 200 of file QAPlotReport.h.

◆ Get3D()

TH3D * Hal::QAPlotReport::Get3D ( Int_t no) const
inline

return 3D histogram, note: doesn't check if histogram exists

Parameters
noid of histogram
Returns

Definition at line 206 of file QAPlotReport.h.

◆ GetExtraInfo()

Object * Hal::QAPlotReport::GetExtraInfo ( ) const
inline
Returns
extra informatio about this QA plots

Definition at line 211 of file QAPlotReport.h.

◆ GetHistArray1D()

HistogramManager_1_1D< TH1D > * Hal::QAPlotReport::GetHistArray1D ( ) const
inlineprotected

Definition at line 135 of file QAPlotReport.h.

◆ GetHistArray2D()

HistogramManager_1_2D< TH2D > * Hal::QAPlotReport::GetHistArray2D ( ) const
inlineprotected

Definition at line 136 of file QAPlotReport.h.

◆ GetHistArray3D()

HistogramManager_1_3D< TH3D > * Hal::QAPlotReport::GetHistArray3D ( ) const
inlineprotected

Definition at line 137 of file QAPlotReport.h.

◆ GetOriginClass()

TString Hal::QAPlotReport::GetOriginClass ( ) const
inline

set name of this class

Returns

Definition at line 173 of file QAPlotReport.h.

◆ GetSize1D()

Int_t Hal::QAPlotReport::GetSize1D ( ) const
inline
Returns
number of 1-D histograms

Definition at line 178 of file QAPlotReport.h.

◆ GetSize2D()

Int_t Hal::QAPlotReport::GetSize2D ( ) const
inline
Returns
number of 2-D histograms

Definition at line 183 of file QAPlotReport.h.

◆ GetSize3D()

Int_t Hal::QAPlotReport::GetSize3D ( ) const
inline
Returns
number of 3-D histograms

Definition at line 188 of file QAPlotReport.h.

◆ HTMLExtract()

TString Hal::QAPlotReport::HTMLExtract ( Int_t ,
TString = "" ) const
virtual

exttact this object into HTML

Parameters
no(used to numbering directories to avoid name conflicts)
dirdirectory where object should be extracted
Returns
value or Url to html with report

Reimplemented from Hal::Object.

Definition at line 252 of file QAPlotReport.cxx.

◆ HTMLExtractIntoTable()

void Hal::QAPlotReport::HTMLExtractIntoTable ( Int_t ,
HtmlTable & ,
TString = "",
TString = "" ) const
virtual

extract this object into html table table

Parameters
noobject number
tabletable to extract this object
dirdirectory to extract the strucuture of object
rel_dirrelative path from this to dir

Reimplemented from Hal::Object.

Definition at line 308 of file QAPlotReport.cxx.

◆ Merge()

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

used to merge similar objects

Parameters
collection

Reimplemented from Hal::Object.

Definition at line 139 of file QAPlotReport.cxx.

◆ Operate()

void Hal::QAPlotReport::Operate ( TH1 * h0,
TH1 * h1,
TH1 * h2,
Char_t op ) const
protected

calculate h0 histogram from h1 and h2 histogram with operation defined by op

Parameters
h0
h1
h2
op

overwrite title if old title present

Definition at line 96 of file QAPlotReport.cxx.

◆ operator=()

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

Definition at line 56 of file QAPlotReport.cxx.

◆ Print()

void Hal::QAPlotReport::Print ( Option_t * option = "") const
virtual

Definition at line 435 of file QAPlotReport.cxx.

◆ Recalculate()

void Hal::QAPlotReport::Recalculate ( )
virtual

finish this task, recalculate histograms if needed

Definition at line 144 of file QAPlotReport.cxx.

◆ SetExtraInfo()

void Hal::QAPlotReport::SetExtraInfo ( Object * p)
virtual

set extra information about this plot

Parameters
p

Definition at line 185 of file QAPlotReport.cxx.

◆ SetFlag()

void Hal::QAPlotReport::SetFlag ( Int_t no,
TString flag,
Int_t dim )

set histogram flag

Parameters
nohistogram number
flagflag
dimnumber of dimensions

Definition at line 457 of file QAPlotReport.cxx.

◆ SetFlag1D()

void Hal::QAPlotReport::SetFlag1D ( Int_t no,
Char_t c = ' ',
Int_t h1 = 0,
Int_t h2 = 0 )
protected

set flag to histogram, flag is a recipe how to recalculate given histogram from other histograms, for example SetFlag1D(1,'+',2,3) means that histogram number 1 is a sum of histogram number 2 and 3 (1=2+3)

Parameters
nonumber of histogram to recalculate
coperation + - o r /
h1first histogram
h2second histogram

Definition at line 190 of file QAPlotReport.cxx.

◆ SetFlag2D()

void Hal::QAPlotReport::SetFlag2D ( Int_t no,
Char_t c = ' ',
Int_t h1 = 0,
Int_t h2 = 0 )
protected

set flag to histogram, flag is a recipe how to recalculate given histogram from other histograms, for example SetFlag2D(1,'+',2,3) means that histogram number 1 is a sum of histogram number 2 and 3 (1=2+3)

Parameters
nonumber of histogram to recalculate
coperation + - o r /
h1first histogram
h2second histogram

Definition at line 194 of file QAPlotReport.cxx.

◆ SetFlag3D()

void Hal::QAPlotReport::SetFlag3D ( Int_t no,
Char_t c = ' ',
Int_t h1 = 0,
Int_t h2 = 0 )
protected

set flag to histogram, flag is a recipe how to recalculate given histogram from other histograms, for example SetFlag3D(1,'+',2,3) means that histogram number 1 is a sum of histogram number 2 and 3 (1=2+3)

Parameters
nonumber of histogram to recalculate
coperation + - o r /
h1first histogram
h2second histogram

Definition at line 198 of file QAPlotReport.cxx.

◆ SetOriginClass()

void Hal::QAPlotReport::SetOriginClass ( TString name)
inline

set name of this plots

Parameters
name

Definition at line 168 of file QAPlotReport.h.

◆ TranslateFlag()

void Hal::QAPlotReport::TranslateFlag ( TString flag,
Int_t & hist,
Int_t & hist2,
Char_t & op ) const
protected

translate flag to values used in opeartor

Parameters
flaginput flag
histnumber of first histogram in equation
hist2number of second histogram in equation
opthe equation

Definition at line 87 of file QAPlotReport.cxx.

Friends And Related Symbol Documentation

◆ QAPlot

friend class QAPlot
friend

Definition at line 37 of file QAPlotReport.h.

Member Data Documentation

◆ f1dHistos

HistogramManager_1_1D<TH1D>* Hal::QAPlotReport::f1dHistos
protected

Definition at line 48 of file QAPlotReport.h.

◆ f2dHistos

HistogramManager_1_2D<TH2D>* Hal::QAPlotReport::f2dHistos
protected

Definition at line 49 of file QAPlotReport.h.

◆ f3dHistos

HistogramManager_1_3D<TH3D>* Hal::QAPlotReport::f3dHistos
protected

Definition at line 50 of file QAPlotReport.h.


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