Implements G4INCL::IChannel.
Definition at line 57 of file G4INCLNNToNSKChannel.cc.
57 {
58
59
61
63
66
67
68
69
70
71
72
73
74
75
76 if(iso == 2){
77 if(rdm * 6. < 4.){
81 }
82 else if(rdm * 6. < 5.){
85 }
86 else{
89 }
90 }
91 else if(iso == -2){
92 if(rdm * 6. < 8.){
96 }
97 else if(rdm * 6. < 5.){
100 }
101 else{
104 }
105 }
106 else{
107 if(rdm * 14. < 2.){
111 }
112 else if(rdm * 14. < 4.){
116 }
117 else if(rdm * 14. < 9.){
121 }
122 else{
126 }
127 }
128
129 ParticleList list;
133 const ThreeVector
zero;
134 Particle *kaon =
new Particle(KaonType,
zero,rcol);
135 list.push_back(kaon);
136
139
142 fs->addCreatedParticle(kaon);
143
144
145 }
static const G4double angularSlope
const G4INCL::ThreeVector & getPosition() const
G4INCL::ParticleType getType() const
void setType(ParticleType t)
G4double totalEnergyInCM(Particle const *const p1, Particle const *const p2)
G4int getIsospin(const ParticleType t)
Get the isospin of a particle.
void generateBiased(const G4double sqrtS, ParticleList &particles, const size_t index, const G4double slope)
Generate a biased event in the CM system.
static const G4LorentzVector zero(0., 0., 0., 0.)
References G4INCL::FinalState::addCreatedParticle(), G4INCL::FinalState::addModifiedParticle(), angularSlope, G4INCL::PhaseSpaceGenerator::generateBiased(), G4INCL::ParticleTable::getIsospin(), G4INCL::Particle::getPosition(), G4INCL::Particle::getType(), G4INCL::KPlus, G4INCL::KZero, G4INCL::Neutron, particle1, particle2, G4INCL::Proton, G4INCL::Particle::setType(), G4INCL::Random::shoot(), G4INCL::SigmaMinus, G4INCL::SigmaPlus, G4INCL::SigmaZero, G4INCL::KinematicsUtils::totalEnergyInCM(), and anonymous_namespace{G4CascadeDeexciteBase.cc}::zero.