57 {
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
77
78
82 }
83 else{
86 }
87
89
92
94
95 if(iso == 3 || iso == -3){
96 if(rdm*9. < 5.){
99 }
100 else if(rdm*9. < 8.){
104 }
105 else{
108 }
109 }
111 if(rdm*21. < 4.){
114 }
115 else if(rdm*21. < 8.){
119 }
120 else if(rdm*21. < 14.){
124 }
125 else if(rdm*21. < 17.){
128 }
129 else{
133 }
134 }
135 else{
136 if(rdm*24. < 3.){
139 }
140 else if(rdm*24. < 8.){
144 }
145 else if(rdm*24. < 13.){
148 }
149 else if(rdm*24. < 21.){
153 }
154 else{
158 }
159 }
160
161
162 nucleon->setParentResonancePDGCode(0);
163 nucleon->setParentResonanceID(0);
164 pion->setParentResonancePDGCode(0);
165 pion->setParentResonanceID(0);
166
167 ParticleList list;
168 list.push_back(nucleon);
169 list.push_back(pion);
170 const ThreeVector &rcol =
nucleon->getPosition();
171 const ThreeVector zero;
172 Particle *kaon = new Particle(KaonType,zero,rcol);
173 list.push_back(kaon);
174
176
178
179 fs->addModifiedParticle(nucleon);
180 fs->addModifiedParticle(pion);
181 fs->addCreatedParticle(kaon);
182
183 }
G4double totalEnergyInCM(Particle const *const p1, Particle const *const p2)
ParticleType getKaonType(const G4int isosp)
Get the type of kaon.
ParticleType getSigmaType(const G4int isosp)
Get the type of sigma.
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)