- Timestamp:
- Apr 6, 2009, 12:30:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/neutron_hp/src/G4NeutronHPCaptureData.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 "G4NeutronHPCaptureData.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 // G4cout << "CALLED G4NeutronHPCaptureData::BuildPhysicsTable "<<numberOfElements<<G4endl; … … 136 144 } 137 145 138 #include "G4NucleiProperties Table.hh"146 #include "G4NucleiProperties.hh" 139 147 140 148 G4double G4NeutronHPCaptureData:: … … 148 156 G4double eKinetic = aP->GetKineticEnergy(); 149 157 150 if ( getenv( "G4NEUTRONHP_NEGLECT_DOPPLER" ) ) 158 //if ( getenv( "G4NEUTRONHP_NEGLECT_DOPPLER" ) ) 159 //080428 160 if ( !onFlightDB ) 151 161 { 152 162 G4double factor = 1.0; … … 171 181 G4double theZ = anE->GetZ(); 172 182 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(); 175 184 176 185 G4ReactionProduct boosted;
Note: See TracChangeset
for help on using the changeset viewer.