Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4VPreCompoundFragment.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: G4VPreCompoundFragment.hh 100378 2016-10-19 15:03:27Z gcosmo $
27 //
28 // J. M. Quesada (August 2008).
29 // Based on previous work by V. Lara
30 //
31 // Modif (03 September 2008) by J. M. Quesada for external choice of inverse
32 // cross section option
33 // JMQ (06 September 2008) Also external choice has been added for:
34 // - superimposed Coulomb barrier (if useSICB=true)
35 // 20.08.2010 V.Ivanchenko added int Z and A and cleanup; added
36 // G4ParticleDefinition to constructor,
37 // inline method to build G4ReactionProduct;
38 // remove string name
39 //
40 
41 #ifndef G4VPreCompoundFragment_h
42 #define G4VPreCompoundFragment_h 1
43 
44 #include "G4ios.hh"
45 #include <iomanip>
46 #include "G4ParticleDefinition.hh"
47 #include "G4IonTable.hh"
48 #include "G4Fragment.hh"
49 #include "G4VCoulombBarrier.hh"
50 #include "G4ReactionProduct.hh"
51 #include "G4DeexPrecoParameters.hh"
52 #include "G4Pow.hh"
53 
55 {
56 public:
57 
59  G4VCoulombBarrier * aCoulombBarrier);
60 
61  virtual ~G4VPreCompoundFragment();
62 
63  friend std::ostream&
64  operator<<(std::ostream&, const G4VPreCompoundFragment*);
65  friend std::ostream&
66  operator<<(std::ostream&, const G4VPreCompoundFragment&);
67 
68  // =====================
69  // Pure Virtual methods
70  // =====================
71 
72  // Initialization method
73  void Initialize(const G4Fragment & aFragment);
74 
75  // Methods for calculating the emission probability
76  // ------------------------------------------------
77 
78  // Calculates the total (integrated over kinetic energy) emission
79  // probability of a fragment
80  virtual G4double CalcEmissionProbability(const G4Fragment & aFragment) = 0;
81 
82  // sample kinetic energy of emitted fragment
83  virtual G4double SampleKineticEnergy(const G4Fragment & aFragment) = 0;
84 
85  inline G4bool IsItPossible(const G4Fragment & aFragment) const;
86 
87  inline G4ReactionProduct * GetReactionProduct() const;
88 
89  inline G4int GetA() const;
90 
91  inline G4int GetZ() const;
92 
93  inline G4int GetRestA() const;
94 
95  inline G4int GetRestZ() const;
96 
97  inline G4double GetBindingEnergy() const;
98 
99  inline G4double GetEnergyThreshold() const;
100 
101  inline G4double GetEmissionProbability() const;
102 
103  inline G4double GetNuclearMass() const;
104 
105  inline G4double GetRestNuclearMass() const;
106 
107  inline const G4LorentzVector& GetMomentum() const;
108 
109  inline void SetMomentum(const G4LorentzVector & value);
110 
111  //for inverse cross section choice
112  inline void SetOPTxs(G4int);
113  //for superimposed Coulomb Barrier for inverse cross sections
114  inline void UseSICB(G4bool);
115 
116 protected:
117 
118  virtual G4double GetAlpha() const = 0;
119 
120  virtual G4double GetBeta() const = 0;
121 
122 private:
123 
124  G4VPreCompoundFragment(const G4VPreCompoundFragment &right) = delete;
125  const G4VPreCompoundFragment&
126  operator= (const G4VPreCompoundFragment &right) = delete;
127  G4int operator==(const G4VPreCompoundFragment &right) const = delete;
128  G4int operator!=(const G4VPreCompoundFragment &right) const = delete;
129 
130  // =============
131  // Data members
132  // =============
133 
134  const G4ParticleDefinition* particle;
135  G4VCoulombBarrier * theCoulombBarrierPtr;
136 
137  G4LorentzVector theMomentum;
138 
139 protected:
140 
143 
150 
158 
161 
162  //for inverse cross section choice
164  //for superimposed Coulomb Barrier for inverse cross sections
166 };
167 
168 #include "G4VPreCompoundFragment.icc"
169 
170 #endif
virtual G4double GetAlpha() const =0
G4ReactionProduct * GetReactionProduct() const
G4double GetEnergyThreshold() const
Definition: G4Pow.hh:56
const G4LorentzVector & GetMomentum() const
G4int GetA() const
G4VPreCompoundFragment(const G4ParticleDefinition *, G4VCoulombBarrier *aCoulombBarrier)
G4bool IsItPossible(const G4Fragment &aFragment) const
int G4int
Definition: G4Types.hh:78
G4DeexPrecoParameters * theParameters
void Initialize(const G4Fragment &aFragment)
G4double GetBindingEnergy() const
void SetMomentum(const G4LorentzVector &value)
const XML_Char int const XML_Char * value
Definition: expat.h:331
bool G4bool
Definition: G4Types.hh:79
G4int GetRestZ() const
G4double GetNuclearMass() const
virtual G4double SampleKineticEnergy(const G4Fragment &aFragment)=0
G4double GetEmissionProbability() const
G4int GetRestA() const
virtual G4double GetBeta() const =0
G4int GetZ() const
G4double GetRestNuclearMass() const
double G4double
Definition: G4Types.hh:76
virtual G4double CalcEmissionProbability(const G4Fragment &aFragment)=0
friend std::ostream & operator<<(std::ostream &, const G4VPreCompoundFragment *)