GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CorrelatedSpaceTree2D.h
Go to the documentation of this file.
1 
2 
3 
4 #ifndef Gw_CorrelatedSpaceTree2D
5 #define Gw_CorrelatedSpaceTree2D
6 
7 #ifndef Gw_CorrelatedSpaceTree2
8 #include "CorrelatedSpaceTree2.h"
9 #endif
10 
11 class TH2;
12 class TH1;
13 
14 namespace Gw {
15 
21 {
22 
23 protected:
24 
25  Double_t fCounts;
26 
27 public:
29  virtual ~CorrelatedSpaceTree2D();
30 
32  void FillCounts(Int_t i, Int_t j, TH2* h2);
33 
35  void FillCounts(Int_t i, Int_t j, Int_t dimX, const Double_t* Xn, const Double_t weight = 1.);
36 
38  void FillCounts(Int_t j);
39 
41  void SetCounts(Double_t weight);
42 
44  Double_t GetCounts() {return fCounts; }
45 
47  void FillHisto(Int_t j, TH1* h);
48 
50  void CheckH2InTree(TH2* h2);
51 
53  void SetBranch();
54 
56  TBranch* SetAddress();
57 
58  ClassDef(CorrelatedSpaceTree2D,1) // Correlated Space Tree in 2 dim for Integers
59 };
60 
61 } // end namespace
62 
63 #endif
CorrelatedSpaceTree2 class that manages a 2D symmetrical correlated space stored in a tree In the ent...
header file for all type of CorrelatedSpaceTree2
void SetCounts(Double_t weight)
Set counts.
TBranch * SetAddress()
Set address.
void FillCounts(Int_t i, Int_t j, TH2 *h2)
fill counts
Double_t GetCounts()
Get counts.
CorrelatedSpaceTree2D class that manages a 2D symmetrical correlated space of doubles store in a tree...
void FillHisto(Int_t j, TH1 *h)
Fill histo.
void CheckH2InTree(TH2 *h2)
Check if h2 already in tree.
CorrelatedSpaceTree2D()
nb of counts for a given x,y