57 {
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74 Particle *delta;
75
77 delta = particle1;
78 }
79 else {
80 delta = particle2;
81 }
82
84
87
91
93
94 if(std::abs(iso) == 4){
98 }
99 else if(iso == 0){
100 if(rdm*9 < 3){
104 }
105 else if(rdm*9 < 5){
109 }
110 else if(rdm*9 < 7){
114 }
115 else{
119 }
120 }
122 if(rdm*7 < 2){
126 }
127 else if(rdm*7 < 4){
131 }
132 else{
136 }
137 }
138 else{
139 if(rdm*3 < 1){
143 }
144 else if(rdm*3 < 2){
148 }
149 else{
153 }
154 }
155
156 particle1->
setType(NucleonType);
158
159 ParticleList list;
160 list.push_back(particle1);
161 list.push_back(particle2);
162 const ThreeVector &rcol = particle2->
getPosition();
163 const ThreeVector zero;
164 Particle *kaon = new Particle(KaonType,zero,rcol);
165 list.push_back(kaon);
166
169
170 fs->addModifiedParticle(particle1);
171 fs->addModifiedParticle(particle2);
172 fs->addCreatedParticle(kaon);
173
174 }
const G4INCL::ThreeVector & getPosition() const
G4INCL::ParticleType getType() const
G4bool isResonance() const
Is it a resonance?
void setType(ParticleType t)
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 getNucleonType(const G4int isosp)
Get the type of nucleon.
void generateBiased(const G4double sqrtS, ParticleList &particles, const size_t index, const G4double slope)
Generate a biased event in the CM system.