85 delete theElementaryParticleCollider;
86 delete theIntraNucleiCascader;
87 delete theDeexcitation;
107 delete theDeexcitation;
113 delete theDeexcitation;
125 const G4int itry_max = 100;
130 G4cout <<
" InuclCollider -> particle on particle collision" <<
G4endl;
132 theElementaryParticleCollider->
collide(bullet, target, globalOutput);
143 G4cerr <<
" InuclCollider -> no collision possible " <<
G4endl;
152 G4cerr <<
" InuclCollider -> ERROR target is not a nucleus " <<
G4endl;
167 G4cerr <<
" InuclCollider -> ERROR bullet is not a hadron " <<
G4endl;
173 G4cerr <<
" InuclCollider -> ERROR can not collide with "
179 btype = pbullet->
type();
184 G4cerr <<
" InuclCollider -> ERROR bullet is not a nucleus " <<
G4endl;
189 ab = nbullet->
getA();
190 zb = nbullet->
getZ();
200 G4cout <<
" InuclCollider -> inelastic interaction is impossible\n"
201 <<
" due to the coulomb barirer " <<
G4endl;
210 G4cout <<
" degenerated? " << convertToTargetRestFrame.
trivial()
225 while (itry < itry_max) {
230 globalOutput.
reset();
233 theIntraNucleiCascader->
collide(zbullet, target, output);
241 G4cout <<
" itry " << itry <<
" finished, moving to lab frame" <<
G4endl;
246 globalOutput.
add(output);
253 G4cout <<
" InuclCollider output after trials " << itry <<
G4endl;
258 G4cerr <<
" InuclCollider setOnShell failed." <<
G4endl;
263 G4cout <<
" InuclCollider -> can not generate acceptable inter. after "
264 << itry_max <<
" attempts " <<
G4endl;
285 globalOutput.
reset();
288 theIntraNucleiCascader->
rescatter(bullet, theSecondaries, theNucleus,
296 globalOutput.
add(output);
299 G4cout <<
" InuclCollider output after trials " << itry <<
G4endl;
307 if (fragment.
GetA() <= 1)
return;
313 const G4int itry_max = 10;
319 theDeexcitation->
collide(0, &frag, DEXoutput);
320 }
while (!
validateOutput(0, &frag, DEXoutput) && (++itry < itry_max));
323 globalOutput.
add(DEXoutput);
G4DLLIMPORT std::ostream G4cerr
G4DLLIMPORT std::ostream G4cout
static const G4CascadeChannel * GetTable(G4int initialState)
virtual G4bool useEPCollider(G4InuclParticle *bullet, G4InuclParticle *target) const
virtual void setVerboseLevel(G4int verbose=0)
G4InteractionCase interCase
virtual G4bool validateOutput(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
virtual G4bool inelasticInteractionPossible(G4InuclParticle *bullet, G4InuclParticle *target, G4double ekin) const
void boostToLabFrame(const G4LorentzConvertor &convertor)
void setOnShell(G4InuclParticle *bullet, G4InuclParticle *target)
const G4Fragment & getRecoilFragment() const
void setVerboseLevel(G4int verbose)
G4bool acceptable() const
void add(const G4CollisionOutput &right)
void trivialise(G4InuclParticle *bullet, G4InuclParticle *target)
void removeRecoilFragment()
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
G4InuclParticle * getBullet() const
void set(G4InuclParticle *part1, G4InuclParticle *part2)
G4bool hadNucleus() const
G4InuclParticle * getTarget() const
void rescatter(G4InuclParticle *bullet, G4KineticTrackVector *theSecondaries, G4V3DNucleus *theNucleus, G4CollisionOutput &globalOutput)
void setVerboseLevel(G4int verbose=0)
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &globalOutput)
virtual ~G4InuclCollider()
void useCascadeDeexcitation()
void deexcite(const G4Fragment &fragment, G4CollisionOutput &globalOutput)
void usePreCompoundDeexcitation()
void collide(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &globalOutput)
void rescatter(G4InuclParticle *bullet, G4KineticTrackVector *theSecondaries, G4V3DNucleus *theNucleus, G4CollisionOutput &globalOutput)
void setVerboseLevel(G4int verbose=0)
G4ParticleDefinition * getDefinition() const
void toTheTargetRestFrame()
G4double getTRSMomentum() const
G4double getKinEnergyInTheTRS() const
const G4String & GetParticleName() const
virtual void collide(G4InuclParticle *, G4InuclParticle *target, G4CollisionOutput &globalOutput)=0