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p3 ] [ 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /processes/hadronic/models/de_excitation/handler/include/G4ExcitationHandler.hh (Version 11.3.0) and /processes/hadronic/models/de_excitation/handler/include/G4ExcitationHandler.hh (Version 10.6.p2)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                         3 // * License and Disclaimer                                           *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th      5 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
  6 // * the Geant4 Collaboration.  It is provided      6 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
  7 // * conditions of the Geant4 Software License      7 // * conditions of the Geant4 Software License,  included in the file *
  8 // * LICENSE and available at  http://cern.ch/      8 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
  9 // * include a list of copyright holders.           9 // * include a list of copyright holders.                             *
 10 // *                                               10 // *                                                                  *
 11 // * Neither the authors of this software syst     11 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     12 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     13 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     14 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file      15 // * use.  Please see the license in the file  LICENSE  and URL above *
 16 // * for the full disclaimer and the limitatio     16 // * for the full disclaimer and the limitation of liability.         *
 17 // *                                               17 // *                                                                  *
 18 // * This  code  implementation is the result      18 // * This  code  implementation is the result of  the  scientific and *
 19 // * technical work of the GEANT4 collaboratio     19 // * technical work of the GEANT4 collaboration.                      *
 20 // * By using,  copying,  modifying or  distri     20 // * By using,  copying,  modifying or  distributing the software (or *
 21 // * any work based  on the software)  you  ag     21 // * any work based  on the software)  you  agree  to acknowledge its *
 22 // * use  in  resulting  scientific  publicati     22 // * use  in  resulting  scientific  publications,  and indicate your *
 23 // * acceptance of all terms of the Geant4 Sof     23 // * acceptance of all terms of the Geant4 Software license.          *
 24 // *******************************************     24 // ********************************************************************
 25 //                                                 25 //
 26 // Hadronic Process: Nuclear De-excitations        26 // Hadronic Process: Nuclear De-excitations
 27 // by V. Lara (May 1998)                           27 // by V. Lara (May 1998)
 28 //                                                 28 //
 29 // Modifications:                                  29 // Modifications:
 30 // 30 June 1998 by V. Lara:                        30 // 30 June 1998 by V. Lara:
 31 //      -Using G4ParticleTable and therefore G     31 //      -Using G4ParticleTable and therefore G4IonTable
 32 //       it can return all kind of fragments p     32 //       it can return all kind of fragments produced in 
 33 //       deexcitation                              33 //       deexcitation
 34 //      -It uses default algorithms for:           34 //      -It uses default algorithms for:
 35 //              Evaporation: G4StatEvaporation     35 //              Evaporation: G4StatEvaporation
 36 //              MultiFragmentation: G4DummyMF      36 //              MultiFragmentation: G4DummyMF (a dummy one)
 37 //              Fermi Breakup model: G4StatFer     37 //              Fermi Breakup model: G4StatFermiBreakUp
 38 //                                                 38 //
 39 // 03 September 2008 by J. M. Quesada for exte     39 // 03 September 2008 by J. M. Quesada for external choice of inverse 
 40 //    cross section option                         40 //    cross section option
 41 // 06 September 2008 JMQ Also external choices     41 // 06 September 2008 JMQ Also external choices have been added for 
 42 //    superimposed Coulomb barrier (if useSICB <<  42 //    superimposed Coulomb barrier (if useSICBis set true, by default is false)  
 43 // 23 January 2012 by V.Ivanchenko remove obso     43 // 23 January 2012 by V.Ivanchenko remove obsolete data members; added access
 44 //    methods to deexcitation components           44 //    methods to deexcitation components
 45 //                                                 45 //                   
 46                                                    46 
 47 #ifndef G4ExcitationHandler_h                      47 #ifndef G4ExcitationHandler_h
 48 #define G4ExcitationHandler_h 1                    48 #define G4ExcitationHandler_h 1
 49                                                    49 
 50 #include "globals.hh"                              50 #include "globals.hh"
 51 #include "G4Fragment.hh"                           51 #include "G4Fragment.hh"
 52 #include "G4ReactionProductVector.hh"              52 #include "G4ReactionProductVector.hh"
 53 #include "G4IonTable.hh"                           53 #include "G4IonTable.hh"
 54 #include "G4DeexPrecoParameters.hh"                54 #include "G4DeexPrecoParameters.hh"
 55 #include "G4NistManager.hh"                        55 #include "G4NistManager.hh"
 56                                                    56 
 57 class G4VMultiFragmentation;                       57 class G4VMultiFragmentation;
 58 class G4VFermiBreakUp;                             58 class G4VFermiBreakUp;
 59 class G4VEvaporation;                              59 class G4VEvaporation;
 60 class G4VEvaporationChannel;                       60 class G4VEvaporationChannel;
 61 class G4ParticleTable;                         << 
 62                                                    61 
 63 class G4ExcitationHandler                          62 class G4ExcitationHandler 
 64 {                                                  63 {
 65 public:                                            64 public:
 66                                                    65 
 67   G4ExcitationHandler();                       <<  66   explicit G4ExcitationHandler(); 
 68   ~G4ExcitationHandler();                          67   ~G4ExcitationHandler();
 69                                                    68 
 70   G4ReactionProductVector* BreakItUp(const G4F     69   G4ReactionProductVector* BreakItUp(const G4Fragment &theInitialState);
 71                                                    70 
 72   // short model description used for automati     71   // short model description used for automatic web documentation
 73   void ModelDescription(std::ostream& outFile)     72   void ModelDescription(std::ostream& outFile) const;
 74                                                    73 
 75   void Initialise();                               74   void Initialise();
 76                                                    75 
 77   // user defined sub-models                       76   // user defined sub-models
 78   // deletion is responsibility of this handle     77   // deletion is responsibility of this handler if isLocal=true 
 79   void SetEvaporation(G4VEvaporation* ptr, G4b     78   void SetEvaporation(G4VEvaporation* ptr, G4bool isLocal=false);
 80   void SetMultiFragmentation(G4VMultiFragmenta     79   void SetMultiFragmentation(G4VMultiFragmentation* ptr);
 81   void SetFermiModel(G4VFermiBreakUp* ptr);        80   void SetFermiModel(G4VFermiBreakUp* ptr);
 82   void SetPhotonEvaporation(G4VEvaporationChan     81   void SetPhotonEvaporation(G4VEvaporationChannel* ptr);
 83   void SetDeexChannelsType(G4DeexChannelType v     82   void SetDeexChannelsType(G4DeexChannelType val);
 84                                                    83 
 85   //======== Obsolete methods to be removed ==     84   //======== Obsolete methods to be removed =====
 86                                                    85 
 87   // parameters of sub-models                      86   // parameters of sub-models
 88   inline void SetMaxZForFermiBreakUp(G4int aZ)     87   inline void SetMaxZForFermiBreakUp(G4int aZ);
 89   inline void SetMaxAForFermiBreakUp(G4int anA     88   inline void SetMaxAForFermiBreakUp(G4int anA);
 90   inline void SetMaxAandZForFermiBreakUp(G4int     89   inline void SetMaxAandZForFermiBreakUp(G4int anA,G4int aZ);
 91   inline void SetMinEForMultiFrag(G4double anE     90   inline void SetMinEForMultiFrag(G4double anE);
 92                                                    91 
 93   // access methods                                92   // access methods
 94   G4VEvaporation* GetEvaporation();                93   G4VEvaporation* GetEvaporation();
 95   G4VMultiFragmentation* GetMultiFragmentation     94   G4VMultiFragmentation* GetMultiFragmentation();
 96   G4VFermiBreakUp* GetFermiModel();                95   G4VFermiBreakUp* GetFermiModel();
 97   G4VEvaporationChannel* GetPhotonEvaporation(     96   G4VEvaporationChannel* GetPhotonEvaporation();
 98                                                    97 
 99   // for inverse cross section choice              98   // for inverse cross section choice
100   inline void SetOPTxs(G4int opt);                 99   inline void SetOPTxs(G4int opt);
101   // for superimposed Coulomb Barrier for inve << 100   // for superimposed Coulomb Barrir for inverse cross sections
102   inline void UseSICB();                          101   inline void UseSICB();
103                                                   102 
104   //==========================================    103   //==============================================
105                                                   104 
106   G4ExcitationHandler(const G4ExcitationHandle << 
107   const G4ExcitationHandler & operator         << 
108   =(const G4ExcitationHandler &right) = delete << 
109   G4bool operator==(const G4ExcitationHandler  << 
110   G4bool operator!=(const G4ExcitationHandler  << 
111                                                << 
112 private:                                          105 private:
113                                                   106 
114   void SetParameters();                           107   void SetParameters();
115                                                   108 
116   inline void SortSecondaryFragment(G4Fragment    109   inline void SortSecondaryFragment(G4Fragment*);
                                                   >> 110 
                                                   >> 111   G4ExcitationHandler(const G4ExcitationHandler &right);
                                                   >> 112   const G4ExcitationHandler & operator
                                                   >> 113   =(const G4ExcitationHandler &right);
                                                   >> 114   G4bool operator==(const G4ExcitationHandler &right) const;
                                                   >> 115   G4bool operator!=(const G4ExcitationHandler &right) const;
117                                                   116   
118   G4VEvaporation* theEvaporation{nullptr};     << 117   G4VEvaporation* theEvaporation;  
119   G4VMultiFragmentation* theMultiFragmentation    118   G4VMultiFragmentation* theMultiFragmentation;
120   G4VFermiBreakUp* theFermiModel;                 119   G4VFermiBreakUp* theFermiModel;
121   G4VEvaporationChannel* thePhotonEvaporation;    120   G4VEvaporationChannel* thePhotonEvaporation;
122   G4ParticleTable* thePartTable;               << 
123   G4IonTable* theTableOfIons;                     121   G4IonTable* theTableOfIons;
124   G4NistManager* nist;                            122   G4NistManager* nist;
125                                                   123 
126   const G4ParticleDefinition* theElectron;        124   const G4ParticleDefinition* theElectron;
127   const G4ParticleDefinition* theNeutron;         125   const G4ParticleDefinition* theNeutron;
128   const G4ParticleDefinition* theProton;          126   const G4ParticleDefinition* theProton;
129   const G4ParticleDefinition* theDeuteron;        127   const G4ParticleDefinition* theDeuteron;
130   const G4ParticleDefinition* theTriton;          128   const G4ParticleDefinition* theTriton;
131   const G4ParticleDefinition* theHe3;             129   const G4ParticleDefinition* theHe3;
132   const G4ParticleDefinition* theAlpha;           130   const G4ParticleDefinition* theAlpha;
133   const G4ParticleDefinition* theLambda;       << 
134                                                   131 
135   G4int icID{0};                               << 132   G4int icID;
136                                                   133 
137   G4int maxZForFermiBreakUp{9};                << 134   G4int maxZForFermiBreakUp;
138   G4int maxAForFermiBreakUp{17};               << 135   G4int maxAForFermiBreakUp;
139                                                   136 
140   G4int  fVerbose{1};                          << 137   G4int  fVerbose;
141   G4int  fWarnings{0};                         << 138   G4int  fWarnings;
142                                                   139 
143   G4double minEForMultiFrag;                      140   G4double minEForMultiFrag;
144   G4double minExcitation;                         141   G4double minExcitation;
145   G4double maxExcitation;                         142   G4double maxExcitation;
146   G4double fLambdaMass;                        << 
147                                                   143 
148   G4bool isInitialised{false};                 << 144   G4bool isInitialised;
149   G4bool isEvapLocal{true};                    << 145   G4bool isEvapLocal;
150   G4bool isActive{true};                       << 146   G4bool isActive;
151                                                   147 
152   // list of fragments to store final result      148   // list of fragments to store final result   
153   std::vector<G4Fragment*> theResults;            149   std::vector<G4Fragment*> theResults;
154                                                   150 
155   // list of fragments to store intermediate r    151   // list of fragments to store intermediate result   
156   std::vector<G4Fragment*> results;               152   std::vector<G4Fragment*> results;
157                                                   153 
158   // list of fragments to apply Evaporation or    154   // list of fragments to apply Evaporation or Fermi Break-Up
159   std::vector<G4Fragment*> theEvapList;           155   std::vector<G4Fragment*> theEvapList;          
160 };                                                156 };
161                                                   157 
162 inline void G4ExcitationHandler::SetMaxZForFer    158 inline void G4ExcitationHandler::SetMaxZForFermiBreakUp(G4int aZ)
163 {                                                 159 {
164   maxZForFermiBreakUp = aZ;                       160   maxZForFermiBreakUp = aZ;
165 }                                                 161 }
166                                                   162 
167 inline void G4ExcitationHandler::SetMaxAForFer    163 inline void G4ExcitationHandler::SetMaxAForFermiBreakUp(G4int anA)
168 {                                                 164 {
169   maxAForFermiBreakUp = anA;                      165   maxAForFermiBreakUp = anA;
170 }                                                 166 }
171                                                   167 
172 inline void G4ExcitationHandler::SetMaxAandZFo    168 inline void G4ExcitationHandler::SetMaxAandZForFermiBreakUp(G4int anA, G4int aZ)
173 {                                                 169 {
174   SetMaxAForFermiBreakUp(anA);                    170   SetMaxAForFermiBreakUp(anA);
175   SetMaxZForFermiBreakUp(aZ);                     171   SetMaxZForFermiBreakUp(aZ);
176 }                                                 172 }
177                                                   173 
178 inline void G4ExcitationHandler::SetMinEForMul    174 inline void G4ExcitationHandler::SetMinEForMultiFrag(G4double anE)
179 {                                                 175 {
180   minEForMultiFrag = anE;                         176   minEForMultiFrag = anE;
181 }                                                 177 }
182                                                   178 
                                                   >> 179 inline void G4ExcitationHandler::SetOPTxs(G4int) 
                                                   >> 180 {}
                                                   >> 181 
                                                   >> 182 inline void G4ExcitationHandler::UseSICB()
                                                   >> 183 {}
                                                   >> 184 
183 inline void G4ExcitationHandler::SortSecondary    185 inline void G4ExcitationHandler::SortSecondaryFragment(G4Fragment* frag)
184 {                                                 186 { 
185   G4int A = frag->GetA_asInt();                   187   G4int A = frag->GetA_asInt();  
186                                                   188 
187   // gamma, e-, p, n                              189   // gamma, e-, p, n
188   if(A <= 1 || frag->IsLongLived()) {          << 190   if(A <= 1) { 
189     theResults.push_back(frag);                   191     theResults.push_back(frag); 
190   } else if(frag->GetExcitationEnergy() < minE    192   } else if(frag->GetExcitationEnergy() < minExcitation) {
191     // cold fragments                             193     // cold fragments
192     G4int Z = frag->GetZ_asInt();                 194     G4int Z = frag->GetZ_asInt(); 
193                                                   195        
194     // is stable or d, t, He3, He4                196     // is stable or d, t, He3, He4
195     if(nist->GetIsotopeAbundance(Z, A) > 0.0 |    197     if(nist->GetIsotopeAbundance(Z, A) > 0.0 || (A == 3 && (Z == 1 || Z == 2)) ) {
196       theResults.push_back(frag); // stable fr    198       theResults.push_back(frag); // stable fragment 
197     } else {                                      199     } else {
198       theEvapList.push_back(frag);                200       theEvapList.push_back(frag);
199     }                                             201     }
200     // hot fragments are unstable                 202     // hot fragments are unstable
201   } else {                                        203   } else { 
202     theEvapList.push_back(frag);                  204     theEvapList.push_back(frag);  
203   }                                               205   }
204 }                                                 206 }
205                                                   207 
206 #endif                                            208 #endif
207                                                   209