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/G4NeutronHPInelasticData.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 "G4NeutronHPInelasticData.hh"
     
    4851{
    4952// TKDB
     53   onFlightDB = true;
    5054   theCrossSections = 0;
    5155  BuildPhysicsTable(*G4Neutron::Neutron());
     
    6468  if(&aP!=G4Neutron::Neutron())
    6569     throw G4HadronicException(__FILE__, __LINE__, "Attempt to use NeutronHP data for particles other than neutrons!!!"); 
     70
     71//080428
     72   if ( getenv( "G4NEUTRONHP_NEGLECT_DOPPLER" ) ) onFlightDB = false;
     73
    6674  size_t numberOfElements = G4Element::GetNumberOfElements();
    6775//  theCrossSections = new G4PhysicsTable( numberOfElements );
     
    130138}
    131139
    132 #include "G4NucleiPropertiesTable.hh"
     140#include "G4NucleiProperties.hh"
    133141
    134142G4double G4NeutronHPInelasticData::
     
    143151
    144152  // T. K.
    145   if ( getenv( "G4NEUTRONHP_NEGLECT_DOPPLER" ) )
     153//if ( getenv( "G4NEUTRONHP_NEGLECT_DOPPLER" ) )
     154//080428
     155  if ( !onFlightDB )
    146156  {
    147157     G4double factor = 1.0;
     
    166176  G4double theZ = anE->GetZ();
    167177  G4double eleMass;
    168   eleMass = ( G4NucleiPropertiesTable::GetNuclearMass(static_cast<G4int>(theZ+eps), static_cast<G4int>(theA+eps))
     178  eleMass = ( G4NucleiProperties::GetNuclearMass(static_cast<G4int>(theA+eps), static_cast<G4int>(theZ+eps))
    169179             ) / G4Neutron::Neutron()->GetPDGMass();
    170180 
Note: See TracChangeset for help on using the changeset viewer.