EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairIon.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairIon.h
1 // -------------------------------------------------------------------------
2 // ----- FairIon header file -----
3 // ----- Created 27/08/04 by V. Friese / D.Bertini -----
4 // -------------------------------------------------------------------------
5 
15 #ifndef FAIRION_H
16 #define FAIRION_H
17 
18 #include "TNamed.h"
19 class FairLogger;
20 class FairIon: public TNamed
21 {
22  public:
23 
25  FairIon();
26 
27 
38  FairIon(const char* name, Int_t z, Int_t a, Int_t q, Double_t e=0., Double_t m=0.);
39  void SetParams( const char* name, Int_t z, Int_t a,
40  Int_t q, Double_t e=0., Double_t m=0.) {
41  SetName(name);
42  fZ=z;
43  fA=a;
44  fQ=q;
45  fExcEnergy=e;
46  fMass=m;
47  }
49  virtual ~FairIon();
50 
51 
56  Int_t GetZ() const { return fZ; }
60  Int_t GetA() const { return fA; }
64  Int_t GetQ() const { return fQ; }
68  Double_t GetExcEnergy() const { return fExcEnergy; }
72  Double_t GetMass() const { return fMass; }
73 
78  void SetExcEnergy(Double_t eExc) { fExcEnergy = eExc; }
82  void SetMass(Double_t mass) { fMass = mass*amu; }
83 
84 
85  private:
86 
89  static Int_t fgNIon;
90  Int_t fZ;
91  Int_t fA;
92  Int_t fQ;
93  Double_t fExcEnergy;
94  Double_t fMass;
96  static const Double_t amu;
97 
98 
99  ClassDef(FairIon,2);
100 
101 };
102 
103 
104 
105 #endif