- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/cross_sections/include/G4HadronCrossSections.hh
r1337 r1340 25 25 // 26 26 // 27 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // GEANT4 tag $Name: hadr-cross-V09-03-12 $ 28 28 // 29 29 // … … 55 55 #include "G4VProcess.hh" 56 56 #include "G4DynamicParticle.hh" 57 //#include "G4ParticleTypes.hh"57 #include "G4HadTmpUtil.hh" 58 58 #include "G4PionPlus.hh" 59 59 #include "G4PionZero.hh" … … 84 84 #include "G4OmegaMinus.hh" 85 85 #include "G4AntiOmegaMinus.hh" 86 //#include "G4LPhysicsFreeVector.hh"87 86 88 87 … … 95 94 G4HadronCrossSections() 96 95 : prevParticleDefinition(0), lastEkx(0.), lastEkxPower(0.), verboseLevel(0) 97 { 98 } 96 {} 99 97 100 98 ~G4HadronCrossSections() 101 { 102 } 99 {} 103 100 104 101 static G4HadronCrossSections* Instance() … … 123 120 124 121 G4double GetElasticCrossSection(const G4DynamicParticle*, 125 G4 double /*ZZ*/, G4double/*AA*/);122 G4int /*ZZ*/, G4int /*AA*/); 126 123 127 124 G4double GetInelasticCrossSection(const G4DynamicParticle*, … … 129 126 130 127 G4double GetInelasticCrossSection(const G4DynamicParticle*, 131 G4 double /*ZZ*/, G4double/*AA*/);128 G4int /*ZZ*/, G4int /*AA*/); 132 129 133 130 G4double GetCaptureCrossSection(const G4DynamicParticle* aParticle, 134 131 const G4Element* anElement) 135 132 { 136 return GetCaptureCrossSection(aParticle, anElement->GetZ(), 137 anElement->GetN()); 133 G4int Z = G4lrint(anElement->GetZ()); 134 G4int A = G4lrint(anElement->GetN()); 135 return GetCaptureCrossSection(aParticle, Z, A); 138 136 } 139 137 140 138 G4double GetCaptureCrossSection(const G4DynamicParticle*, 141 G4 double /*ZZ*/, G4double/*AA*/);139 G4int /*ZZ*/, G4int /*AA*/); 142 140 143 141 G4double GetFissionCrossSection(const G4DynamicParticle* aParticle, 144 142 const G4Element* anElement) 145 143 { 146 return GetFissionCrossSection(aParticle, anElement->GetZ(), 147 anElement->GetN()); 144 G4int Z = G4lrint(anElement->GetZ()); 145 G4int A = G4lrint(anElement->GetN()); 146 return GetFissionCrossSection(aParticle, Z, A); 148 147 } 149 148 150 149 G4double GetFissionCrossSection(const G4DynamicParticle*, 151 G4 double /*ZZ*/, G4double/*AA*/);150 G4int /*ZZ*/, G4int /*AA*/); 152 151 153 152 … … 177 176 178 177 void CalcScatteringCrossSections(const G4DynamicParticle*, 179 G4 double /*ZZ*/, G4double/*AA*/);178 G4int /*ZZ*/, G4int /*AA*/); 180 179 181 180 static G4HadronCrossSections* theInstance; … … 199 198 static G4float csin[NPARTS][TSIZE]; 200 199 201 202 200 static G4float cspiel[3][TSIZE]; 203 201 static G4float cspiin[3][TSIZE];
Note: See TracChangeset
for help on using the changeset viewer.