Project
Loading...
Searching...
No Matches
StepTHnT< TemplateArray > Class Template Reference

#include <StepTHn.h>

Inherits StepTHn.

Public Member Functions

 StepTHnT ()
 
 StepTHnT (const Char_t *name, const Char_t *title, const Int_t nSteps, const Int_t nAxes, Int_t *nBins, std::vector< Double_t > binEdges[], const char **axisTitles)
 
 StepTHnT (const char *name, const char *title, const int nSteps, const int nAxes, const int *nBins, const double *xmin, const double *xmax)
 
 ~StepTHnT () override=default
 
Long64_t Merge (TCollection *list) override
 
- Public Member Functions inherited from StepTHn
 StepTHn ()
 
 StepTHn (const Char_t *name, const Char_t *title, const Int_t nSteps, const Int_t nAxes)
 
 ~StepTHn () override
 
template<typename... Ts>
void Fill (int iStep, const Ts &... valuesAndWeight)
 
void Fill (int iStep, int nParams, double positionAndWeight[])
 
THnBase * getTHn (Int_t step, Bool_t sparse=kFALSE)
 
Int_t getNSteps ()
 
Int_t getNVar ()
 
TArray * getValues (Int_t step)
 
TArray * getSumw2 (Int_t step)
 
 StepTHn (const StepTHn &c)
 
StepTHnoperator= (const StepTHn &corr)
 
void Copy (TObject &c) const override
 
TAxis * GetAxis (int i)
 
void Sumw2 ()
 

Protected Member Functions

TArray * createArray (const TArray *src=nullptr) const override
 
- Protected Member Functions inherited from StepTHn
void init ()
 
void createTarget (Int_t step, Bool_t sparse)
 
void deleteContainers ()
 
Long64_t getGlobalBinIndex (const Int_t *binIdx)
 

Additional Inherited Members

- Protected Attributes inherited from StepTHn
Long64_t mNBins
 
Int_t mNVars
 
Int_t mNSteps
 
TArray ** mValues
 
TArray ** mSumw2
 
THnBase ** mTarget
 
TAxis ** mAxisCache
 target histogram
 
Int_t * mNbinsCache
 cache axis pointers (about 50% of the time in Fill is spent in GetAxis otherwise)
 
Double_t * mLastVars
 cache Nbins per axis
 
Int_t * mLastBins
 caching of last used bins (in many loops some vars are the same for a while)
 
THnSparse * mPrototype
 caching of last used bins (in many loops some vars are the same for a while)
 

Detailed Description

template<class TemplateArray>
class StepTHnT< TemplateArray >

Definition at line 90 of file StepTHn.h.

Constructor & Destructor Documentation

◆ StepTHnT() [1/3]

template<class TemplateArray >
StepTHnT< TemplateArray >::StepTHnT ( )
inline

Definition at line 93 of file StepTHn.h.

◆ StepTHnT() [2/3]

template<class TemplateArray >
StepTHnT< TemplateArray >::StepTHnT ( const Char_t *  name,
const Char_t *  title,
const Int_t  nSteps,
const Int_t  nAxes,
Int_t *  nBins,
std::vector< Double_t >  binEdges[],
const char **  axisTitles 
)

Definition at line 85 of file StepTHn.cxx.

◆ StepTHnT() [3/3]

template<class TemplateArray >
StepTHnT< TemplateArray >::StepTHnT ( const char name,
const char title,
const int  nSteps,
const int  nAxes,
const int nBins,
const double *  xmin,
const double *  xmax 
)

Definition at line 72 of file StepTHn.cxx.

◆ ~StepTHnT()

template<class TemplateArray >
StepTHnT< TemplateArray >::~StepTHnT ( )
overridedefault

Member Function Documentation

◆ createArray()

template<class TemplateArray >
TArray * StepTHnT< TemplateArray >::createArray ( const TArray *  src = nullptr) const
inlineoverrideprotectedvirtual

Implements StepTHn.

Definition at line 101 of file StepTHn.h.

◆ Merge()

template<class TemplateArray >
Long64_t StepTHnT< TemplateArray >::Merge ( TCollection *  list)
overridevirtual

Implements StepTHn.

Definition at line 225 of file StepTHn.cxx.


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