Ignore:
Timestamp:
Dec 22, 2010, 3:52:27 PM (13 years ago)
Author:
garnier
Message:

geant4 tag 9.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/incl/src/G4InclAblaLightIonInterface.cc

    r1340 r1347  
    2424// ********************************************************************
    2525//
    26 // $Id: G4InclAblaLightIonInterface.cc,v 1.14 2010/10/29 06:48:43 gunter Exp $
     26// $Id: G4InclAblaLightIonInterface.cc,v 1.16 2010/11/17 20:19:09 kaitanie Exp $
    2727// Translation of INCL4.2/ABLA V3
    2828// Pekka Kaitaniemi, HIP (translation)
     
    103103  }
    104104
    105   if(verboseLevel > 1) {
    106     G4Calincl::printProjectileTargetInfo(aTrack, theNucleus);
    107   }
    108 
    109105  // Inverse kinematics for targets with Z = 1 and A = 1
    110106  //  if(false) {
    111107  G4LorentzRotation toBreit = aTrack.Get4Momentum().boostVector();
    112108
    113   if(theNucleus.GetZ_asInt() == 1 && theNucleus.GetA_asInt() == 1 && G4Calincl::canUseInverseKinematics(aTrack, theNucleus)) {
     109  if(theNucleus.GetZ_asInt() == 1 && theNucleus.GetA_asInt() == 1 && G4InclInput::canUseInverseKinematics(aTrack, theNucleus)) {
    114110    G4ParticleDefinition *oldTargetDef = theTableOfParticles->GetIon(theNucleus.GetA_asInt(), theNucleus.GetZ_asInt(), 0.0);
    115111    const G4ParticleDefinition *oldProjectileDef = aTrack.GetDefinition();
    116112
     113    if(oldProjectileDef != 0 && oldTargetDef != 0) {
    117114    G4int oldTargetA = oldTargetDef->GetAtomicMass();
    118115    G4int newTargetA = oldProjectileDef->GetAtomicMass();
    119116    G4int newTargetZ = oldProjectileDef->GetAtomicNumber();
    120117
    121     if(newTargetA > 0 && newTargetZ > 0 && oldTargetDef != 0 && oldProjectileDef != 0) {
     118    if(newTargetA > 0 && newTargetZ > 0) {
    122119      G4Nucleus swappedTarget(oldProjectileDef->GetAtomicMass(), oldProjectileDef->GetAtomicNumber());
    123120
     
    137134      G4cout <<"Badly defined target after swapping. Falling back to normal (non-swapped) mode." << G4endl;
    138135      calincl = new G4InclInput(aTrack, theNucleus, false);
     136    }
    139137    }
    140138  } else {
     
    489487        }
    490488      }
     489      delete theSpectatorFermiBreakupResult;
     490      theSpectatorFermiBreakupResult = 0;
     491
    491492      if(std::abs(fourMomentumBalance.mag() / MeV) > 0.1 * MeV) {
    492493        G4cout <<"Four-momentum balance after spectator nucleus Fermi break-up:" << G4endl;
     
    588589        }
    589590      }
     591      delete theFermiBreakupResult;
     592      theFermiBreakupResult = 0;
     593
    590594      if(std::abs(fourMomentumBalance.mag() / MeV) > 0.1 * MeV) {
    591595        G4cout <<"Four-momentum balance after remnant nucleus Fermi break-up:" << G4endl;
     
    697701  }
    698702
     703  delete fermiBreakUp;
    699704  delete calincl;
    700705  calincl = 0;
Note: See TracChangeset for help on using the changeset viewer.