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#ifdef INCLXX_IN_GEANT4_MODE
134
135 nucleon->setParentResonancePDGCode(0);
136 nucleon->setParentResonanceID(0);
137 pion->setParentResonancePDGCode(0);
138 pion->setParentResonanceID(0);
139#endif
140
141 ParticleList list;
142 list.push_back(nucleon);
143 list.push_back(pion);
144 const ThreeVector &rcol1 =
nucleon->getPosition();
145 const ThreeVector &rcol2 =
pion->getPosition();
146 const ThreeVector zero;
147 Particle *kaon = new Particle(KaonType,zero,rcol1);
148 Particle *pion2 = new Particle(PionType,zero,rcol2);
149 list.push_back(kaon);
150 list.push_back(pion2);
151
153
155
156 fs->addModifiedParticle(nucleon);
157 fs->addModifiedParticle(pion);
158 fs->addCreatedParticle(kaon);
159 fs->addCreatedParticle(pion2);
160
161 }
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)