57 {
58
59
60
61
62
63
64
65
66
67
68
71
72
76 }
77 else{
80 }
81
83
86
88
89 if(iso == 3 || iso == -3){
92 }
94 if(rdm*6. < 1.){
97 }
98 else if(rdm*6. < 2.){
101 }
102 else{
106 }
107 }
108 else{
109 if(rdm*5. < 1.){
112 }
113 else if(rdm*5. < 3.){
117 }
118 else{
122 }
123 }
124
125#ifdef INCLXX_IN_GEANT4_MODE
126
127 nucleon->setParentResonancePDGCode(0);
128 nucleon->setParentResonanceID(0);
129 pion->setParentResonancePDGCode(0);
130 pion->setParentResonanceID(0);
131#endif
132
133 ParticleList list;
134 list.push_back(nucleon);
135 list.push_back(pion);
136 const ThreeVector &rcol =
pion->getPosition();
137 const ThreeVector zero;
138 Particle *kaon = new Particle(KaonType,zero,rcol);
139 list.push_back(kaon);
140
142
144
145 fs->addModifiedParticle(nucleon);
146 fs->addModifiedParticle(pion);
147 fs->addCreatedParticle(kaon);
148
149 }
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 getNucleonType(const G4int isosp)
Get the type of nucleon.
ParticleType getAntiKaonType(const G4int isosp)
Get the type of antikaon.
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)