- Timestamp:
- Apr 6, 2009, 12:30:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPElasticData.cc
r819 r962 31 31 // 070613 fix memory leaking by T. Koi 32 32 // 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:: 33 36 // 34 37 #include "G4NeutronHPElasticData.hh" … … 49 52 // TKDB 50 53 theCrossSections = 0; 54 onFlightDB = true; 51 55 BuildPhysicsTable(*G4Neutron::Neutron()); 52 56 } … … 65 69 if(&aP!=G4Neutron::Neutron()) 66 70 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 67 75 size_t numberOfElements = G4Element::GetNumberOfElements(); 68 76 // TKDB … … 131 139 132 140 #include "G4Nucleus.hh" 133 #include "G4NucleiProperties Table.hh"141 #include "G4NucleiProperties.hh" 134 142 #include "G4Neutron.hh" 135 143 #include "G4Electron.hh" … … 146 154 147 155 // T. K. 148 if ( getenv( "G4NEUTRONHP_NEGLECT_DOPPLER" ) ) 156 // if ( getenv( "G4NEUTRONHP_NEGLECT_DOPPLER" ) ) 157 //080428 158 if ( !onFlightDB ) 149 159 { 150 160 G4double factor = 1.0; … … 171 181 172 182 173 eleMass = ( G4NucleiProperties Table::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) ) 174 184 ) / G4Neutron::Neutron()->GetPDGMass(); 175 185
Note: See TracChangeset
for help on using the changeset viewer.