AliPhysics  a1733f5 (a1733f5)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliTHnT< TemplateArray, TemplateType > Class Template Reference

#include <AliTHn.h>

Inheritance diagram for AliTHnT< TemplateArray, TemplateType >:

Public Member Functions

 AliTHnT ()
 
 AliTHnT (const Char_t *name, const Char_t *title, const Int_t nSelStep, const Int_t nVarIn, const Int_t *nBinIn)
 
virtual ~AliTHnT ()
 
virtual void Fill (const Double_t *var, Int_t istep, Double_t weight=1.)
 
virtual void FillParent ()
 
virtual void FillContainer (AliCFContainer *cont)
 
virtual TArrayGetValues (Int_t step)
 
virtual TArrayGetSumw2 (Int_t step)
 
virtual void DeleteContainers ()
 
virtual void ReduceAxis ()
 
 AliTHnT (const AliTHnT &c)
 
AliTHnToperator= (const AliTHnT &corr)
 
virtual void Copy (TObject &c) const
 
virtual Long64_t Merge (TCollection *list)
 
- Public Member Functions inherited from AliTHnBase
 AliTHnBase ()
 
 AliTHnBase (const Char_t *name, const Char_t *title, const Int_t nSelStep, const Int_t nVarIn, const Int_t *nBinIn)
 

Protected Member Functions

void Init ()
 
Long64_t GetGlobalBinIndex (const Int_t *binIdx)
 

Protected Attributes

Long64_t fNBins
 
Int_t fNVars
 
Int_t fNSteps
 
TemplateArray ** fValues
 
TemplateArray ** fSumw2
 
TAxis ** axisCache
 
Int_tfNbinsCache
 cache axis pointers (about 50% of the time in Fill is spent in GetAxis otherwise) More...
 
Double_tfLastVars
 cache Nbins per axis More...
 
Int_tfLastBins
 caching of last used bins (in many loops some vars are the same for a while) More...
 

Detailed Description

template<class TemplateArray, typename TemplateType>
class AliTHnT< TemplateArray, TemplateType >

Definition at line 42 of file AliTHn.h.

Constructor & Destructor Documentation

template<class TemplateArray, typename TemplateType>
TemplateType AliTHnT< TemplateArray, TemplateType >::AliTHnT ( )

Definition at line 46 of file AliTHn.cxx.

template<class TemplateArray , typename TemplateType >
AliTHnT< TemplateArray, TemplateType >::AliTHnT ( const Char_t name,
const Char_t title,
const Int_t  nSelStep,
const Int_t  nVarIn,
const Int_t nBinIn 
)

Definition at line 62 of file AliTHn.cxx.

template<class TemplateArray , typename TemplateType >
AliTHnT< TemplateArray, TemplateType >::~AliTHnT ( )
virtual

Definition at line 126 of file AliTHn.cxx.

template<class TemplateArray , typename TemplateType >
AliTHnT< TemplateArray, TemplateType >::AliTHnT ( const AliTHnT< TemplateArray, TemplateType > &  c)

Definition at line 99 of file AliTHn.cxx.

Member Function Documentation

template<class TemplateArray , typename TemplateType >
void AliTHnT< TemplateArray, TemplateType >::Copy ( TObject c) const
virtual

Definition at line 203 of file AliTHn.cxx.

template<class TemplateArray , typename TemplateType >
void AliTHnT< TemplateArray, TemplateType >::DeleteContainers ( )
virtual

Implements AliTHnBase.

Definition at line 141 of file AliTHn.cxx.

template<class TemplateArray , typename TemplateType >
void AliTHnT< TemplateArray, TemplateType >::Fill ( const Double_t var,
Int_t  istep,
Double_t  weight = 1. 
)
virtual

Implements AliTHnBase.

Definition at line 285 of file AliTHn.cxx.

template<class TemplateArray , typename TemplateType >
void AliTHnT< TemplateArray, TemplateType >::FillContainer ( AliCFContainer *  cont)
virtual

Implements AliTHnBase.

Definition at line 381 of file AliTHn.cxx.

template<class TemplateArray , typename TemplateType >
void AliTHnT< TemplateArray, TemplateType >::FillParent ( )
virtual

Implements AliTHnBase.

Definition at line 447 of file AliTHn.cxx.

template<class TemplateArray , typename TemplateType >
Long64_t AliTHnT< TemplateArray, TemplateType >::GetGlobalBinIndex ( const Int_t binIdx)
protected

Definition at line 364 of file AliTHn.cxx.

template<class TemplateArray, typename TemplateType>
virtual TArray* AliTHnT< TemplateArray, TemplateType >::GetSumw2 ( Int_t  step)
inlinevirtual

Implements AliTHnBase.

Definition at line 55 of file AliTHn.h.

template<class TemplateArray, typename TemplateType>
virtual TArray* AliTHnT< TemplateArray, TemplateType >::GetValues ( Int_t  step)
inlinevirtual

Implements AliTHnBase.

Definition at line 54 of file AliTHn.h.

template<class TemplateArray, typename TemplateType>
void AliTHnT< TemplateArray, TemplateType >::Init ( )
protected
template<class TemplateArray , typename TemplateType >
Long64_t AliTHnT< TemplateArray, TemplateType >::Merge ( TCollection list)
virtual

Definition at line 233 of file AliTHn.cxx.

template<class TemplateArray , typename TemplateType >
AliTHnT< TemplateArray, TemplateType > & AliTHnT< TemplateArray, TemplateType >::operator= ( const AliTHnT< TemplateArray, TemplateType > &  corr)

Definition at line 163 of file AliTHn.cxx.

template<class TemplateArray , typename TemplateType >
void AliTHnT< TemplateArray, TemplateType >::ReduceAxis ( )
virtual

Implements AliTHnBase.

Definition at line 455 of file AliTHn.cxx.

Member Data Documentation

template<class TemplateArray, typename TemplateType>
TAxis** AliTHnT< TemplateArray, TemplateType >::axisCache
protected

Definition at line 76 of file AliTHn.h.

Referenced by AliTHnT< TemplateArray, TemplateType >::operator=().

template<class TemplateArray, typename TemplateType>
Int_t* AliTHnT< TemplateArray, TemplateType >::fLastBins
protected

caching of last used bins (in many loops some vars are the same for a while)

Definition at line 79 of file AliTHn.h.

template<class TemplateArray, typename TemplateType>
Double_t* AliTHnT< TemplateArray, TemplateType >::fLastVars
protected

cache Nbins per axis

Definition at line 78 of file AliTHn.h.

template<class TemplateArray, typename TemplateType>
Long64_t AliTHnT< TemplateArray, TemplateType >::fNBins
protected
template<class TemplateArray, typename TemplateType>
Int_t* AliTHnT< TemplateArray, TemplateType >::fNbinsCache
protected

cache axis pointers (about 50% of the time in Fill is spent in GetAxis otherwise)

Definition at line 77 of file AliTHn.h.

template<class TemplateArray, typename TemplateType>
Int_t AliTHnT< TemplateArray, TemplateType >::fNSteps
protected
template<class TemplateArray, typename TemplateType>
Int_t AliTHnT< TemplateArray, TemplateType >::fNVars
protected
template<class TemplateArray, typename TemplateType>
TemplateArray** AliTHnT< TemplateArray, TemplateType >::fSumw2
protected
template<class TemplateArray, typename TemplateType>
TemplateArray** AliTHnT< TemplateArray, TemplateType >::fValues
protected

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