KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVElementDensity.h
Go to the documentation of this file.
1 
4 #ifndef __KVElementDensity_H
5 #define __KVElementDensity_H
6 
7 #include "KVNuclData.h"
8 
15 class KVElementDensity : public KVNuclData {
20 
21 public:
23  KVElementDensity(const Char_t* name);
25  ROOT_COPY_ASSIGN_OP(KVElementDensity)
26  virtual ~KVElementDensity();
27  void Copy(TObject&) const;
28 
29  void SetZ(Int_t z)
30  {
31  fZ = z;
32  };
33  Int_t GetZ() const
34  {
35  return fZ;
36  };
37  void SetIsGas(Bool_t g = kTRUE)
38  {
39  fIsGas = g;
40  };
41  Bool_t IsGas() const
42  {
43  return fIsGas;
44  };
45  void SetElementSymbol(const Char_t* s)
46  {
47  fSymbol = s;
48  };
49  const Char_t* GetElementSymbol() const
50  {
51  return fSymbol;
52  };
53  void SetElementName(const Char_t* en)
54  {
55  fElementName = en;
56  };
57  const Char_t* GetElementName() const
58  {
59  return fElementName;
60  };
61 
62  void Print(Option_t* o = "") const;
63 
64  ClassDef(KVElementDensity, 1) //Atomic element with name, symbol and density
65 };
66 
67 #endif
int Int_t
char Char_t
bool Bool_t
const char Option_t
#define ClassDef(name, id)
Atomic element with name, symbol and density.
Int_t GetZ() const
const Char_t * GetElementName() const
void SetIsGas(Bool_t g=kTRUE)
void Print(Option_t *o="") const
const Char_t * GetElementSymbol() const
void Copy(TObject &) const
Bool_t IsGas() const
virtual ~KVElementDensity()
Destructor.
void SetZ(Int_t z)
void SetElementSymbol(const Char_t *s)
KVElementDensity()
Default constructor.
void SetElementName(const Char_t *en)
Simple abstract class to store value related to nuclear data.
Definition: KVNuclData.h:17
const long double s
Definition: KVUnits.h:94
const long double g
masses
Definition: KVUnits.h:72