Ignore:
Timestamp:
Apr 6, 2009, 12:30:29 PM (15 years ago)
Author:
garnier
Message:

update processes

File:
1 edited

Legend:

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

    r819 r962  
    3131// 070613 fix memory leaking by T. Koi
    3232// 071002 enable cross section dump by T. Koi
     33// 080428 change checking point of "neglecting doppler broadening" flag
     34//        from GetCrossSection to BuildPhysicsTable by T. Koi
     35// 081024 G4NucleiPropertiesTable:: to G4NucleiProperties::
    3336//
    3437#include "G4NeutronHPElasticData.hh"
     
    4952// TKDB
    5053   theCrossSections = 0;
     54   onFlightDB = true;
    5155  BuildPhysicsTable(*G4Neutron::Neutron());
    5256}
     
    6569  if(&aP!=G4Neutron::Neutron())
    6670     throw G4HadronicException(__FILE__, __LINE__, "Attempt to use NeutronHP data for particles other than neutrons!!!"); 
     71
     72//080428
     73   if ( getenv( "G4NEUTRONHP_NEGLECT_DOPPLER" ) ) onFlightDB = false;
     74
    6775  size_t numberOfElements = G4Element::GetNumberOfElements();
    6876// TKDB
     
    131139
    132140#include "G4Nucleus.hh"
    133 #include "G4NucleiPropertiesTable.hh"
     141#include "G4NucleiProperties.hh"
    134142#include "G4Neutron.hh"
    135143#include "G4Electron.hh"
     
    146154
    147155  // T. K.
    148   if ( getenv( "G4NEUTRONHP_NEGLECT_DOPPLER" ) )
     156//  if ( getenv( "G4NEUTRONHP_NEGLECT_DOPPLER" ) )
     157//080428
     158  if ( !onFlightDB )
    149159  {
    150160     G4double factor = 1.0;
     
    171181
    172182
    173   eleMass = ( G4NucleiPropertiesTable::GetNuclearMass(static_cast<G4int>(theZ+eps), static_cast<G4int>(theA+eps))
     183  eleMass = ( G4NucleiProperties::GetNuclearMass( static_cast<G4int>(theA+eps) , static_cast<G4int>(theZ+eps) )
    174184             ) / G4Neutron::Neutron()->GetPDGMass();
    175185 
Note: See TracChangeset for help on using the changeset viewer.