Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4VFermiFragment.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 // $Id: G4VFermiFragment.hh 97097 2016-05-25 07:50:31Z gcosmo $
27 //
28 // Hadronic Process: Nuclear De-excitations
29 // by V. Lara (Nov 1998)
30 //
31 // Modifications:
32 // 01.04.2011 General cleanup by V.Ivanchenko
33 
34 #ifndef G4VFermiFragment_h
35 #define G4VFermiFragment_h 1
36 
37 #include "G4FragmentVector.hh"
38 #include "globals.hh"
39 
41 {
42 public:
43 
44  explicit G4VFermiFragment(G4int anA, G4int aZ, G4int Pol,
45  G4double exc, G4bool stable = true);
46 
47  virtual ~G4VFermiFragment();
48 
49  virtual void
50  FillFragment(G4FragmentVector*, const G4LorentzVector & aMomentum) const = 0;
51 
52  inline G4FragmentVector * GetFragment(const G4LorentzVector & aMomentum) const
53  {
55  FillFragment(vec, aMomentum);
56  return vec;
57  }
58 
59  inline G4int GetA(void) const
60  {
61  return A;
62  }
63 
64  inline G4int GetZ(void) const
65  {
66  return Z;
67  }
68 
69  inline G4int GetPolarization(void) const
70  {
71  return Polarization;
72  }
73 
74  inline G4double GetExcitationEnergy(void) const
75  {
76  return ExcitEnergy;
77  }
78 
79  inline G4double GetFragmentMass(void) const
80  {
81  return fragmentMass;
82  }
83 
84  inline G4double GetTotalEnergy(void) const
85  {
86  return (GetFragmentMass() + GetExcitationEnergy());
87  }
88 
89  inline G4bool IsStable() const
90  {
91  return isStable;
92  }
93 
94 private:
95 
96  G4bool isStable;
97  G4int A;
98  G4int Z;
99  G4int Polarization;
100 
101  G4double ExcitEnergy;
102  G4double fragmentMass;
103 
104  G4VFermiFragment(const G4VFermiFragment &right) = delete;
105  const G4VFermiFragment & operator=(const G4VFermiFragment &right) = delete;
106  G4bool operator==(const G4VFermiFragment &right) const = delete;
107  G4bool operator!=(const G4VFermiFragment &right) const = delete;
108 
109 };
110 
111 
112 #endif
113 
114 
virtual ~G4VFermiFragment()
G4int GetPolarization(void) const
int G4int
Definition: G4Types.hh:78
G4int GetZ(void) const
G4double GetTotalEnergy(void) const
virtual void FillFragment(G4FragmentVector *, const G4LorentzVector &aMomentum) const =0
G4bool IsStable() const
G4int GetA(void) const
bool G4bool
Definition: G4Types.hh:79
std::vector< G4Fragment * > G4FragmentVector
Definition: G4Fragment.hh:63
G4FragmentVector * GetFragment(const G4LorentzVector &aMomentum) const
G4double GetExcitationEnergy(void) const
G4double GetFragmentMass(void) const
G4VFermiFragment(G4int anA, G4int aZ, G4int Pol, G4double exc, G4bool stable=true)
double G4double
Definition: G4Types.hh:76