- Timestamp:
- Dec 22, 2010, 3:52:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/incl/src/G4InclAblaLightIonInterface.cc
r1340 r1347 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4InclAblaLightIonInterface.cc,v 1.1 4 2010/10/29 06:48:43 gunterExp $26 // $Id: G4InclAblaLightIonInterface.cc,v 1.16 2010/11/17 20:19:09 kaitanie Exp $ 27 27 // Translation of INCL4.2/ABLA V3 28 28 // Pekka Kaitaniemi, HIP (translation) … … 103 103 } 104 104 105 if(verboseLevel > 1) {106 G4Calincl::printProjectileTargetInfo(aTrack, theNucleus);107 }108 109 105 // Inverse kinematics for targets with Z = 1 and A = 1 110 106 // if(false) { 111 107 G4LorentzRotation toBreit = aTrack.Get4Momentum().boostVector(); 112 108 113 if(theNucleus.GetZ_asInt() == 1 && theNucleus.GetA_asInt() == 1 && G4 Calincl::canUseInverseKinematics(aTrack, theNucleus)) {109 if(theNucleus.GetZ_asInt() == 1 && theNucleus.GetA_asInt() == 1 && G4InclInput::canUseInverseKinematics(aTrack, theNucleus)) { 114 110 G4ParticleDefinition *oldTargetDef = theTableOfParticles->GetIon(theNucleus.GetA_asInt(), theNucleus.GetZ_asInt(), 0.0); 115 111 const G4ParticleDefinition *oldProjectileDef = aTrack.GetDefinition(); 116 112 113 if(oldProjectileDef != 0 && oldTargetDef != 0) { 117 114 G4int oldTargetA = oldTargetDef->GetAtomicMass(); 118 115 G4int newTargetA = oldProjectileDef->GetAtomicMass(); 119 116 G4int newTargetZ = oldProjectileDef->GetAtomicNumber(); 120 117 121 if(newTargetA > 0 && newTargetZ > 0 && oldTargetDef != 0 && oldProjectileDef != 0) {118 if(newTargetA > 0 && newTargetZ > 0) { 122 119 G4Nucleus swappedTarget(oldProjectileDef->GetAtomicMass(), oldProjectileDef->GetAtomicNumber()); 123 120 … … 137 134 G4cout <<"Badly defined target after swapping. Falling back to normal (non-swapped) mode." << G4endl; 138 135 calincl = new G4InclInput(aTrack, theNucleus, false); 136 } 139 137 } 140 138 } else { … … 489 487 } 490 488 } 489 delete theSpectatorFermiBreakupResult; 490 theSpectatorFermiBreakupResult = 0; 491 491 492 if(std::abs(fourMomentumBalance.mag() / MeV) > 0.1 * MeV) { 492 493 G4cout <<"Four-momentum balance after spectator nucleus Fermi break-up:" << G4endl; … … 588 589 } 589 590 } 591 delete theFermiBreakupResult; 592 theFermiBreakupResult = 0; 593 590 594 if(std::abs(fourMomentumBalance.mag() / MeV) > 0.1 * MeV) { 591 595 G4cout <<"Four-momentum balance after remnant nucleus Fermi break-up:" << G4endl; … … 697 701 } 698 702 703 delete fermiBreakUp; 699 704 delete calincl; 700 705 calincl = 0;
Note: See TracChangeset
for help on using the changeset viewer.