- Timestamp:
- Apr 6, 2009, 12:30:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/management/src/G4InelasticInteraction.cc
r819 r962 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4InelasticInteraction.cc,v 1.12 2009/01/24 11:56:27 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 26 28 // 27 // 28 // Hadronic Process: Inelastic Interaction 29 // original by H.P. Wellisch 30 // modified by J.L. Chuma, TRIUMF, 22-Nov-1996 31 // Last modified: 27-Mar-1997 32 // J.P. Wellisch: 23-Apr-97: throw G4HadronicException(__FILE__, __LINE__, removed 33 // J.P. Wellisch: 24-Apr-97: correction for SetUpPions 34 // Modified by J.L. Chuma, 30-Apr-97: added originalTarget to CalculateMomenta 35 // since TwoBody needed to reset the target particle 36 // J.L. Chuma, 20-Jun-97: Modified CalculateMomenta to correct the decision process 37 // for whether to use GenerateXandPt or TwoCluster 38 // J.L. Chuma, 06-Aug-97: added original incident particle, before Fermi motion and 39 // evaporation effects are included, needed for calculating 40 // self absorption and corrections for single particle spectra 41 // HPW removed misunderstanding of LocalEnergyDeposit, 11.04.98. 29 // Hadronic Process: Inelastic Interaction 30 // original by H.P. Wellisch 31 // modified by J.L. Chuma, TRIUMF, 22-Nov-1996 32 // Last modified: 27-Mar-1997 33 // J.P. Wellisch: 23-Apr-97: throw G4HadronicException(__FILE__, __LINE__, removed 34 // J.P. Wellisch: 24-Apr-97: correction for SetUpPions 35 // Modified by J.L. Chuma, 30-Apr-97: added originalTarget to CalculateMomenta 36 // since TwoBody needed to reset the target particle 37 // J.L. Chuma, 20-Jun-97: Modified CalculateMomenta to correct the decision process 38 // for whether to use GenerateXandPt or TwoCluster 39 // J.L. Chuma, 06-Aug-97: added original incident particle, before Fermi motion and 40 // evaporation effects are included, needed for calculating 41 // self absorption and corrections for single particle spectra 42 // HPW removed misunderstanding of LocalEnergyDeposit, 11.04.98. 43 // 23-Jan-2009 V.Ivanchenko move constructor and destructor to the body 42 44 43 45 #include "G4InelasticInteraction.hh" 44 46 #include "Randomize.hh" 45 47 #include "G4HadReentrentException.hh" 46 47 G4double 48 49 G4InelasticInteraction::G4InelasticInteraction(const G4String& modelName) 50 : G4HadronicInteraction(modelName) 51 { cache = 0.0;} 52 53 G4InelasticInteraction::~G4InelasticInteraction() 54 {} 55 56 G4double 48 57 G4InelasticInteraction::Pmltpc( // used in Cascade functions 49 58 G4int np, G4int nm, G4int nz, G4int n, G4double b, G4double c ) … … 63 72 } 64 73 65 74 G4bool 66 75 G4InelasticInteraction::MarkLeadingStrangeParticle( 67 76 const G4ReactionProduct ¤tParticle, … … 92 101 } 93 102 94 103 void 95 104 G4InelasticInteraction::SetUpPions( 96 105 const G4int np, … … 126 135 } 127 136 128 137 void 129 138 G4InelasticInteraction::GetNormalizationConstant( 130 139 const G4double energy, // MeV, <0 means annihilation channels … … 170 179 } 171 180 172 181 void 173 182 G4InelasticInteraction::CalculateMomenta( 174 183 G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec, … … 344 353 345 354 346 355 void G4InelasticInteraction:: 347 356 Rotate(G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec, G4int &vecLen) 348 357 { … … 358 367 } 359 368 360 369 void 361 370 G4InelasticInteraction::SetUpChange( 362 371 G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
Note: See TracChangeset
for help on using the changeset viewer.