GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NDB.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_NDB
24 #define Gw_NDB
25 
26 class BashColor;
27 
28 #include "TString.h"
29 #include "Rtypes.h"
30 #include "TNamed.h"
31 #include "TTimeStamp.h"
32 
33 #include "Measure.h"
34 #include "Data.h"
35 
36 namespace Gw{
37 
38 class GammaSourceRay : public TNamed
39 {
40 public:
42  GammaSourceRay(const char * name, const char * title);
44  virtual ~GammaSourceRay();
45 
46  TString Emmiter;
47  TString Daughter;
48  TString DecayMode;
49  TString RadSubType;
50 
54 
55 // Double_t fActivity;
56 // void SetActivity(Double_t Act){fActivity = Act;}
57 // Double_t GetACtivity(){return fActivity;}
58 
59 // TTimeStamp *fT0;
60 // void SetT0(Int_t year, Int_t month, Int_t day, Int_t hour, Int_t min, Int_t sec, Int_t nsec=0){fT0->Set(year,month,day,hour,min,sec,nsec);}
61 // TTimeStamp *GetT0() {return fT0;}
62 
63 // TTimeStamp *fTStart;
64 // void SetTStart(Int_t year, Int_t month, Int_t day, Int_t hour, Int_t min, Int_t sec, Int_t nsec=0){fTStart->Set(year,month,day,hour,min,sec,nsec);}
65 // TTimeStamp *GetTStart() {return fTStart;}
66 
67  ClassDef(GammaSourceRay, 1)
68 };
69 
71 {
72 
73 public:
74  VirtualNDB() { ; }
75  virtual ~VirtualNDB() { ; }
76 
77  virtual void Init() { ; }
78 
79  virtual void Print(const char *) const { ; }
80 };
81 
82 class ConcreteNDB : public VirtualNDB, public TNamed
83 {
84 protected:
86  TString fDataBasePath;
87 
88 public:
89  ConcreteNDB();
90  ConcreteNDB(const char * name, const char * title);
91  virtual ~ConcreteNDB() { ; }
92 
93  virtual void Init() { ; }
94 
95  virtual void Print(const char *) const { ; }
96 
97  void SetDataBasePath(TString path);
98  TString GetDataBasePath() {return fDataBasePath;}
99 
100  virtual std::vector < Gw::GammaSourceRay* > GetGammaSource(TString /*SourceName*/, double /*EMin=0.*/, double /*IMin=0.*/, TString /*Opt=""*/) { return std::vector < Gw::GammaSourceRay* >();}
101 
102  ClassDef(ConcreteNDB, 0)
103 };
104 
105 } // end namespace
106 
107 #endif
virtual void Print(const char *) const
Definition: NDB.h:79
Measure< Double_t > * LifeTime
Definition: NDB.h:51
TString GetDataBasePath()
Definition: NDB.h:98
template that defines a general Data
template that defines a general Measure
TString Emmiter
Definition: NDB.h:46
virtual void Print(const char *) const
Definition: NDB.h:95
virtual void Init()
Definition: NDB.h:93
virtual ~GammaSourceRay()
Definition: NDB.cpp:75
TString DecayMode
Definition: NDB.h:48
Measure< Double_t > * Energy
Definition: NDB.h:52
virtual ~VirtualNDB()
Definition: NDB.h:75
Measure< Double_t > * Intensity
Definition: NDB.h:53
TString Daughter
Definition: NDB.h:47
VirtualNDB()
Definition: NDB.h:74
TString fDataBasePath
Definition: NDB.h:86
virtual ~ConcreteNDB()
Definition: NDB.h:91
virtual std::vector< Gw::GammaSourceRay * > GetGammaSource(TString, double, double, TString)
Definition: NDB.h:100
BashColor * fBashColor
Definition: NDB.h:85
virtual void Init()
Definition: NDB.h:77
TString RadSubType
Definition: NDB.h:49
void SetDataBasePath(TString path)
Definition: NDB.cpp:98