[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 | // |
---|
[1340] | 26 | // $Id: G4PreCompoundModel.hh,v 1.9 2010/08/20 07:41:48 vnivanch Exp $ |
---|
| 27 | // GEANT4 tag $Name: geant4-09-03-ref-09 $ |
---|
[819] | 28 | // |
---|
[1340] | 29 | // by V. Lara |
---|
[819] | 30 | // |
---|
| 31 | // Class Description |
---|
| 32 | // Model implementation for pre-equilibrium decay models in geant4. |
---|
| 33 | // To be used in your physics list, in case you neeed this kind of physics. |
---|
| 34 | // Can be used as a stand-allone model, but also in conjunction with an intra-nuclear |
---|
| 35 | // transport, or any of the string-parton models. |
---|
| 36 | // Class Description - End |
---|
[962] | 37 | // |
---|
[1340] | 38 | // Modified: |
---|
| 39 | // 03.09.2008 J.M.Quesada added external choice of inverse |
---|
| 40 | // cross section option.(default OPTxs=3) |
---|
| 41 | // 06.09.2008 J.M.Quesada external choices have been added for: |
---|
[962] | 42 | // - superimposed Coulomb barrier (if useSICB=true, default false) |
---|
| 43 | // - "never go back" hipothesis (if useNGB=true, default false) |
---|
| 44 | // - soft cutoff from preeq. to equlibrium (if useSCO=true, default false) |
---|
[1196] | 45 | // - CEM transition probabilities (if useCEMtr=true) |
---|
[1340] | 46 | // 30.10.2009 J.M.Quesada CEM transition probabilities are set as default |
---|
| 47 | // 20.08.2010 V.Ivanchenko Cleanup of the code - changed data members and inline methods |
---|
[819] | 48 | |
---|
| 49 | #ifndef G4PreCompoundModel_h |
---|
| 50 | #define G4PreCompoundModel_h 1 |
---|
| 51 | |
---|
| 52 | #include "G4VPreCompoundModel.hh" |
---|
| 53 | #include "G4Fragment.hh" |
---|
[962] | 54 | #include "G4ReactionProductVector.hh" |
---|
| 55 | #include "G4ReactionProduct.hh" |
---|
[1340] | 56 | #include "G4ExcitationHandler.hh" |
---|
[962] | 57 | |
---|
[1340] | 58 | class G4PreCompoundParameters; |
---|
| 59 | class G4PreCompoundEmission; |
---|
| 60 | class G4VPreCompoundTransitions; |
---|
| 61 | class G4ParticleDefinition; |
---|
[819] | 62 | |
---|
| 63 | class G4PreCompoundModel : public G4VPreCompoundModel |
---|
[1340] | 64 | { |
---|
[819] | 65 | public: |
---|
| 66 | |
---|
[1196] | 67 | G4PreCompoundModel(G4ExcitationHandler * const value); |
---|
[819] | 68 | |
---|
[1196] | 69 | virtual ~G4PreCompoundModel(); |
---|
| 70 | |
---|
[1340] | 71 | virtual G4HadFinalState * ApplyYourself(const G4HadProjectile & thePrimary, |
---|
| 72 | G4Nucleus & theNucleus); |
---|
[819] | 73 | |
---|
[1340] | 74 | virtual G4ReactionProductVector* DeExcite(G4Fragment& aFragment); |
---|
[819] | 75 | |
---|
[1340] | 76 | void UseHETCEmission(); |
---|
| 77 | void UseDefaultEmission(); |
---|
| 78 | void UseGNASHTransition(); |
---|
| 79 | void UseDefaultTransition(); |
---|
[1196] | 80 | |
---|
[1340] | 81 | //for cross section selection |
---|
| 82 | void SetOPTxs(G4int opt); |
---|
[819] | 83 | |
---|
[1340] | 84 | //for the rest of external choices |
---|
| 85 | void UseSICB(); |
---|
| 86 | void UseNGB(); |
---|
| 87 | void UseSCO(); |
---|
| 88 | void UseCEMtr(); |
---|
[819] | 89 | |
---|
| 90 | #ifdef PRECOMPOUND_TEST |
---|
| 91 | static G4Fragment GetInitialFragmentForTest() |
---|
| 92 | { return G4PreCompoundModel::theInitialFragmentForTest; } |
---|
| 93 | static std::vector<G4String*> * GetCreatorModels() |
---|
| 94 | { return &G4PreCompoundModel::theCreatorModels; } |
---|
| 95 | #endif |
---|
| 96 | |
---|
| 97 | private: |
---|
| 98 | |
---|
[1340] | 99 | inline |
---|
[819] | 100 | void PerformEquilibriumEmission(const G4Fragment & aFragment, |
---|
| 101 | G4ReactionProductVector * theResult) const; |
---|
| 102 | |
---|
[1340] | 103 | G4PreCompoundModel(); |
---|
| 104 | G4PreCompoundModel(const G4PreCompoundModel &); |
---|
| 105 | const G4PreCompoundModel& operator=(const G4PreCompoundModel &right); |
---|
| 106 | G4bool operator==(const G4PreCompoundModel &right) const; |
---|
| 107 | G4bool operator!=(const G4PreCompoundModel &right) const; |
---|
[962] | 108 | |
---|
[819] | 109 | #ifdef debug |
---|
| 110 | void CheckConservation(const G4Fragment & theInitialState, |
---|
| 111 | const G4Fragment & aFragment, |
---|
| 112 | G4ReactionProductVector * Result) const; |
---|
| 113 | #endif |
---|
| 114 | |
---|
| 115 | //============== |
---|
| 116 | // Data Members |
---|
| 117 | //============== |
---|
| 118 | |
---|
[1340] | 119 | G4PreCompoundParameters* theParameters; |
---|
| 120 | G4PreCompoundEmission* theEmission; |
---|
| 121 | G4VPreCompoundTransitions* theTransition; |
---|
[962] | 122 | |
---|
[1340] | 123 | const G4ParticleDefinition* proton; |
---|
| 124 | const G4ParticleDefinition* neutron; |
---|
[962] | 125 | |
---|
[1340] | 126 | G4bool useHETCEmission; |
---|
| 127 | G4bool useGNASHTransition; |
---|
[962] | 128 | |
---|
[1340] | 129 | //for cross section options |
---|
[962] | 130 | G4int OPTxs; |
---|
[1340] | 131 | |
---|
| 132 | //for the rest of external choices |
---|
[962] | 133 | G4bool useSICB; |
---|
| 134 | G4bool useNGB; |
---|
| 135 | G4bool useSCO; |
---|
| 136 | G4bool useCEMtr; |
---|
| 137 | |
---|
[1340] | 138 | G4HadFinalState theResult; |
---|
[962] | 139 | |
---|
[819] | 140 | #ifdef PRECOMPOUND_TEST |
---|
| 141 | static G4Fragment theInitialFragmentForTest; |
---|
| 142 | static std::vector<G4String*> theCreatorModels; |
---|
| 143 | #endif |
---|
[1340] | 144 | }; |
---|
[819] | 145 | |
---|
[1340] | 146 | inline void |
---|
| 147 | G4PreCompoundModel::PerformEquilibriumEmission(const G4Fragment & aFragment, |
---|
| 148 | G4ReactionProductVector * Result) const |
---|
| 149 | { |
---|
| 150 | G4ReactionProductVector* theEquilibriumResult = |
---|
| 151 | GetExcitationHandler()->BreakItUp(aFragment); |
---|
| 152 | Result->insert(Result->end(),theEquilibriumResult->begin(), theEquilibriumResult->end()); |
---|
| 153 | delete theEquilibriumResult; |
---|
| 154 | } |
---|
| 155 | |
---|
[819] | 156 | #endif |
---|
| 157 | |
---|