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

update processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPCaptureData.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 "G4NeutronHPCaptureData.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  // G4cout << "CALLED G4NeutronHPCaptureData::BuildPhysicsTable "<<numberOfElements<<G4endl;
     
    136144}
    137145
    138 #include "G4NucleiPropertiesTable.hh"
     146#include "G4NucleiProperties.hh"
    139147
    140148G4double G4NeutronHPCaptureData::
     
    148156  G4double eKinetic = aP->GetKineticEnergy();
    149157
    150   if ( getenv( "G4NEUTRONHP_NEGLECT_DOPPLER" ) )
     158//if ( getenv( "G4NEUTRONHP_NEGLECT_DOPPLER" ) )
     159//080428
     160  if ( !onFlightDB )
    151161  {
    152162     G4double factor = 1.0;
     
    171181  G4double theZ = anE->GetZ();
    172182  G4double eleMass;
    173   eleMass = ( G4NucleiPropertiesTable::GetNuclearMass(static_cast<G4int>(theZ+eps), static_cast<G4int>(theA+eps))
    174              ) / G4Neutron::Neutron()->GetPDGMass();
     183  eleMass = G4NucleiProperties::GetNuclearMass( static_cast<G4int>(theA+eps) , static_cast<G4int>(theZ+eps) ) / G4Neutron::Neutron()->GetPDGMass();
    175184 
    176185  G4ReactionProduct boosted;
Note: See TracChangeset for help on using the changeset viewer.