GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
InnerNDB.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (c) IPNL, IN2P3, CNRS *
3  * Contibutor(s) : *
4  * Jeremie Dudouet dudouet(AT)ipnl.in2p3.fr [2014] *
5  * Olivier Stezowski stezow(AT)ipnl.in2p3.fr [2014] *
6  * *
7  * This program is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  * This program is distributed in the hope that it will be useful, *
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15  * GNU General Public License for more details. *
16  * *
17  * You should have received a copy of the GNU General Public License *
18  * along with this program; if not, write to the *
19  * Free Software Foundation, Inc., *
20  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21  ***************************************************************************/
22 
23 #ifndef Gw_InnerNDB
24 #define Gw_InnerNDB
25 
26 #include "TString.h"
27 
28 #include "NDB.h"
29 
30 class BashColor;
31 class TList;
32 
33 namespace Gw {
34 
35 class InnerNDB: public ConcreteNDB
36 {
37 protected:
43 
44  Bool_t fVerbose;
45 
46 public:
47  InnerNDB(Bool_t verbose = true);
48  InnerNDB(const char * name, const char * title,Bool_t verbose = true);
49  virtual ~InnerNDB();
50 
51  void Init();
52 
53  virtual void Print(const char *option="*") const;
54 
55  void SetInnerDataBase(TString name);
57 
58  void GetListOfSourceFiles();
59 
60  std::vector < Gw::GammaSourceRay* > GetGammaSource(TString SourceName, double EMin=100., double IMin=1., TString Opt="");
61 
62  void SaveGammaList(TString ListName, std::vector <double> Energies);
63  std::vector <double> LoadGammaList(TString ListName);
64 
65  ClassDef(InnerNDB, 1)
66 };
67 
68 } // end namespace
69 
70 #endif
TString fInnerDataBasePath
Definition: InnerNDB.h:39
TString GetInnerDataBase()
Definition: InnerNDB.h:56
virtual ~InnerNDB()
Definition: InnerNDB.cpp:64
Bool_t fVerbose
Definition: InnerNDB.h:44
TString fInnerDataBaseName
Definition: InnerNDB.h:38
void Init()
Definition: InnerNDB.cpp:69
void SetInnerDataBase(TString name)
Definition: InnerNDB.cpp:123
virtual void Print(const char *option="*") const
Definition: InnerNDB.cpp:140
TList * fListOfGammaSourceFiles
Definition: InnerNDB.h:42
std::vector< Gw::GammaSourceRay * > GetGammaSource(TString SourceName, double EMin=100., double IMin=1., TString Opt="")
Definition: InnerNDB.cpp:152
TString fGammaSourcesPath
Definition: InnerNDB.h:41
void GetListOfSourceFiles()
Definition: InnerNDB.cpp:129
TString fGammaSourcesName
Definition: InnerNDB.h:40
std::vector< double > LoadGammaList(TString ListName)
Definition: InnerNDB.cpp:260
void SaveGammaList(TString ListName, std::vector< double > Energies)
Definition: InnerNDB.cpp:240
InnerNDB(Bool_t verbose=true)
Definition: InnerNDB.cpp:44