GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Gw::CorrelatedSpaceTree2 Class Referenceabstract

CorrelatedSpaceTree2 class that manages a 2D symmetrical correlated space stored in a tree In the entries of the tree are stored the dimension of the matrix. More...

#include <CorrelatedSpaceTree2.h>

Inheritance diagram for Gw::CorrelatedSpaceTree2:

Public Types

enum  { kDefined, kUndefined }
 

Public Member Functions

void AssertTree ()
 Get tree. More...
 
virtual void Browse (TBrowser *b)
 Browser method. More...
 
virtual void CheckH2InTree (TH2 *h2)=0
 Check if h2 already in tree. More...
 
 CorrelatedSpaceTree2 (const char *name=CorrelatedSpace::GetDefaultName(), const char *title="Tree")
 log message More...
 
void DeleteTree (Option_t *opt="")
 Reset Tree. More...
 
void Fill (const Double_t *Xn, const Double_t weight=1.)
 fill correlated space More...
 
virtual void FillCounts (Int_t i, Int_t j, TH2 *h2)=0
 fill counts from h2 More...
 
virtual void FillCounts (Int_t i, Int_t j, Int_t dimX, const Double_t *Xn, const Double_t weight=1.)=0
 fill counts from vector More...
 
virtual void FillCounts (Int_t j)=0
 fill counts random More...
 
void FillFromH2 (TH2 *h2)
 fill correlated space from H2 More...
 
virtual void FillHisto (Int_t j, TH1 *h)=0
 Fill histo. More...
 
void FillRandom (Int_t dim)
 fill random More...
 
const Char_t * GetBranchName ()
 Get branch name. More...
 
Double_t GetCellContent (Int_t iCell)
 Get cell content. More...
 
Double_t GetContent (Int_t i, Int_t j)
 Get content. More...
 
virtual Double_t GetCounts ()=0
 Get counts. More...
 
Int_t GetDimension () const
 Get dimension. More...
 
virtual TH1D * GetHisto (Option_t *axis="x")
 Get histo. More...
 
virtual TH1D * GetHistoBkg (Option_t *axis="x")
 Get bkg histo. More...
 
virtual TH1D * GetHistoTot (Option_t *axis="x")
 Get histo total projection. More...
 
virtual TH1D * GetHistoTot (Option_t *axis="x") const
 Get histo total projection. More...
 
Int_t GetNbin (Int_t axis) const
 Get Bin. More...
 
Int_t GetNofCells ()
 Get number of cells. More...
 
const Char_t * GetTreeName () const
 Get Tree name. More...
 
const Char_t * GetTreeTitle () const
 Get Tree title. More...
 
void Import (CorrelatedSpace *cs)
 Import another CS. More...
 
void Project (CSFilter *filter, Option_t *axis="X")
 Project. More...
 
virtual void Project (Option_t *axis, Option_t *gateName="Gate0")
 Project. More...
 
virtual TBranch * SetAddress ()=0
 Set address. More...
 
virtual void SetBins (Int_t bin, Double_t min, Double_t max, Int_t axis=0)
 Set bin for each axis. More...
 
virtual void SetBranch ()=0
 Set Branch. More...
 
void SetBranchName (TString name="mat1")
 Set branch name. More...
 
void SetCellContent (Int_t iCell, Double_t weight)
 Set cell content. More...
 
virtual void SetCounts (Double_t weight)=0
 Set counts. More...
 
void SetDimension (Int_t dimension)
 Set dimension. More...
 
void SetNofCells (Int_t nCells)
 Set number of cells. More...
 
virtual ~CorrelatedSpaceTree2 ()
 

Static Public Member Functions

static TList * GetCSList ()
 Get correlated space lsit. More...
 
static const Char_t * GetDefaultName ()
 Get default name for CS. More...
 
static const TString GetFolderName ()
 Get folder name. More...
 

Protected Member Functions

virtual Int_t GetAxisNumber (Option_t *name) const
 list of Correlated spaces More...
 

Protected Attributes

TString fBranchName
 tree that contains the matrix More...
 
Int_t fDimension
 
TList * fHistoBkgList
 
TList * fHistoList
 
TList * fHistoTotList
 
LogMessage fLog
 
Int_t fNofCells
 
Int_t fStatus
 
TTree * fTree
 

Detailed Description

CorrelatedSpaceTree2 class that manages a 2D symmetrical correlated space stored in a tree In the entries of the tree are stored the dimension of the matrix.

To retrieve the counts of a given (i,j) point of the matrix, tree->GetEntry(i*dim + j), the value is store in member fCounts. This correlated space is suited for big space or while using more than one space since it do not load the full space in memory. For small space (typically a 4k matrix of float) and big number of events better use the correlated space using a TH2 root object (Gw::CorrelatedSpaceTH2).

Definition at line 59 of file CorrelatedSpaceTree2.h.


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