00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045 #ifndef G4InelasticInteraction_h
00046 #define G4InelasticInteraction_h 1
00047
00048 #include "globals.hh"
00049 #include "G4FastVector.hh"
00050 #include "G4HadronicInteraction.hh"
00051 #include "G4ReactionProduct.hh"
00052 #include "G4ParticleTypes.hh"
00053 #include "Randomize.hh"
00054 #include "G4ReactionDynamics.hh"
00055 #include "G4VIsotopeProduction.hh"
00056
00057 class G4IsoResult;
00058 class G4IsoParticleChange;
00059
00060
00061 class G4InelasticInteraction : public G4HadronicInteraction
00062 {
00063 public:
00064
00065 G4InelasticInteraction(const G4String& name = "LEInelastic");
00066 virtual ~G4InelasticInteraction();
00067
00068 void RegisterIsotopeProductionModel(G4VIsotopeProduction* aModel)
00069 {theProductionModels.push_back(aModel);}
00070
00071 void TurnOnIsotopeProduction() {isotopeProduction = true;}
00072
00073 static G4IsoParticleChange* GetIsotopeProductionInfo();
00074
00075 virtual const std::pair<G4double, G4double> GetFatalEnergyCheckLevels() const;
00076
00077 protected:
00078
00079 G4double Pmltpc(G4int np, G4int nm, G4int nz, G4int n,
00080 G4double b, G4double c );
00081
00082 G4bool MarkLeadingStrangeParticle(const G4ReactionProduct ¤tParticle,
00083 const G4ReactionProduct &targetParticle,
00084 G4ReactionProduct &leadParticle);
00085
00086 void SetUpPions(const G4int np, const G4int nm, const G4int nz,
00087 G4FastVector<G4ReactionProduct,GHADLISTSIZE>& vec,
00088 G4int& vecLen);
00089
00090 void Rotate(G4FastVector<G4ReactionProduct,GHADLISTSIZE>& vec, G4int& vecLen);
00091
00092 void GetNormalizationConstant(const G4double availableEnergy,
00093 G4double& n, G4double& anpn);
00094
00095 void CalculateMomenta(G4FastVector<G4ReactionProduct,GHADLISTSIZE>& vec,
00096 G4int& vecLen,
00097 const G4HadProjectile* originalIncident,
00098 const G4DynamicParticle* originalTarget,
00099 G4ReactionProduct& modifiedOriginal,
00100 G4Nucleus& targetNucleus,
00101 G4ReactionProduct& currentParticle,
00102 G4ReactionProduct& targetParticle,
00103 G4bool& incidentHasChanged,
00104 G4bool& targetHasChanged,
00105 G4bool quasiElastic);
00106
00107 void SetUpChange(G4FastVector<G4ReactionProduct,GHADLISTSIZE>& vec,
00108 G4int& vecLen,
00109 G4ReactionProduct& currentParticle,
00110 G4ReactionProduct& targetParticle,
00111 G4bool& incidentHasChanged);
00112
00113 void DoIsotopeCounting(const G4HadProjectile* theProjectile,
00114 const G4Nucleus& aNucleus);
00115
00116 G4IsoResult* ExtractResidualNucleus(const G4Nucleus& aNucleus);
00117 G4bool isotopeProduction;
00118
00119 G4ReactionDynamics theReactionDynamics;
00120
00121 private:
00122
00123 G4double cache;
00124 G4ThreeVector what;
00125
00126 std::vector<G4VIsotopeProduction*> theProductionModels;
00127 static G4IsoParticleChange* theIsoResult;
00128 static G4IsoParticleChange* theOldIsoResult;
00129 };
00130
00131 #endif
00132