GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SymCorrelatedSpace.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2004-2006 by Olivier Stezowski & Christian Finck *
3  * stezow(AT)ipnl.in2p3.fr, cfinck(AT)ires.in2p3.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 
23 #ifndef Gw_SymCorrelatedSpace
24 #include "SymCorrelatedSpace.h"
25 #endif
26 
27 #ifndef ROOT_TH1D
28 #include "TH1D.h"
29 #endif
30 
31 #ifndef ROOT_TList
32 #include "TList.h"
33 #endif
34 
35 #ifndef ROOT_TString
36 #include "TString.h"
37 #endif
38 
39 using namespace Gw;
40 
41 //
43 
44 //__________________________________________________________
46  : CorrelatedSpace()
47 {
48  // default constructor
49  fLog.GetProcessName() = "SymCorrelatedSpace";
50 }
51 
52 //__________________________________________________________
53 SymCorrelatedSpace::SymCorrelatedSpace(const char* name, const char* title)
54 : CorrelatedSpace(name, title)
55 {
56  fLog.GetProcessName() = "SymCorrelatedSpace";
57 }
58 
59 //__________________________________________________________
61 {
62  // default destructor
63 }
64 
65 //__________________________________________________________
66 Int_t SymCorrelatedSpace::GetAxisNumber(Option_t* /*name*/) const
67 {
68  return 0;
69 }
70 
71 //__________________________________________________________
72 void SymCorrelatedSpace::SetDimension(Int_t dimension)
73 {
74  fDimension = dimension;
75 
76  TH1D* h1 = new TH1D("hp", "Axis Projection", 1, 0, 1);
77  fHistoList->Add(h1);
78 
79  TH1D* h1b = new TH1D("hpBkg", "Axis Bkg Projection", 1, 0, 1);
80  fHistoBkgList->Add(h1b);
81 
82  TH1D* h1t = new TH1D("hpTot", Form("%s %s",GetName(), "Axis Total Projection"), 1, 0, 1);
83  fHistoTotList->Add(h1t);
84 }
85 
86 //__________________________________________________________
87 void SymCorrelatedSpace::Project(Option_t* axis, Option_t* gateName)
88 {
89  CorrelatedSpace::Project(axis, gateName);
90 }
91 
SymCorrelatedSpace base class that contains correlated informations.
ClassImp(SymCorrelatedSpace) SymCorrelatedSpace
virtual void Project(CSFilter *, Option_t *)=0
project
virtual std::string & GetProcessName()
To get the Process name.
Definition: GwLogMessage.h:224
header file for all type of SymCorrelatedSpace
virtual void Project(CSFilter *, Option_t *)=0
project
void SetDimension(Int_t dimension)
Set dimension.
CorrelatedSpace base class that contains correlated informations.
virtual Int_t GetAxisNumber(Option_t *name) const
list of Correlated spaces