- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/cross_sections/src/G4VCrossSectionDataSet.cc
r1337 r1340 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4VCrossSectionDataSet.cc,v 1. 8 2009/01/24 11:54:47vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-04-beta-01$26 // $Id: G4VCrossSectionDataSet.cc,v 1.9 2010/07/05 13:39:11 vnivanch Exp $ 27 // GEANT4 tag $Name: hadr-cross-V09-03-12 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 42 42 #include "G4VCrossSectionDataSet.hh" 43 43 #include "G4CrossSectionDataSetRegistry.hh" 44 #include "G4Pow.hh" 44 45 45 G4VCrossSectionDataSet::G4VCrossSectionDataSet( ) :46 verboseLevel(0) 46 G4VCrossSectionDataSet::G4VCrossSectionDataSet(const G4String& nam) : 47 verboseLevel(0),minKinEnergy(0.0),maxKinEnergy(DBL_MAX),name(nam) 47 48 { 48 49 G4CrossSectionDataSetRegistry::Instance()->Register(this); … … 54 55 } 55 56 56 // Override this method to test for particle and isotope applicability 57 57 // Override thess methods to test for particle and isotope applicability 58 58 G4bool 59 59 G4VCrossSectionDataSet::IsZAApplicable(const G4DynamicParticle*, … … 63 63 } 64 64 65 G4bool 66 G4VCrossSectionDataSet::IsIsoApplicable(const G4DynamicParticle*, 67 G4int /*Z*/, G4int /*A*/) 68 { 69 return true; 70 } 65 71 66 72 G4double … … 81 87 G4double /*aTemperature*/) 82 88 { 83 return 62* std::pow(AA, 2./3.)*millibarn;89 return 62*G4Pow::GetInstance()->A23(AA)*millibarn; 84 90 } 91 92 G4double 93 G4VCrossSectionDataSet::GetZandACrossSection(const G4DynamicParticle*, 94 G4int /*Z*/, G4int N, 95 G4double /*aTemperature*/) 96 { 97 return 62*G4Pow::GetInstance()->Z23(N)*millibarn; 98 }
Note: See TracChangeset
for help on using the changeset viewer.