FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairIon.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 // -------------------------------------------------------------------------
9 // ----- FairIon header file -----
10 // ----- Created 27/08/04 by V. Friese / D.Bertini -----
11 // -------------------------------------------------------------------------
12 
21 #ifndef FAIRION_H
22 #define FAIRION_H
23 
24 #include <Rtypes.h> // for Int_t, Double_t, etc
25 #include <TNamed.h> // for TNamed
26 
27 class FairLogger;
28 
29 class FairIon : public TNamed
30 {
31  public:
33  FairIon();
34 
45  FairIon(const char* name, Int_t z, Int_t a, Int_t q, Double_t e = 0., Double_t m = 0.);
46  void SetParams(const char* name, Int_t z, Int_t a, Int_t q, Double_t e = 0., Double_t m = 0.)
47  {
48  SetName(name);
49  fZ = z;
50  fA = a;
51  fQ = q;
52  fExcEnergy = e;
53  fMass = m;
54  }
56  virtual ~FairIon();
57 
62  Int_t GetZ() const { return fZ; }
66  Int_t GetA() const { return fA; }
70  Int_t GetQ() const { return fQ; }
74  Double_t GetExcEnergy() const { return fExcEnergy; }
78  Double_t GetMass() const { return fMass; }
79 
84  void SetExcEnergy(Double_t eExc) { fExcEnergy = eExc; }
88  void SetA(Int_t a) { fA = a; }
92  void SetMass(Double_t mass) { fMass = mass; }
93 
94  private:
95  static Int_t fgNIon;
96  Int_t fZ;
97  Int_t fA;
98  Int_t fQ;
99  Double_t fExcEnergy;
100  Double_t fMass;
101  FairLogger* fLogger;
102 
103  FairIon(const FairIon&);
104  FairIon& operator=(const FairIon&);
105 
106  ClassDef(FairIon, 2);
107 };
108 
109 #endif
virtual ~FairIon()
Definition: FairIon.cxx:49
void SetParams(const char *name, Int_t z, Int_t a, Int_t q, Double_t e=0., Double_t m=0.)
Definition: FairIon.h:46
Double_t GetMass() const
Definition: FairIon.h:78
Int_t GetA() const
Definition: FairIon.h:66
Int_t GetQ() const
Definition: FairIon.h:70
Int_t GetZ() const
Definition: FairIon.h:62
void SetA(Int_t a)
Definition: FairIon.h:88
FairIon()
Definition: FairIon.cxx:18
void SetMass(Double_t mass)
Definition: FairIon.h:92
void SetExcEnergy(Double_t eExc)
Definition: FairIon.h:84
Double_t GetExcEnergy() const
Definition: FairIon.h:74