57 {
58
59
60
61
62
63
64
66
68
72
73 if(iso == 2){
74 if(rdm*6. < 1.){
77 }
78 else if(rdm*6. < 2){
81 }
82 else{
86 }
87 }
88 else if(iso == -2){
89 if(rdm*6. < 1.){
92 }
93 else if(rdm*6. < 2){
96 }
97 else{
101 }
102 }
103 else if(rdm*26. < 9.){
106 }
107 else if(rdm*26. < 18.){
110 }
111 else if(rdm*26. < 22.){
116 }
117 else{
122 }
123
124 ParticleList list;
129 const ThreeVector
zero;
130 Particle *kaon =
new Particle(Kaon1Type,
zero,rcol1);
131 Particle *antikaon =
new Particle(Kaon2Type,
zero,rcol2);
132 list.push_back(kaon);
133 list.push_back(antikaon);
134
137
140 fs->addCreatedParticle(kaon);
141 fs->addCreatedParticle(antikaon);
142
143 }
static const G4double angularSlope
const G4INCL::ThreeVector & getPosition() const
G4INCL::ParticleType getType() const
void setType(ParticleType t)
G4double totalEnergyInCM(Particle const *const p1, Particle const *const p2)
G4int getIsospin(const ParticleType t)
Get the isospin of a particle.
void generateBiased(const G4double sqrtS, ParticleList &particles, const size_t index, const G4double slope)
Generate a biased event in the CM system.
static const G4LorentzVector zero(0., 0., 0., 0.)