[819] | 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: G4GEMChannel.hh,v 1.4 2006/06/29 20:16:09 gunter Exp $ |
---|
[1007] | 28 | // GEANT4 tag $Name: geant4-09-02 $ |
---|
[819] | 29 | // |
---|
| 30 | // Hadronic Process: Nuclear De-excitations |
---|
| 31 | // by V. Lara (Oct 1998) |
---|
| 32 | // |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | #ifndef G4GEMChannel_h |
---|
| 36 | #define G4GEMChannel_h 1 |
---|
| 37 | |
---|
| 38 | #include "G4VEvaporationChannel.hh" |
---|
| 39 | #include "G4GEMProbability.hh" |
---|
| 40 | #include "G4VLevelDensityParameter.hh" |
---|
| 41 | #include "G4VCoulombBarrier.hh" |
---|
| 42 | #include "G4EvaporationLevelDensityParameter.hh" |
---|
| 43 | #include "G4NucleiProperties.hh" |
---|
| 44 | #include "Randomize.hh" |
---|
| 45 | #include "G4ParticleTable.hh" |
---|
| 46 | #include "G4IonTable.hh" |
---|
| 47 | |
---|
| 48 | //#define debug |
---|
| 49 | |
---|
| 50 | class G4GEMChannel : public G4VEvaporationChannel |
---|
| 51 | { |
---|
| 52 | public: |
---|
| 53 | // Available constructors |
---|
| 54 | G4GEMChannel(const G4int theA, const G4int theZ, |
---|
| 55 | G4GEMProbability * aEmissionStrategy, |
---|
| 56 | G4VCoulombBarrier * aCoulombBarrier); |
---|
| 57 | |
---|
| 58 | G4GEMChannel(const G4int theA, const G4int theZ, const G4String & aName, |
---|
| 59 | G4GEMProbability * aEmissionStrategy, |
---|
| 60 | G4VCoulombBarrier * aCoulombBarrier); |
---|
| 61 | |
---|
| 62 | G4GEMChannel(const G4int theA, const G4int theZ, const G4String * aName, |
---|
| 63 | G4GEMProbability * aEmissionStrategy, |
---|
| 64 | G4VCoulombBarrier * aCoulombBarrier); |
---|
| 65 | |
---|
| 66 | public: |
---|
| 67 | // destructor |
---|
| 68 | ~G4GEMChannel(); |
---|
| 69 | |
---|
| 70 | void SetEmissionStrategy(G4GEMProbability * aEmissionStrategy) |
---|
| 71 | { |
---|
| 72 | theEvaporationProbabilityPtr = aEmissionStrategy; |
---|
| 73 | } |
---|
| 74 | |
---|
| 75 | void SetCoulombBarrierStrategy(G4VCoulombBarrier * aCoulombBarrier) |
---|
| 76 | { |
---|
| 77 | theCoulombBarrierPtr = aCoulombBarrier; |
---|
| 78 | } |
---|
| 79 | |
---|
| 80 | protected: |
---|
| 81 | // default constructor |
---|
| 82 | G4GEMChannel() {}; |
---|
| 83 | |
---|
| 84 | private: |
---|
| 85 | // copy constructor |
---|
| 86 | G4GEMChannel(const G4GEMChannel & right); |
---|
| 87 | |
---|
| 88 | private: |
---|
| 89 | const G4GEMChannel & operator=(const G4GEMChannel & right); |
---|
| 90 | |
---|
| 91 | public: |
---|
| 92 | G4bool operator==(const G4GEMChannel & right) const; |
---|
| 93 | G4bool operator!=(const G4GEMChannel & right) const; |
---|
| 94 | |
---|
| 95 | public: |
---|
| 96 | void Initialize(const G4Fragment & fragment); |
---|
| 97 | |
---|
| 98 | G4FragmentVector * BreakUp(const G4Fragment & theNucleus); |
---|
| 99 | |
---|
| 100 | inline void SetLevelDensityParameter(G4VLevelDensityParameter * aLevelDensity) |
---|
| 101 | { |
---|
| 102 | if (MyOwnLevelDensity) delete theLevelDensityPtr; |
---|
| 103 | theLevelDensityPtr = aLevelDensity; |
---|
| 104 | MyOwnLevelDensity = false; |
---|
| 105 | } |
---|
| 106 | |
---|
| 107 | public: |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | inline G4double GetEmissionProbability(void) const |
---|
| 111 | { |
---|
| 112 | return EmissionProbability; |
---|
| 113 | } |
---|
| 114 | |
---|
| 115 | |
---|
| 116 | inline G4double GetMaximalKineticEnergy(void) const |
---|
| 117 | { |
---|
| 118 | return MaximalKineticEnergy; |
---|
| 119 | } |
---|
| 120 | |
---|
| 121 | // ---------------------- |
---|
| 122 | |
---|
| 123 | private: |
---|
| 124 | |
---|
| 125 | // Calculate Binding Energy for separate fragment from nucleus |
---|
| 126 | G4double CalcBindingEnergy(const G4int anA, const G4int aZ); |
---|
| 127 | |
---|
| 128 | // Calculate maximal kinetic energy that can be carried by fragment (in MeV) |
---|
| 129 | G4double CalcMaximalKineticEnergy(const G4double U); |
---|
| 130 | |
---|
| 131 | // Samples fragment kinetic energy. |
---|
| 132 | G4double CalcKineticEnergy(const G4Fragment & fragment); |
---|
| 133 | |
---|
| 134 | // This has to be removed and put in Random Generator |
---|
| 135 | G4ThreeVector IsotropicVector(const G4double Magnitude = 1.0); |
---|
| 136 | |
---|
| 137 | // Data Members |
---|
| 138 | // ************ |
---|
| 139 | private: |
---|
| 140 | |
---|
| 141 | // This data member define the channel. |
---|
| 142 | // They are intializated at object creation (constructor) time. |
---|
| 143 | |
---|
| 144 | // Atomic Number |
---|
| 145 | G4int A; |
---|
| 146 | |
---|
| 147 | // Charge |
---|
| 148 | G4int Z; |
---|
| 149 | |
---|
| 150 | |
---|
| 151 | // For evaporation probability calcualtion |
---|
| 152 | G4GEMProbability * theEvaporationProbabilityPtr; |
---|
| 153 | |
---|
| 154 | // For Level Density calculation |
---|
| 155 | G4bool MyOwnLevelDensity; |
---|
| 156 | G4VLevelDensityParameter * theLevelDensityPtr; |
---|
| 157 | |
---|
| 158 | // For Coulomb Barrier calculation |
---|
| 159 | G4VCoulombBarrier * theCoulombBarrierPtr; |
---|
| 160 | G4double CoulombBarrier; |
---|
| 161 | |
---|
| 162 | //--------------------------------------------------- |
---|
| 163 | |
---|
| 164 | // These values depend on the nucleus that is being evaporated. |
---|
| 165 | // They are calculated through the Initialize method which takes as parameters |
---|
| 166 | // the atomic number, charge and excitation energy of nucleus. |
---|
| 167 | |
---|
| 168 | // Residual Atomic Number |
---|
| 169 | G4int AResidual; |
---|
| 170 | |
---|
| 171 | // Residual Charge |
---|
| 172 | G4int ZResidual; |
---|
| 173 | |
---|
| 174 | // Emission Probability |
---|
| 175 | G4double EmissionProbability; |
---|
| 176 | |
---|
| 177 | |
---|
| 178 | // Maximal Kinetic Energy that can be carried by fragment |
---|
| 179 | G4double MaximalKineticEnergy; |
---|
| 180 | }; |
---|
| 181 | |
---|
| 182 | |
---|
| 183 | #endif |
---|