73 delete excitationHandler;
127 G4double bmax_0 = std::sqrt( xs_0 / pi );
134 std::vector< G4QMDNucleus* > nucleuses;
143 G4double e1 = std::sqrt( p1*p1 + m1*m1 );
149 G4double beta_nncm = ( - boostLABtoCM.
beta() + boostLABtoNN.
beta() ) / ( 1 - boostLABtoCM.
beta() * boostLABtoNN.
beta() ) ;
157 boostToReac = boostLABtoNN;
158 boostBackToLAB = -boostLABtoNN;
167 G4double bmax = envelopF*(bmax_0/fermi);
179 calcOffSetOfCollision( b , proj_pd , targ_pd , plab , elab , bmax , boostCMtoNN );
229 , p0.
z() * coulomb_collision_gamma_targ + coulomb_collision_pz_targ );
233 , r0.
z() / coulomb_collision_gamma_targ + coulomb_collision_rz_targ );
257 , p0.
z() * coulomb_collision_gamma_proj + coulomb_collision_pz_proj );
261 , r0.
z() / coulomb_collision_gamma_proj + coulomb_collision_rz_proj );
284 , p0.
z() * coulomb_collision_gamma_proj + coulomb_collision_pz_proj );
288 , r0.
z() / coulomb_collision_gamma_proj + coulomb_collision_rz_proj );
307 for (
G4int i = 0 ; i < maxTime ; i++ )
314 if ( i / 10 * 10 == i )
339 if ( numberOfSecondary == 2 )
342 G4bool elasticLike_system =
false;
343 if ( nucleuses.size() == 2 )
347 sec_a_A = nucleuses[0]->GetMassNumber();
348 sec_b_Z = nucleuses[1]->GetAtomicNumber();
349 sec_b_A = nucleuses[1]->GetMassNumber();
351 if ( ( sec_a_Z == proj_Z && sec_a_A == proj_A && sec_b_Z == targ_Z && sec_b_A == targ_A )
352 || ( sec_a_Z == targ_Z && sec_a_A == targ_A && sec_b_Z == proj_Z && sec_b_A == proj_A ) )
354 elasticLike_system =
true;
358 else if ( nucleuses.size() == 1 )
361 sec_a_Z = nucleuses[0]->GetAtomicNumber();
362 sec_a_A = nucleuses[0]->GetMassNumber();
365 if ( ( sec_a_Z == proj_Z && sec_a_A == proj_A && sec_b_pd == targ_pd )
366 || ( sec_a_Z == targ_Z && sec_a_A == targ_A && sec_b_pd == proj_pd ) )
368 elasticLike_system =
true;
378 if ( ( sec_a_pd == proj_pd && sec_b_pd == targ_pd )
379 || ( sec_a_pd == targ_pd && sec_b_pd == proj_pd ) )
381 elasticLike_system =
true;
386 if ( elasticLike_system ==
true )
389 G4bool elasticLike_energy =
true;
391 for (
G4int i = 0 ; i < int ( nucleuses.size() ) ; i++ )
399 if ( nucleuses[i]->GetExcitationEnergy()*GeV > 1.0*MeV ) elasticLike_energy =
false;
404 G4bool withCollision =
true;
416 if ( elasticLike_energy ==
false ) elastic =
false;
418 if ( elasticLike_energy ==
false && withCollision ==
true ) elastic =
false;
435 if ( elastic ==
true )
438 for ( std::vector< G4QMDNucleus* >::iterator
439 it = nucleuses.begin() ; it != nucleuses.end() ; it++ )
450 for ( std::vector< G4QMDNucleus* >::iterator it
451 = nucleuses.begin() ; it != nucleuses.end() ; it++ )
472 if ( (*it)->GetAtomicNumber() == 0
473 || (*it)->GetAtomicNumber() == (*it)->GetMassNumber() )
476 for (
G4int i = 0 ; i < (*it)->GetTotalNumberOfParticipant() ; i++ )
478 G4QMDParticipant* aP =
new G4QMDParticipant( ( (*it)->GetParticipant( i ) )->GetDefinition() , ( (*it)->GetParticipant( i ) )->GetMomentum() , ( (*it)->GetParticipant( i ) )->GetPosition() );
484 G4double nucleus_e = std::sqrt ( std::pow ( (*it)->GetNuclearMass()/GeV , 2 ) + std::pow ( (*it)->Get4Momentum().vect().mag() , 2 ) );
485 G4LorentzVector nucleus_p4CM ( (*it)->Get4Momentum().vect() , nucleus_e );
489 G4int ia = (*it)->GetMassNumber();
490 G4int iz = (*it)->GetAtomicNumber();
497 rv = excitationHandler->
BreakItUp( *aFragment );
499 for ( G4ReactionProductVector::iterator itt
500 = rv->begin() ; itt != rv->end() ; itt++ )
507 G4LorentzVector p4 ( (*itt)->GetMomentum()/GeV , (*itt)->GetTotalEnergy()/GeV );
523 randomized_direction = randomized_direction.
unit();
572 if ( notBreak ==
true )
583 for ( G4ReactionProductVector::iterator itt
584 = rv->begin() ; itt != rv->end() ; itt++ )
616 for ( std::vector< G4QMDNucleus* >::iterator it
617 = nucleuses.begin() ; it != nucleuses.end() ; it++ )
634void G4QMDReaction::calcOffSetOfCollision(
G4double b ,
643 G4double stot = std::sqrt ( etot*etot - ptot*ptot );
645 G4double pstt = std::sqrt ( ( stot*stot - ( mass_proj + mass_targ ) * ( mass_proj + mass_targ )
646 ) * ( stot*stot - ( mass_proj - mass_targ ) * ( mass_proj - mass_targ ) ) )
650 G4double eccm = stot - ( mass_proj + mass_targ );
673 G4double rmax = std::sqrt( rmax0*rmax0 + b*b );
676 G4double pcca = 1.0 - double ( zp * zt ) * ccoul / eccm / rmax - ( b / rmax )*( b / rmax );
686 G4double aas = 2.0 * eccm * b / double ( zp * zt ) / ccoul;
687 bbs = 1.0 / std::sqrt ( 1.0 + aas*aas );
688 aas1 = ( 1.0 + aas * b / rmax ) * bbs;
695 if ( 1.0 - aas1*aas1 <= 0 || 1.0 - bbs*bbs <= 0.0 )
702 G4double aat1 = aas1 / std::sqrt ( 1.0 - aas1*aas1 );
703 G4double aat2 = bbs / std::sqrt ( 1.0 - bbs*bbs );
705 thet1 = std::atan ( aat1 );
706 thet2 = std::atan ( aat2 );
710 cost = std::cos( theta );
711 sint = std::sin( theta );
714 G4double rzpr = -rmax * cost * ( mass_targ ) / ( mass_proj + mass_targ );
715 G4double rzta = rmax * cost * ( mass_proj ) / ( mass_proj + mass_targ );
722 G4double pzpc = pzcc * ( cost * pccf + sint * b / rmax );
723 G4double pxpr = pzcc * ( -sint * pccf + cost * b / rmax );
728 G4double epc = std::sqrt ( pzpc*pzpc + pxpr*pxpr + mass_proj*mass_proj );
729 G4double etc = std::sqrt ( pztc*pztc + pxta*pxta + mass_targ*mass_targ );
740 pzpr = pzpc + betacm * gammacm * ( gammacm / ( 1. + gammacm ) * pzpc * betacm + epc );
741 pzta = pztc + betacm * gammacm * ( gammacm / ( 1. + gammacm ) * pztc * betacm + etc );
742 epr = gammacm * ( epc + betacm * pzpc );
743 eta = gammacm * ( etc + betacm * pztc );
748 G4double gammpr = epr / ( mass_proj );
749 G4double gammta = eta / ( mass_targ );
751 pzta = pzta / double ( at );
752 pxta = pxta / double ( at );
754 pzpr = pzpr / double ( ap );
755 pxpr = pxpr / double ( ap );
763 coulomb_collision_gamma_proj = gammpr;
764 coulomb_collision_rx_proj = rxpr;
765 coulomb_collision_rz_proj = rzpr;
766 coulomb_collision_px_proj = pxpr;
767 coulomb_collision_pz_proj = pzpr;
769 coulomb_collision_gamma_targ = gammta;
770 coulomb_collision_rx_targ = rxta;
771 coulomb_collision_rz_targ = rzta;
772 coulomb_collision_px_targ = pxta;
773 coulomb_collision_pz_targ = pzta;
779void G4QMDReaction::setEvaporationCh()
std::vector< G4ReactionProduct * > G4ReactionProductVector
CLHEP::Hep3Vector G4ThreeVector
Hep3Vector findBoostToCM() const
G4ParticleDefinition * GetDefinition() const
G4LorentzVector Get4Momentum() const
G4ThreeVector GetMomentum() const
void SetEvaporation(G4VEvaporation *ptr)
G4ReactionProductVector * BreakItUp(const G4Fragment &theInitialState) const
void SetStatusChange(G4HadFinalStateStatus aS)
void AddSecondary(G4DynamicParticle *aP)
G4double GetTotalMomentum() const
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4HadFinalState theParticleChange
G4double GetIonMass(G4int Z, G4int A, G4int L=0) const
!! Only ground states are supported now
G4int GetAtomicNumber() const
const G4String & GetParticleType() const
G4double GetPDGMass() const
G4int GetAtomicMass() const
G4double GetPDGCharge() const
const G4String & GetParticleName() const
static G4ParticleTable * GetParticleTable()
G4IonTable * GetIonTable()
G4ParticleDefinition * GetIon(G4int atomicNumber, G4int atomicMass, G4double excitationEnergy)
void SetMeanField(G4QMDMeanField *meanfield)
void CalKinematicsOfBinaryCollisions(G4double)
G4double GetTotalPotential()
void SetNucleus(G4QMDNucleus *aSystem)
void DoPropagation(G4double)
std::vector< G4QMDNucleus * > DoClusterJudgment()
void SetSystem(G4QMDSystem *aSystem)
void SetTotalPotential(G4double x)
void CalEnergyAndAngularMomentumInCM()
G4ThreeVector GetPosition()
G4ParticleDefinition * GetDefinition()
G4LorentzVector Get4Momentum()
G4ThreeVector GetMomentum()
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
G4QMDParticipant * GetParticipant(G4int i)
G4int GetTotalNumberOfParticipant()
void SetParticipant(G4QMDParticipant *particle)
virtual G4double GetIsoCrossSection(const G4DynamicParticle *, G4int Z, G4int A, const G4Isotope *iso=0, const G4Element *elm=0, const G4Material *mat=0)
HepLorentzVector boostOf(const HepLorentzVector &vec, const Hep3Vector &betaVector)