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 #include "globals.hh"
00029 #include "G4ios.hh"
00030 #include "G4XMesonBaryonElastic.hh"
00031 #include "G4KineticTrack.hh"
00032 #include "G4Gamma.hh"
00033 #include "G4PionPlus.hh"
00034 #include "G4Proton.hh"
00035 #include "G4XAqmElastic.hh"
00036 #include "G4XPDGElastic.hh"
00037
00038 G4XMesonBaryonElastic::G4XMesonBaryonElastic()
00039 {
00040
00041
00042 lowLimit = 0.;
00043 highLimit = DBL_MAX;
00044 }
00045
00046
00047 G4XMesonBaryonElastic::~G4XMesonBaryonElastic()
00048 { }
00049
00050
00051 G4bool G4XMesonBaryonElastic::operator==(const G4XMesonBaryonElastic &right) const
00052 {
00053 return (this == (G4XMesonBaryonElastic *) &right);
00054 }
00055
00056
00057 G4bool G4XMesonBaryonElastic::operator!=(const G4XMesonBaryonElastic &right) const
00058 {
00059 return (this != (G4XMesonBaryonElastic *) &right);
00060 }
00061
00062
00063 G4double G4XMesonBaryonElastic::CrossSection(const G4KineticTrack& trk1, const G4KineticTrack& trk2) const
00064 {
00065 G4double sigma;
00066
00067
00068 const G4ParticleDefinition* defLight = FindLightParticle(trk1,trk2);
00069 if (defLight == G4Gamma::GammaDefinition())
00070 {
00071 sigma = 0;
00072 }
00073 else
00074 {
00075
00076 G4LorentzVector p41 = trk1.Get4Momentum();
00077 G4ThreeVector p3 = trk1.GetPosition();
00078 G4ParticleDefinition* def = G4PionPlus::PionPlusDefinition();
00079
00080 G4KineticTrack piTrk(def,
00081 trk1.GetFormationTime(),
00082 p3,
00083 (G4LorentzVector&)p41);
00084
00085 G4LorentzVector p42 = trk2.Get4Momentum();
00086 G4KineticTrack pTrk(((G4ParticleDefinition*)G4Proton::ProtonDefinition()),
00087 trk2.GetFormationTime(),
00088 (G4ThreeVector)trk2.GetPosition(),
00089 (G4LorentzVector&)p42);
00090
00091 G4XAqmElastic aqm;
00092 G4double xAqmDummy = aqm.CrossSection(piTrk,pTrk);
00093 G4double xAqm = aqm.CrossSection(trk1,trk2);
00094 G4double factor = 1.;
00095 if (xAqmDummy != 0.0)
00096 {
00097 factor = xAqm / xAqmDummy;
00098 }
00099 G4XPDGElastic pdg;
00100
00101 sigma = pdg.CrossSection(piTrk,pTrk);
00102 sigma = sigma * factor;
00103 }
00104
00105 return sigma;
00106 }
00107
00108
00109 G4String G4XMesonBaryonElastic::Name() const
00110 {
00111 G4String name("MesonBaryonElasticCrossSection");
00112 return name;
00113 }
00114
00115
00116
00117 G4bool G4XMesonBaryonElastic::IsValid(G4double e) const
00118 {
00119 G4bool answer = InLimits(e,lowLimit,highLimit);
00120
00121 return answer;
00122 }