62 {
64 Particle * strange;
65
67
70 strange = particle2;
71 } else {
73 strange = particle1;
74 }
75
76
94 } else {
95 INCL_ERROR(
"Unknown particle pair in Strange-N absorption: " << nucleon <<
'\t' << strange <<
'\n');
96 return;
97 }
98
100
104
106 sampleAngles(&ctet, &stet, &fi);
107
110 G4double beta = incidentDirection.mag();
111
114 if (beta >= 1.0e-10)
115 sal = incidentDirection.perp()/beta;
116 if (sal >= 1.0e-6) {
117 G4double b1 = incidentDirection.getX();
118 G4double b2 = incidentDirection.getY();
119 G4double b3 = incidentDirection.getZ();
121 G4double t1 = ctet+cal*stet*sfi/sal;
123 q1=(b1*t1+b2*t2*cfi)/beta;
124 q2=(b2*t1-b1*t2*cfi)/beta;
125 q3=(b3*t1/beta-t2*sfi);
126 } else {
127 q1 = stet*cfi;
128 q2 = stet*sfi;
129 q3 = ctet;
130 }
131
133 lambdamass,
134 finalTypemass);
135
136 q1 *= xq;
137 q2 *= xq;
138 q3 *= xq;
139
140 ThreeVector finalMomentum(q1, q2, q3);
141
142 strange->setType(finalType);
143 strange->setMomentum(finalMomentum);
144 strange->adjustEnergyFromMomentum();
145 nucleon->setMomentum(-finalMomentum);
146 nucleon->adjustEnergyFromMomentum();
147
148 fs->addModifiedParticle(nucleon);
149 fs->addModifiedParticle(strange);
150 }
const G4INCL::ThreeVector & getMomentum() const
G4double totalEnergyInCM(Particle const *const p1, Particle const *const p2)
G4double momentumInCM(Particle const *const p1, Particle const *const p2)
gives the momentum in the CM frame of two particles.
G4bool isPair(Particle const *const p1, Particle const *const p2, ParticleType t1, ParticleType t2)
G4double getINCLMass(const G4int A, const G4int Z, const G4int S)
Get INCL nuclear mass (in MeV/c^2)
G4bool nucleon(G4int ityp)