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 #ifndef G4RPGReaction_h
00033 #define G4RPGReaction_h 1
00034
00035
00036
00037
00038
00039
00040 #include "G4DynamicParticle.hh"
00041 #include "G4ReactionProduct.hh"
00042 #include "G4Nucleus.hh"
00043 #include "G4FastVector.hh"
00044 #include "G4HadProjectile.hh"
00045
00046
00047 class G4RPGReaction
00048 {
00049 public:
00050
00051 G4RPGReaction() {}
00052
00053 virtual ~G4RPGReaction() {}
00054
00055 G4bool ReactionStage(const G4HadProjectile* ,
00056 G4ReactionProduct& ,
00057 G4bool& ,
00058 const G4DynamicParticle* ,
00059 G4ReactionProduct& ,
00060 G4bool& ,
00061 const G4Nucleus& ,
00062 G4ReactionProduct& ,
00063 G4FastVector<G4ReactionProduct,256>& ,
00064 G4int& ,
00065 G4bool ,
00066 G4ReactionProduct& );
00067
00068
00069 void AddBlackTrackParticles(const G4double ,
00070 const G4int ,
00071 const G4double ,
00072 const G4int ,
00073 const G4ReactionProduct& ,
00074 G4int ,
00075 G4int ,
00076 const G4Nucleus& ,
00077 G4FastVector<G4ReactionProduct,256>& ,
00078 G4int& );
00079
00080
00081 G4double GenerateNBodyEvent(const G4double totalEnergy,
00082 const G4bool constantCrossSection,
00083 G4FastVector<G4ReactionProduct,256> &vec,
00084 G4int& vecLen);
00085
00086 G4double GenerateNBodyEventT(const G4double totalEnergy,
00087 const G4bool constantCrossSection,
00088 std::vector<G4ReactionProduct*>& list);
00089
00090 void NuclearReaction(G4FastVector<G4ReactionProduct,4> &vec,
00091 G4int& vecLen,
00092 const G4HadProjectile* originalIncident,
00093 const G4Nucleus& aNucleus,
00094 const G4double theAtomicMass,
00095 const G4double* massVec);
00096
00097 protected:
00098
00099 void Rotate(const G4double numberofFinalStateNucleons,
00100 const G4ThreeVector& temp,
00101 const G4ReactionProduct& modifiedOriginal,
00102 const G4HadProjectile* originalIncident,
00103 const G4Nucleus& targetNucleus,
00104 G4ReactionProduct ¤tParticle,
00105 G4ReactionProduct &targetParticle,
00106 G4FastVector<G4ReactionProduct,256> &vec,
00107 G4int& vecLen );
00108
00109 void Defs1(const G4ReactionProduct& modifiedOriginal,
00110 G4ReactionProduct& currentParticle,
00111 G4ReactionProduct& targetParticle,
00112 G4FastVector<G4ReactionProduct,256> &vec,
00113 G4int& vecLen);
00114
00115 std::pair<G4int, G4int> GetFinalStateNucleons(
00116 const G4DynamicParticle* originalTarget,
00117 const G4FastVector<G4ReactionProduct,256>& vec,
00118 const G4int& vecLen );
00119
00120 void MomentumCheck(const G4ReactionProduct &modifiedOriginal,
00121 G4ReactionProduct ¤tParticle,
00122 G4ReactionProduct &targetParticle,
00123 G4FastVector<G4ReactionProduct,256> &vec,
00124 G4int& vecLen);
00125
00126 G4double normal();
00127
00128 G4ThreeVector Isotropic(const G4double&);
00129
00130 };
00131
00132 #endif
00133