135 const G4int itry_max = 100;
140 G4cout <<
" InuclCollider -> particle on particle collision" <<
G4endl;
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();
210 G4cout <<
" InuclCollider -> inelastic interaction is impossible\n"
211 <<
" due to the coulomb barirer " <<
G4endl;
220 G4cout <<
" degenerated? " << convertToTargetRestFrame.
trivial()
235 while (itry < itry_max) {
240 globalOutput.
reset();
251 if (getenv(
"G4CASCADE_CHECK_PHOTONUCLEAR"))
255 G4cout <<
" itry " << itry <<
" finished, moving to lab frame" <<
G4endl;
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;
299 globalOutput.
reset();
313 G4cout <<
" InuclCollider output after trials " << itry <<
G4endl;
325 const G4int itry_max = 10;
349 G4cout <<
" >>> G4InuclCollider::photonuclearOkay" <<
G4endl;
355 G4cout <<
" comparing final nucleus with initial target:\n"
359 G4cout <<
" no final nucleus remains when target was "
369 if (mfinalNuc != mtargetNuc)
return true;
372 G4cout <<
" photonuclear produced only gammas. Try again." <<
G4endl;
G4VCascadeDeexcitation * theDeexcitation
G4CollisionOutput DEXoutput
const G4Fragment & getRecoilFragment(G4int index=0) const
void setVerboseLevel(G4int verbose=0)
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &globalOutput)
G4ElementaryParticleCollider * theElementaryParticleCollider
void rescatter(G4InuclParticle *bullet, G4KineticTrackVector *theSecondaries, G4V3DNucleus *theNucleus, G4CollisionOutput &globalOutput)
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &globalOutput)
const G4String & GetParticleName() const
void usePreCompoundDeexcitation()
G4double getTRSMomentum() const
void boostToLabFrame(const G4LorentzConvertor &convertor)
void setOnShell(G4InuclParticle *bullet, G4InuclParticle *target)
void add(const G4CollisionOutput &right)
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
virtual ~G4InuclCollider()
G4InteractionCase interCase
const G4ParticleDefinition * getDefinition() const
void set(G4InuclParticle *part1, G4InuclParticle *part2)
virtual G4bool inelasticInteractionPossible(G4InuclParticle *bullet, G4InuclParticle *target, G4double ekin) const
virtual void deExcite(const G4Fragment &fragment, G4CollisionOutput &output)=0
virtual void setVerboseLevel(G4int verbose=0)
G4IntraNucleiCascader * theIntraNucleiCascader
G4InuclParticle * getTarget() const
G4InuclParticle * getBullet() const
void setVerboseLevel(G4int verbose=0)
void useCascadeDeexcitation()
static const G4CascadeChannel * GetTable(G4int initialState)
G4double getKineticEnergy() const
virtual G4bool useEPCollider(G4InuclParticle *bullet, G4InuclParticle *target) const
G4int numberOfOutgoingNuclei() const
void setVerboseLevel(G4int verbose)
void rescatter(G4InuclParticle *bullet, G4KineticTrackVector *theSecondaries, G4V3DNucleus *theNucleus, G4CollisionOutput &globalOutput)
G4bool photonuclearOkay(G4CollisionOutput &checkOutput) const
G4GLOB_DLL std::ostream G4cerr
void toTheTargetRestFrame()
void removeRecoilFragment(G4int index=-1)
G4bool acceptable() const
G4bool hadNucleus() const
G4double getKinEnergyInTheTRS() const
G4GLOB_DLL std::ostream G4cout
virtual void setVerboseLevel(G4int verbose=0)
G4bool isElectron() const
const std::vector< G4InuclNuclei > & getOutgoingNuclei() const
void deexcite(const G4Fragment &fragment, G4CollisionOutput &globalOutput)
virtual G4bool validateOutput(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
void trivialise(G4InuclParticle *bullet, G4InuclParticle *target)