KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVNuclearChart.h
Go to the documentation of this file.
1 
4 #ifndef __KVNUCLEARCHART_H
5 #define __KVNUCLEARCHART_H
6 
7 #include "KVBase.h"
8 #include "TH2.h"
9 #include "KVList.h"
10 #include "KVNucleus.h"
11 #include "TPaveText.h"
12 #include "KVCanvas.h"
13 #include "KVNumberList.h"
14 
15 #include <TVirtualPad.h>
16 
23 class KVNuclearChart : public KVBase {
24 
25 protected:
30 
32 
33  Int_t fNm[7];
35 
38 
49 
50  void update_pad()
51  {
52  if (fPad) {
53  fPad->Modified();
54  fPad->Update();
55  }
56  }
57 
58 public:
60  KVNuclearChart(Int_t nMin = 0, Int_t nMax = -1, Int_t zMin = 0, Int_t zMax = -1, Double_t life = 1.e-06);
62  virtual ~KVNuclearChart();
63  void Copy(TObject&) const;
64 
65  void Draw(Option_t* option = "");
66  void ShowNucleusInfo(KVNucleus* nuc);
67  void ShowLevelScheme(const char* decays); // *MENU*
69  {
70  fCurrentNuc = nuc;
71  }
72 
74  {
75  return fShowSymbol;
76  }
77  void SetShowSymbol(Int_t value = 1); // *TOGGLE*
78  void ShowSymbol();
79  void ShowBoxSymbols(Bool_t on = kTRUE);
80  void SetBoxSymbolSize(Float_t size = 0.02);
81 
83  {
84  return fShowMagicNumbers;
85  }
86  void SetShowMagicNumbers(Int_t value = 1); // *TOGGLE*
87  void ShowMagicNumbers();
88 
90  {
91  return fCanvas;
92  }
93 
94  virtual void Delete(Option_t* option = "")
95  {
96  KVBase::Delete(option);
97  }
98  virtual void DrawClass() const
99  {
101  }
102  virtual TObject* DrawClone(Option_t* option = "") const
103  {
104  return KVBase::DrawClone(option);
105  }
106  virtual void Dump() const
107  {
108  KVBase::Dump();
109  }
110 
111  virtual void Inspect() const
112  {
113  KVBase::Inspect();
114  }
115  virtual void SaveAs(const char* filename = "", Option_t* option = "") const
116  {
117  KVBase::SaveAs(filename, option);
118  }
119  virtual void SetDrawOption(Option_t* option = "")
120  {
121  KVBase::SetDrawOption(option);
122  }
123 
124  virtual void SetTitle(const char* title)
125  {
126  KVBase::SetTitle(title);
127  }
128  virtual void SetName(const char* name)
129  {
130  KVBase::SetName(name);
131  }
132 
133 
134  ClassDef(KVNuclearChart, 1) //Used to draw nuclear chart
135 };
136 
137 #endif
int Int_t
bool Bool_t
double Double_t
float Float_t
const char Option_t
#define ClassDef(name, id)
Base class for KaliVeda framework.
Definition: KVBase.h:135
TCanvas with mouse-controlled dynamic zoom and pan & scan.
Definition: KVCanvas.h:53
Extended TList class which owns its objects by default.
Definition: KVList.h:27
Used to draw nuclear chart.
virtual void Dump() const
virtual ~KVNuclearChart()
virtual void SetTitle(const char *title)
TVirtualPad * fPad
void SetCurrentNuc(KVNucleus *nuc)
virtual void SaveAs(const char *filename="", Option_t *option="") const
KVCanvas * GetCanvas()
void ShowNucleusInfo(KVNucleus *nuc)
TPaveText * fInfo
KVList fNucleusBoxList
Int_t GetShowSymbol()
virtual void DrawClass() const
Double_t fZmMin[7]
Int_t GetShowMagicNumbers()
virtual void Delete(Option_t *option="")
KVNucleus * fCurrentNuc
void ShowLevelScheme(const char *decays)
Double_t fNmMax[7]
void SetShowMagicNumbers(Int_t value=1)
virtual void Inspect() const
void Copy(TObject &) const
KVCanvas * fCanvas
virtual TObject * DrawClone(Option_t *option="") const
Int_t fShowMagicNumbers
TPaveText * fSymbol
Double_t fNmMin[7]
KVNucleus * fShownNucleus
virtual void SetDrawOption(Option_t *option="")
void SetBoxSymbolSize(Float_t size=0.02)
KVNuclearChart(Int_t nMin=0, Int_t nMax=-1, Int_t zMin=0, Int_t zMax=-1, Double_t life=1.e-06)
KVNuclearChart();.
void ShowBoxSymbols(Bool_t on=kTRUE)
draw name of isotope in each box
void SetShowSymbol(Int_t value=1)
void Draw(Option_t *option="")
Double_t fZmMax[7]
virtual void SetName(const char *name)
Description of properties and kinematics of atomic nuclei.
Definition: KVNucleus.h:125
virtual void SetTitle(const char *title="")
virtual void SetName(const char *name)
virtual void Inspect() const
virtual void Dump() const
virtual TObject * DrawClone(Option_t *option="") const
virtual void SaveAs(const char *filename="", Option_t *option="") const
virtual void Delete(Option_t *option="")
virtual void SetDrawOption(Option_t *option="")
virtual void DrawClass() const
virtual void Modified(Bool_t flag=1)=0
virtual void Update()=0