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: G4PreCompoundModel.hh,v 1.6 2008/09/22 10:18:36 ahoward Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-02 $ |
---|
29 | // |
---|
30 | // by V. Lara |
---|
31 | |
---|
32 | // Class Description |
---|
33 | // Model implementation for pre-equilibrium decay models in geant4. |
---|
34 | // To be used in your physics list, in case you neeed this kind of physics. |
---|
35 | // Can be used as a stand-allone model, but also in conjunction with an intra-nuclear |
---|
36 | // transport, or any of the string-parton models. |
---|
37 | // Class Description - End |
---|
38 | // |
---|
39 | // Modif (03 September 2008) by J. M. Quesada for external choice of inverse |
---|
40 | // cross section option.(default OPTxs=3) |
---|
41 | // JMQ (06 September 2008) Also external choices have been added for: |
---|
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) |
---|
45 | // - CEM transition probabilities (if useCEMtr=true, default false) |
---|
46 | |
---|
47 | #ifndef G4PreCompoundModel_h |
---|
48 | #define G4PreCompoundModel_h 1 |
---|
49 | |
---|
50 | #include "G4VPreCompoundModel.hh" |
---|
51 | #include "G4LorentzVector.hh" |
---|
52 | |
---|
53 | |
---|
54 | #include "G4NucleiProperties.hh" |
---|
55 | #include "G4PreCompoundParameters.hh" |
---|
56 | #include "G4ExcitationHandler.hh" |
---|
57 | #include "G4Fragment.hh" |
---|
58 | #include "Randomize.hh" |
---|
59 | |
---|
60 | //#include "G4PreCompoundEmission.hh" |
---|
61 | |
---|
62 | #include "G4DynamicParticle.hh" |
---|
63 | #include "G4ReactionProductVector.hh" |
---|
64 | #include "G4ReactionProduct.hh" |
---|
65 | #include "G4ParticleTypes.hh" |
---|
66 | #include "G4ParticleTable.hh" |
---|
67 | |
---|
68 | //#define debug |
---|
69 | //#define verbose |
---|
70 | |
---|
71 | class G4PreCompoundModel : public G4VPreCompoundModel |
---|
72 | { |
---|
73 | |
---|
74 | public: |
---|
75 | G4PreCompoundModel(G4ExcitationHandler * const value) : |
---|
76 | G4VPreCompoundModel(value), useHETCEmission(false), useGNASHTransition(false), |
---|
77 | OPTxs(3), useSICB(false), useNGB(false), useSCO(false), useCEMtr(false) {} |
---|
78 | |
---|
79 | ~G4PreCompoundModel() {} |
---|
80 | |
---|
81 | private: |
---|
82 | G4PreCompoundModel() {} |
---|
83 | |
---|
84 | G4PreCompoundModel(const G4PreCompoundModel &) : G4VPreCompoundModel() {} |
---|
85 | |
---|
86 | const G4PreCompoundModel& operator=(const G4PreCompoundModel &right); |
---|
87 | G4bool operator==(const G4PreCompoundModel &right) const; |
---|
88 | G4bool operator!=(const G4PreCompoundModel &right) const; |
---|
89 | |
---|
90 | public: |
---|
91 | G4HadFinalState * ApplyYourself(const G4HadProjectile & thePrimary, G4Nucleus & theNucleus); |
---|
92 | |
---|
93 | G4ReactionProductVector* DeExcite(const G4Fragment& aFragment) const; |
---|
94 | |
---|
95 | #ifdef PRECOMPOUND_TEST |
---|
96 | static G4Fragment GetInitialFragmentForTest() |
---|
97 | { return G4PreCompoundModel::theInitialFragmentForTest; } |
---|
98 | static std::vector<G4String*> * GetCreatorModels() |
---|
99 | { return &G4PreCompoundModel::theCreatorModels; } |
---|
100 | #endif |
---|
101 | |
---|
102 | inline void UseHETCEmission() { useHETCEmission = true; } |
---|
103 | inline void UseDefaultEmission() { useHETCEmission = false; } |
---|
104 | inline void UseGNASHTransition() { useGNASHTransition = true; } |
---|
105 | inline void UseDefaultTransition() { useGNASHTransition = false; } |
---|
106 | |
---|
107 | //for cross section selection |
---|
108 | inline void SetOPTxs(G4int opt) { OPTxs = opt; } |
---|
109 | //for the rest of external choices |
---|
110 | inline void UseSICB() { useSICB = true; } |
---|
111 | inline void UseNGB() { useNGB = true; } |
---|
112 | inline void UseSCO() { useSCO = true; } |
---|
113 | inline void UseCEMtr() { useCEMtr = true; } |
---|
114 | private: |
---|
115 | |
---|
116 | void PerformEquilibriumEmission(const G4Fragment & aFragment, |
---|
117 | G4ReactionProductVector * theResult) const; |
---|
118 | |
---|
119 | private: |
---|
120 | |
---|
121 | #ifdef debug |
---|
122 | void CheckConservation(const G4Fragment & theInitialState, |
---|
123 | const G4Fragment & aFragment, |
---|
124 | G4ReactionProductVector * Result) const; |
---|
125 | #endif |
---|
126 | |
---|
127 | //============== |
---|
128 | // Data Members |
---|
129 | //============== |
---|
130 | |
---|
131 | |
---|
132 | |
---|
133 | G4bool useHETCEmission; |
---|
134 | G4bool useGNASHTransition; |
---|
135 | |
---|
136 | //for cross section options |
---|
137 | G4int OPTxs; |
---|
138 | //for the rest of external choices |
---|
139 | G4bool useSICB; |
---|
140 | G4bool useNGB; |
---|
141 | G4bool useSCO; |
---|
142 | G4bool useCEMtr; |
---|
143 | |
---|
144 | |
---|
145 | G4HadFinalState theResult; |
---|
146 | |
---|
147 | #ifdef PRECOMPOUND_TEST |
---|
148 | static G4Fragment theInitialFragmentForTest; |
---|
149 | static std::vector<G4String*> theCreatorModels; |
---|
150 | #endif |
---|
151 | |
---|
152 | }; |
---|
153 | #endif |
---|
154 | |
---|