GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CorrelatedSpaceTree2F.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2004 by Olivier Stezowski *
3  * Copyright (C) 2010 by Christian Finck *
4  * stezow(AT)ipnl.in2p3.fr *
5  * *
6  * This program is free software; you can redistribute it and/or modify *
7  * it under the terms of the GNU General Public License as published by *
8  * the Free Software Foundation; either version 2 of the License, or *
9  * (at your option) any later version. *
10  * *
11  * This program is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this program; if not, write to the *
18  * Free Software Foundation, Inc., *
19  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
20  ***************************************************************************/
21 
25 #ifndef Gw_CorrelatedSpaceTree2F
26 #define Gw_CorrelatedSpaceTree2F
27 
28 #ifndef Gw_CorrelatedSpaceTree2
29 #include "CorrelatedSpaceTree2.h"
30 #endif
31 
32 class TH2;
33 class TH1;
34 
35 namespace Gw {
36 
41 {
42 
43 protected:
44 
45  Float_t fCounts;
46 
47 public:
49  virtual ~CorrelatedSpaceTree2F();
50 
52  void FillCounts(Int_t i, Int_t j, TH2* h2);
53 
55  void FillCounts(Int_t i, Int_t j, Int_t dimX, const Double_t* Xn, const Double_t weight = 1.);
56 
58  void FillCounts(Int_t j);
59 
61  void SetCounts(Double_t weight);
62 
64  Double_t GetCounts() {return (Double_t)fCounts; }
65 
67  void FillHisto(Int_t j, TH1* h);
68 
70  void CheckH2InTree(TH2* h2);
71 
73  void SetBranch();
74 
76  TBranch* SetAddress();
77 
78  ClassDef(CorrelatedSpaceTree2F,1) // Correlated Space Tree in 2 dim for Integers
79 };
80 
81 } // end namespace
82 
83 #endif
CorrelatedSpaceTree2 class that manages a 2D symmetrical correlated space stored in a tree In the ent...
Double_t GetCounts()
Get counts.
header file for all type of CorrelatedSpaceTree2
void SetCounts(Double_t weight)
Set counts.
CorrelatedSpaceTree2F()
nb of counts for a given x,y
CorrelatedSpaceTree2F class that manages a 2D symmetrical correlated space of floats store in a tree...
void CheckH2InTree(TH2 *h2)
Check if h2 already in tree.
void FillCounts(Int_t i, Int_t j, TH2 *h2)
fill counts
void FillHisto(Int_t j, TH1 *h)
Fill histo.
TBranch * SetAddress()
Set address.