Implements G4INCL::IChannel.
Definition at line 57 of file G4INCLNpiToLK2piChannel.cc.
57 {
58
59
60
61
62
63
64
65
66
67
68
69
72
76 }
77 else{
80 }
81
83
86
89
90 if(iso == 3 || iso == -3){
91 if(rdm < 0.5){
94 }
95 else{
98 }
99 }
101 if(rdm*7. < 1.){
104 }
105 else if(rdm*7. < 5.){
109 }
110 else{
113 }
114 }
115 else{
116 if(rdm*5. < 2.){
119 }
120 else if(rdm*5. < 4.){
123 }
124 else{
128 }
129 }
130
132
133 ParticleList list;
135 list.push_back(
pion);
136 const ThreeVector &rcol1 =
nucleon->getPosition();
137 const ThreeVector &rcol2 =
pion->getPosition();
138 const ThreeVector
zero;
139 Particle *kaon =
new Particle(KaonType,
zero,rcol1);
140 Particle *pion2 =
new Particle(PionType,
zero,rcol2);
141 list.push_back(kaon);
142 list.push_back(pion2);
143
145
147
148 fs->addModifiedParticle(
nucleon);
149 fs->addModifiedParticle(
pion);
150 fs->addCreatedParticle(kaon);
151 fs->addCreatedParticle(pion2);
152
153 }
static const G4double angularSlope
G4double totalEnergyInCM(Particle const *const p1, Particle const *const p2)
ParticleType getKaonType(const G4int isosp)
Get the type of kaon.
G4int getIsospin(const ParticleType t)
Get the isospin of a particle.
ParticleType getPionType(const G4int isosp)
Get the type of pion.
void generateBiased(const G4double sqrtS, ParticleList &particles, const size_t index, const G4double slope)
Generate a biased event in the CM system.
G4bool nucleon(G4int ityp)
static const G4LorentzVector zero(0., 0., 0., 0.)
References G4INCL::FinalState::addCreatedParticle(), G4INCL::FinalState::addModifiedParticle(), angularSlope, G4INCL::PhaseSpaceGenerator::generateBiased(), G4INCL::ParticleTable::getIsospin(), G4INCL::ParticleTable::getKaonType(), G4INCL::Particle::getMomentum(), G4INCL::ParticleTable::getPionType(), INCL_DEBUG, G4INCL::Particle::isNucleon(), G4INCL::Lambda, G4InuclParticleNames::nucleon(), particle1, particle2, G4INCL::Math::pi, G4INCL::PiMinus, G4InuclParticleNames::pion(), G4INCL::PiPlus, G4INCL::PiZero, G4INCL::Random::shoot(), G4INCL::ThreeVector::theta(), G4INCL::KinematicsUtils::totalEnergyInCM(), and anonymous_namespace{G4CascadeDeexciteBase.cc}::zero.