GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ASymCorrelatedSpace.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 
24 #ifndef Gw_ASymCorrelatedSpace
25 #define Gw_ASymCorrelatedSpace
26 
27 #ifndef Gw_CorrelatedSpace
28 #include "CorrelatedSpace.h"
29 #endif
30 
31 class TBrowser;
32 
33 namespace Gw {
34 
35 class CSFilter;
36 
41 {
42 
43 protected:
44 
45  virtual Int_t GetAxisNumber(Option_t* name) const;
46 
47 public:
49  ASymCorrelatedSpace(const char* name, const char* title);
50  virtual ~ASymCorrelatedSpace();
51 
53  virtual void Fill(const Double_t* /*Xn*/, const Double_t /*weight*/ = 1) = 0;
54 
56  virtual void Project(CSFilter* /*filter*/, Option_t* /*axis*/) = 0;
57 
59  virtual Int_t GetNbin(Int_t /*axis*/) const = 0;
60 
62  virtual Double_t GetCellContent(Int_t /*iCell*/) = 0;
63 
65  virtual void SetCellContent(Int_t /*iCell*/, Double_t /*weight*/) = 0;
66 
68  virtual void Browse(TBrowser* b) = 0;
69 
71  virtual void Project(Option_t* axis, Option_t* gateName = "Gate0");
72 
74  void SetDimension(Int_t dimension);
75 
77  Int_t GetDimension() const { return fDimension; }
78 
79 
80  ClassDef(ASymCorrelatedSpace,1) // Correlated Space
81 };
82 
83 } // end namespace
84 
85 #endif
virtual Double_t GetCellContent(Int_t)=0
Get cell content.
TBrowser * b
Int_t GetDimension() const
Get dimension.
virtual void Browse(TBrowser *b)=0
Browser method.
virtual void SetCellContent(Int_t, Double_t)=0
Set cell content.
virtual void Project(CSFilter *, Option_t *)=0
project
virtual Int_t GetAxisNumber(Option_t *name) const
list of Correlated spaces
ASymCorrelatedSpace base class that contains correlated informations.
header file for all type of CorrelatedSpace
virtual void Fill(const Double_t *, const Double_t=1)=0
fill correlated space
CSFilter base class for filter.
Definition: CSFilter.h:56
virtual Int_t GetNbin(Int_t) const =0
Get Bin.
void SetDimension(Int_t dimension)
Set dimension.
CorrelatedSpace base class that contains correlated informations.