Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4Ions.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 // $Id$
28 //
29 //
30 // ------------------------------------------------------------
31 // GEANT 4 class header file
32 //
33 // History: first implementation, based on object model of
34 // Hisaya Kurashige, 27 June 1998
35 // ----------------------------------------------------------------
36 // Add excitation energy 17 Aug. 1999 H.Kurashige
37 //
38 
39 
40 #ifndef G4Ions_h
41 #define G4Ions_h 1
42 
43 #include "globals.hh"
44 #include "G4ios.hh"
45 #include "G4ParticleDefinition.hh"
46 
47 // ######################################################################
48 // ### Ions ###
49 // ######################################################################
50 
52 {
53  // Class Description
54  // This is the base class for all nuclei including pre-defined
55  // light nuclei such as deuteron, alpha, and proton (Hydrogen)
56  // All nuclei/ions created on the fly are objects of this class
57  // Atomic number and atomic mass are vaild only for particles derived
58  // from this class. This class has Excitation Energy in addition to
59  // the normal particle properties.
60 
61  protected:
62  G4Ions(){};
63 
64 
65  public: //With Description
66  G4Ions(
67  const G4String& aName, G4double mass,
68  G4double width, G4double charge,
69  G4int iSpin, G4int iParity,
70  G4int iConjugation, G4int iIsospin,
71  G4int iIsospin3, G4int gParity,
72  const G4String& pType, G4int lepton,
73  G4int baryon, G4int encoding,
74  G4bool stable, G4double lifetime,
75  G4DecayTable *decaytable, G4bool shortlived,
76  const G4String& subType ="",
77  G4int anti_encoding =0,
78  G4double excitation = 0.0
79  );
80 
81  public:
82  virtual ~G4Ions();
84  G4Ions* Ions();
85 
86  public: //With Description
87  // Get excitation energy of nucleus
88  G4double GetExcitationEnergy() const ;
89 
90  private:
91  G4double theExcitationEnergy;
92 
93 };
94 
95 inline
97 {
98  return this;
99 }
100 
101 inline
103 {
104  return theExcitationEnergy;
105 }
106 
107 #endif
108 
109 
110 
111 
112 
113 
114 
115