Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::HistogramManager_1_1D< T > Class Template Reference

#include <HistogramManager.h>

Inheritance diagram for Hal::HistogramManager_1_1D< T >:

Public Member Functions

 HistogramManager_1_1D (const HistogramManager_1_1D &manager)
 
HistogramManager_1_1D< T > & operator= (const HistogramManager_1_1D &manager)
 
void Init (Int_t size, HistogramAxisConf **axisconf, TString title, Bool_t Sumw=kFALSE)
 
void Init (Int_t size, Int_t binsX, Double_t minX, Double_t maxX, Bool_t sumw=kFALSE)
 
void OverwriteAt (T *t, Int_t pos)
 
T * At (Int_t i) const
 
T ** GetArrray () const
 
void Fill (Int_t i, Double_t val)
 
void Fill (Int_t i, Double_t val, Double_t weight)
 
Int_t GetSize () const
 
TString GetComment (Int_t i)
 
void SetComment (TString comment, Int_t i)
 
TList * GetFlatList () const
 
PackageReport () const
 

Public Attributes

T ** fArray
 

Protected Attributes

Int_t fSize
 
Int_t fAxisNo
 
TString * fComments
 

Detailed Description

template<class T>
class Hal::HistogramManager_1_1D< T >

template that store 1dim array of 1-dim histograms

Definition at line 78 of file HistogramManager.h.

Constructor & Destructor Documentation

◆ HistogramManager_1_1D() [1/2]

template<class T >
Hal::HistogramManager_1_1D< T >::HistogramManager_1_1D ( )
inline

Definition at line 97 of file HistogramManager.h.

◆ HistogramManager_1_1D() [2/2]

template<class T >
Hal::HistogramManager_1_1D< T >::HistogramManager_1_1D ( const HistogramManager_1_1D< T > & manager)

Definition at line 40 of file HistogramManager.cxx.

◆ ~HistogramManager_1_1D()

template<class T >
virtual Hal::HistogramManager_1_1D< T >::~HistogramManager_1_1D ( )
inlinevirtual

Definition at line 174 of file HistogramManager.h.

Member Function Documentation

◆ At()

template<class T >
T * Hal::HistogramManager_1_1D< T >::At ( Int_t i) const
inline

return histogram

Parameters
ihistogram position
Returns
histogra

Definition at line 128 of file HistogramManager.h.

◆ Fill() [1/2]

template<class T >
void Hal::HistogramManager_1_1D< T >::Fill ( Int_t i,
Double_t val )
inline

fill histogram

Parameters
ihistogram index
valvalue to fill

Definition at line 139 of file HistogramManager.h.

◆ Fill() [2/2]

template<class T >
void Hal::HistogramManager_1_1D< T >::Fill ( Int_t i,
Double_t val,
Double_t weight )
inline

fill histogram

Parameters
ihistogram position
valvalue to fill
weightweight of value

Definition at line 146 of file HistogramManager.h.

◆ GetArrray()

template<class T >
T ** Hal::HistogramManager_1_1D< T >::GetArrray ( ) const
inline
Returns
array of histogram

Definition at line 133 of file HistogramManager.h.

◆ GetComment()

template<class T >
TString Hal::HistogramManager_1_1D< T >::GetComment ( Int_t i)
inline
Parameters
ihistogram index
Returns
comment for histogram

Definition at line 157 of file HistogramManager.h.

◆ GetFlatList()

template<class T >
TList * Hal::HistogramManager_1_1D< T >::GetFlatList ( ) const
Returns
histogram array as TList

Definition at line 128 of file HistogramManager.cxx.

◆ GetSize()

template<class T >
Int_t Hal::HistogramManager_1_1D< T >::GetSize ( ) const
inline
Returns
size of this array

Definition at line 151 of file HistogramManager.h.

◆ Init() [1/2]

template<class T >
void Hal::HistogramManager_1_1D< T >::Init ( Int_t size,
HistogramAxisConf ** axisconf,
TString title,
Bool_t Sumw = kFALSE )

initialize histograms

Parameters
sizesize of array
axisconfarray of axis configurations
titletitle of histograms
Sumwif true Suwm is called for histograms

Definition at line 78 of file HistogramManager.cxx.

◆ Init() [2/2]

template<class T >
void Hal::HistogramManager_1_1D< T >::Init ( Int_t size,
Int_t binsX,
Double_t minX,
Double_t maxX,
Bool_t sumw = kFALSE )

initialize histograms

Parameters
sizesize of array
binsXnumber of bins
minXx-min
maxXx-max
sumwif true call Sumw

Definition at line 94 of file HistogramManager.cxx.

◆ operator=()

template<class T >
HistogramManager_1_1D< T > & Hal::HistogramManager_1_1D< T >::operator= ( const HistogramManager_1_1D< T > & manager)

Definition at line 53 of file HistogramManager.cxx.

◆ OverwriteAt()

template<class T >
void Hal::HistogramManager_1_1D< T >::OverwriteAt ( T * t,
Int_t pos )

overwite this histogram, old histogram will be deleted

Parameters

param pos

Definition at line 109 of file HistogramManager.cxx.

◆ Report()

template<class T >
Package * Hal::HistogramManager_1_1D< T >::Report ( ) const
Returns
package mad from this

Definition at line 119 of file HistogramManager.cxx.

◆ SetComment()

template<class T >
void Hal::HistogramManager_1_1D< T >::SetComment ( TString comment,
Int_t i )
inline

set comment to histogram

Parameters
commentcomment
ihistogram position

Definition at line 163 of file HistogramManager.h.

Member Data Documentation

◆ fArray

template<class T >
T** Hal::HistogramManager_1_1D< T >::fArray

array of histograms

Definition at line 96 of file HistogramManager.h.

◆ fAxisNo

template<class T >
Int_t Hal::HistogramManager_1_1D< T >::fAxisNo
protected

number of axis

Definition at line 87 of file HistogramManager.h.

◆ fComments

template<class T >
TString* Hal::HistogramManager_1_1D< T >::fComments
protected

array of comments

Definition at line 91 of file HistogramManager.h.

◆ fSize

template<class T >
Int_t Hal::HistogramManager_1_1D< T >::fSize
protected

size of array

Definition at line 83 of file HistogramManager.h.


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