Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4FermiFragment.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: G4FermiFragment.hh 97057 2016-05-23 17:37:49Z vnivanch $
27 //
28 // FermiBreakUp de-excitation model
29 // by V. Ivanchenko (July 2016)
30 //
31 
32 #ifndef G4FermiFragment_h
33 #define G4FermiFragment_h 1
34 
35 #include "globals.hh"
36 #include "G4FragmentVector.hh"
37 #include "G4CoulombBarrier.hh"
38 
40 {
41 public:
42 
43  explicit G4FermiFragment(G4int anA, G4int aZ, G4int sp,
44  G4double exc, G4bool stable = true);
45 
47 
48  inline void
49  FillFragment(G4FragmentVector* fv, const G4LorentzVector & aMomentum) const
50  {
51  fv->push_back(new G4Fragment(A, Z, aMomentum));
52  }
53 
54  inline G4FragmentVector * GetFragment(const G4LorentzVector & aMomentum) const
55  {
57  FillFragment(vec, aMomentum);
58  return vec;
59  }
60 
61  inline G4int GetA(void) const
62  {
63  return A;
64  }
65 
66  inline G4int GetZ(void) const
67  {
68  return Z;
69  }
70 
71  inline G4int GetSpin(void) const
72  {
73  return spin;
74  }
75 
76  inline G4double GetExcitationEnergy(void) const
77  {
78  return excitEnergy;
79  }
80 
81  inline G4double GetFragmentMass(void) const
82  {
83  return fragmentMass;
84  }
85 
86  inline G4double GetTotalEnergy(void) const
87  {
88  return (fragmentMass + excitEnergy);
89  }
90 
91  inline G4bool IsStable() const
92  {
93  return isStable;
94  }
95 
96  inline G4double GetCoulombBarrier(G4int Ares, G4int Zres, G4double Eex) const
97  {
98  return isStable ? cBarrier->GetCoulombBarrier(Ares, Zres, Eex)
99  *cBarrier->BarrierPenetrationFactor(Eex) : 0.0;
100  }
101 
102  inline G4bool operator==(const G4FermiFragment &right) const
103  {
104  return (A == right.A && Z == right.Z &&
105  std::abs(excitEnergy - right.excitEnergy) < 0.0001);
106  }
107 
108 private:
109 
110  G4bool isStable;
111  G4int A;
112  G4int Z;
113  G4int spin;
114 
115  G4double excitEnergy;
116  G4double fragmentMass;
117 
118  G4CoulombBarrier* cBarrier;
119 
120  G4FermiFragment(const G4FermiFragment &right) = delete;
121  const G4FermiFragment & operator=(const G4FermiFragment &right) = delete;
122  G4bool operator!=(const G4FermiFragment &right) const = delete;
123 
124 };
125 
126 
127 #endif
128 
129 
G4FragmentVector * GetFragment(const G4LorentzVector &aMomentum) const
G4double GetCoulombBarrier(G4int Ares, G4int Zres, G4double Eex) const
G4int GetSpin(void) const
G4double GetCoulombBarrier(G4int ARes, G4int ZRes, G4double U) const
G4int GetZ(void) const
void FillFragment(G4FragmentVector *fv, const G4LorentzVector &aMomentum) const
int G4int
Definition: G4Types.hh:78
G4FermiFragment(G4int anA, G4int aZ, G4int sp, G4double exc, G4bool stable=true)
bool G4bool
Definition: G4Types.hh:79
std::vector< G4Fragment * > G4FragmentVector
Definition: G4Fragment.hh:63
G4bool operator==(const G4FermiFragment &right) const
G4double GetFragmentMass(void) const
G4bool IsStable() const
G4int GetA(void) const
double G4double
Definition: G4Types.hh:76
G4double GetTotalEnergy(void) const
virtual G4double BarrierPenetrationFactor(G4int Eexc) const
G4double GetExcitationEnergy(void) const