135 const G4int itry_max = 100;
140 G4cout <<
" InuclCollider -> particle on particle collision" <<
G4endl;
142 theElementaryParticleCollider->
collide(bullet, target, globalOutput);
153 G4cerr <<
" InuclCollider -> no collision possible " <<
G4endl;
162 G4cerr <<
" InuclCollider -> ERROR target is not a nucleus " <<
G4endl;
177 G4cerr <<
" InuclCollider -> ERROR bullet is not a hadron " <<
G4endl;
183 G4cerr <<
" InuclCollider -> ERROR can not collide with "
189 btype = pbullet->
type();
194 G4cerr <<
" InuclCollider -> ERROR bullet is not a nucleus " <<
G4endl;
199 ab = nbullet->
getA();
200 zb = nbullet->
getZ();
204 G4double ekin = convertToTargetRestFrame.getKinEnergyInTheTRS();
210 G4cout <<
" InuclCollider -> inelastic interaction is impossible\n"
211 <<
" due to the coulomb barirer " <<
G4endl;
218 convertToTargetRestFrame.toTheTargetRestFrame();
220 G4cout <<
" degenerated? " << convertToTargetRestFrame.trivial()
225 bmom.
setZ(convertToTargetRestFrame.getTRSMomentum());
235 while (itry < itry_max) {
240 globalOutput.
reset();
243 theIntraNucleiCascader->
collide(zbullet, target, output);
251 if (getenv(
"G4CASCADE_CHECK_PHOTONUCLEAR"))
255 G4cout <<
" itry " << itry <<
" finished, moving to lab frame" <<
G4endl;
260 globalOutput.
add(output);
267 G4cout <<
" InuclCollider output after trials " << itry <<
G4endl;
272 G4cerr <<
" InuclCollider setOnShell failed." <<
G4endl;
277 G4cout <<
" InuclCollider -> can not generate acceptable inter. after "
278 << itry_max <<
" attempts " <<
G4endl;
G4bool hadNucleus() const
void trivialise(G4InuclParticle *bullet, G4InuclParticle *target)
static const G4CascadeChannel * GetTable(G4int initialState)
virtual G4bool useEPCollider(G4InuclParticle *bullet, G4InuclParticle *target) const
void removeRecoilFragment(G4int index=-1)
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
const G4ParticleDefinition * getDefinition() const
virtual G4bool inelasticInteractionPossible(G4InuclParticle *bullet, G4InuclParticle *target, G4double ekin) const
G4bool photonuclearOkay(G4CollisionOutput &checkOutput) const
void deexcite(const G4Fragment &fragment, G4CollisionOutput &globalOutput)
const G4String & GetParticleName() const
G4bool acceptable() const
void add(const G4CollisionOutput &right)
G4GLOB_DLL std::ostream G4cout
void boostToLabFrame(const G4LorentzConvertor &convertor)
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &globalOutput)
G4InteractionCase interCase
void set(G4InuclParticle *part1, G4InuclParticle *part2)
G4InuclParticle * getBullet() const
const G4Fragment & getRecoilFragment(G4int index=0) const
G4InuclParticle * getTarget() const
void setOnShell(G4InuclParticle *bullet, G4InuclParticle *target)
G4GLOB_DLL std::ostream G4cerr