57 {
58
59
60
61
62
63
64
65
66
67
68
69
70
71
73 Particle *kaon;
74
78 }
79 else{
82 }
83
85
89
91
92 if(iso == 2 || iso == -2){
93 if(rdm*5. < 1.){
95 }
96 else if(rdm*2. < 1.){
99 }
100 else{
103 }
104 }
105 else{
106 if(rdm*28. < 6.){
108 }
109 else if(rdm*28. < 13.){
112 }
113 else if(rdm*28. < 22.){
116 }
117 else{
121 }
122 }
123
124 ParticleList list;
126 list.push_back(kaon);
127 const ThreeVector &rcol =
nucleon->getPosition();
128 const ThreeVector
zero;
129 Particle *
pion =
new Particle(PionType,
zero,rcol);
130 list.push_back(
pion);
131
133
134 fs->addModifiedParticle(
nucleon);
135 fs->addModifiedParticle(kaon);
136 fs->addCreatedParticle(
pion);
137
138 }
static const G4double angularSlope
G4double totalEnergyInCM(Particle const *const p1, Particle const *const p2)
G4int getIsospin(const ParticleType t)
Get the isospin of a particle.
ParticleType getNucleonType(const G4int isosp)
Get the type of nucleon.
ParticleType getPionType(const G4int isosp)
Get the type of pion.
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)
static const G4LorentzVector zero(0., 0., 0., 0.)