Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

Location:
trunk/source/processes/hadronic/models/neutron_hp/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPFissionData.cc

    r962 r1340  
    3232// 081024 G4NucleiPropertiesTable:: to G4NucleiProperties::
    3333// 081124 Protect invalid read which caused run time errors by T. Koi
     34// 100729 Add safty for 0 lenght cross sections by T. Koi
    3435
    3536#include "G4NeutronHPFissionData.hh"
     
    149150  G4int index = anE->GetIndex();
    150151
     152// 100729 TK add safety
     153if ( ( ( *theCrossSections )( index ) )->GetVectorLength() == 0 ) return result;
     154
    151155  // prepare neutron
    152156  G4double eKinetic = aP->GetKineticEnergy();
  • trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPInelastic.cc

    r1337 r1340  
    3434//
    3535// $Id: G4NeutronHPInelastic.cc,v 1.24 2008/12/03 22:28:48 tkoi Exp $
    36 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     36// GEANT4 tag $Name: geant4-09-03-ref-09 $
    3737//
    3838// 070523 bug fix for G4FPE_DEBUG on by A. Howard (and T. Koi)
  • trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPInelasticCompFS.cc

    r1337 r1340  
    4040// 100406 "nothingWasKnownOnHadron=1" then sample mu isotropic in CM
    4141//        add two_body_reaction
     42// 100909 add safty
    4243//
    4344#include "G4NeutronHPInelasticCompFS.hh"
     
    276277                               (aHadron.GetMass()+residualMass*G4Neutron::Neutron()->GetPDGMass()));
    277278
    278       aHadron.SetMomentum(theNeutron.GetMomentum()*(1./theNeutron.GetTotalMomentum())*
    279                         std::sqrt(aHadron.GetTotalEnergy()*aHadron.GetTotalEnergy()-
    280                                   aHadron.GetMass()*aHadron.GetMass()));
    281 
    282 /*
    283       G4double p2 = ( aHadron.GetTotalEnergy()*aHadron.GetTotalEnergy()-aHadron.GetMass()*aHadron.GetMass() );
     279      //aHadron.SetMomentum(theNeutron.GetMomentum()*(1./theNeutron.GetTotalMomentum())*
     280      //                  std::sqrt(aHadron.GetTotalEnergy()*aHadron.GetTotalEnergy()-
     281      //                            aHadron.GetMass()*aHadron.GetMass()));
     282
     283      //TK add safty 100909
     284      G4double p2 = ( aHadron.GetTotalEnergy()*aHadron.GetTotalEnergy() - aHadron.GetMass()*aHadron.GetMass() );
    284285      G4double p = 0.0;
    285       if ( p2 > 0.0 )
    286       {
    287          p = std::sqrt( p );
    288       }
     286      if ( p2 > 0.0 ) p = std::sqrt( p );
     287
    289288      aHadron.SetMomentum(theNeutron.GetMomentum()*(1./theNeutron.GetTotalMomentum())*p );
    290 */
    291289
    292290    }
    293291    else
    294292    {
    295       while( iLevel!=-1 && theGammas.GetLevel(iLevel)==0 ) { iLevel--; }
     293      while( iLevel!=-1 && theGammas.GetLevel(iLevel) == 0 ) { iLevel--; }
    296294    }
    297295
  • trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPNBodyPhaseSpace.cc

    r1337 r1340  
    2626//
    2727// $Id: G4NeutronHPNBodyPhaseSpace.cc,v 1.13 2006/06/29 20:53:11 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     28// GEANT4 tag $Name: geant4-09-03-ref-09 $
    2929//
    3030#include "G4NeutronHPNBodyPhaseSpace.hh"
  • trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPThermalScattering.cc

    r962 r1340  
    4040// 070625 Fix memory leaking at destructor by T. Koi
    4141// 081201 Fix memory leaking at destructor by T. Koi
     42// 100729 Add model name in constructor Problem #1116
    4243
    4344#include "G4NeutronHPThermalScattering.hh"
     
    4849
    4950G4NeutronHPThermalScattering::G4NeutronHPThermalScattering()
     51                             :G4HadronicInteraction("NeutronHPThermalScattering")
    5052{
    5153
Note: See TracChangeset for help on using the changeset viewer.