134 std::vector< G4QMDNucleus* > nucleuses;
149 G4double beta_nncm = ( - boostLABtoCM.beta() + boostLABtoNN.beta() ) / ( 1 - boostLABtoCM.beta() * boostLABtoNN.beta() ) ;
157 boostToReac = boostLABtoNN;
158 boostBackToLAB = -boostLABtoNN;
214 targ->CalEnergyAndAngularMomentumInCM();
221 for (
G4int i = 0 ; i < targ->GetTotalNumberOfParticipant() ; i++ )
277 G4int i = targ->GetTotalNumberOfParticipant();
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();
499 for ( G4ReactionProductVector::iterator itt
500 = rv->begin() ; itt != rv->end() ; itt++ )
508 G4LorentzVector p4_CM = CLHEP::boostOf( p4 , -nucleus_p4CM.findBoostToCM() );
523 randomized_direction = randomized_direction.unit();
529 G4LorentzVector p4_a1_CM = CLHEP::boostOf ( p4_a1_Be8 , -nucleus_p4CM.findBoostToCM() );
530 G4LorentzVector p4_a1_LAB = CLHEP::boostOf ( p4_a1_CM , boostBackToLAB );
535 G4LorentzVector p4_a2_CM = CLHEP::boostOf ( p4_a2_Be8 , -nucleus_p4CM.findBoostToCM() );
536 G4LorentzVector p4_a2_LAB = CLHEP::boostOf ( p4_a2_CM , boostBackToLAB );
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++ )
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 );
737 G4double gammacm = boostToCM.gamma();
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 );
G4double coulomb_collision_rx_proj
G4ThreeVector GetPosition()
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)
G4double coulomb_collision_px_proj
G4double coulomb_collision_rx_targ
G4double coulomb_collision_pz_targ
G4Evaporation * evaporation
void SetParticipant(G4QMDParticipant *particle)
CLHEP::Hep3Vector G4ThreeVector
G4PiNuclearCrossSection * piNucXS
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
G4ParticleDefinition * GetDefinition()
void calcOffSetOfCollision(G4double, G4ParticleDefinition *, G4ParticleDefinition *, G4double, G4double, G4double, G4ThreeVector)
G4ParticleDefinition * GetDefinition() const
void SetNucleus(G4QMDNucleus *aSystem)
G4ReactionProductVector * BreakItUp(const G4Fragment &theInitialState) const
const G4String & GetParticleName() const
G4int GetAtomicNumber() const
void SetStatusChange(G4HadFinalStateStatus aS)
G4ThreeVector GetMomentum()
std::vector< G4ReactionProduct * > G4ReactionProductVector
void SetMeanField(G4QMDMeanField *meanfield)
const G4ParticleDefinition * GetDefinition() const
G4double GetIonMass(G4int Z, G4int A, G4int L=0, G4int lvl=0) const
G4double GetKineticEnergy() const
G4double coulomb_collision_px_targ
const G4String & GetParticleType() const
void CalKinematicsOfBinaryCollisions(G4double)
G4int GetTotalNumberOfParticipant()
G4double GetTotalPotential()
const G4LorentzVector & Get4Momentum() const
G4int GetAtomicMass() const
G4LorentzVector Get4Momentum() const
std::vector< G4QMDNucleus * > DoClusterJudgment()
G4QMDParticipant * GetParticipant(G4int i)
static G4IonTable * GetIonTable()
G4QMDMeanField * meanField
G4double coulomb_collision_rz_targ
G4IonsShenCrossSection * shenXS
G4double GetPDGMass() const
virtual G4double GetIsoCrossSection(const G4DynamicParticle *, G4int Z, G4int A, const G4Isotope *iso=0, const G4Element *elm=0, const G4Material *mat=0)
G4double coulomb_collision_gamma_targ
G4LorentzVector Get4Momentum()
void DoPropagation(G4double)
void SetSystem(G4QMDSystem *aSystem)
void SetTotalPotential(G4double x)
G4double coulomb_collision_rz_proj
G4ExcitationHandler * excitationHandler
void SetEvaporation(G4VEvaporation *ptr)
G4HadFinalState theParticleChange
G4QMDCollision * collision
G4double coulomb_collision_gamma_proj
void CalEnergyAndAngularMomentumInCM()
static const double eplus
G4double GetPDGCharge() const
void AddSecondary(G4DynamicParticle *aP)
static const double fermi
G4ThreeVector GetMomentum() const
G4double coulomb_collision_pz_proj
G4double GetTotalMomentum() const
G4double elastic(Particle const *const p1, Particle const *const p2)
CLHEP::HepLorentzVector G4LorentzVector