- 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/G4NeutronHPInelasticData.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 "G4NeutronHPInelasticData.hh" … … 48 51 { 49 52 // TKDB 53 onFlightDB = true; 50 54 theCrossSections = 0; 51 55 BuildPhysicsTable(*G4Neutron::Neutron()); … … 64 68 if(&aP!=G4Neutron::Neutron()) 65 69 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 66 74 size_t numberOfElements = G4Element::GetNumberOfElements(); 67 75 // theCrossSections = new G4PhysicsTable( numberOfElements ); … … 130 138 } 131 139 132 #include "G4NucleiProperties Table.hh"140 #include "G4NucleiProperties.hh" 133 141 134 142 G4double G4NeutronHPInelasticData:: … … 143 151 144 152 // T. K. 145 if ( getenv( "G4NEUTRONHP_NEGLECT_DOPPLER" ) ) 153 //if ( getenv( "G4NEUTRONHP_NEGLECT_DOPPLER" ) ) 154 //080428 155 if ( !onFlightDB ) 146 156 { 147 157 G4double factor = 1.0; … … 166 176 G4double theZ = anE->GetZ(); 167 177 G4double eleMass; 168 eleMass = ( G4NucleiProperties Table::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)) 169 179 ) / G4Neutron::Neutron()->GetPDGMass(); 170 180
Note: See TracChangeset
for help on using the changeset viewer.