Changeset 1340 for trunk/source/processes/hadronic/cross_sections/include/G4PiNuclearCrossSection.hh
- 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/G4PiNuclearCrossSection.hh
r1228 r1340 42 42 virtual ~G4PiNuclearCrossSection(); 43 43 44 G4bool IsApplicable(const G4DynamicParticle* aParticle, const G4Element* anElement) 44 G4bool IsApplicable(const G4DynamicParticle* aParticle, 45 const G4Element* anElement) 45 46 { 46 47 G4bool result = false; … … 52 53 } 53 54 54 G4bool IsZAApplicable(const G4DynamicParticle* particle,55 G4double ZZ, G4double/*AA*/)55 G4bool 56 IsIsoApplicable(const G4DynamicParticle* particle, G4int ZZ, G4int /*AA*/) 56 57 { 57 58 G4bool result = false; 58 59 if(particle->GetDefinition() == G4PionMinus::PionMinus()) result=true; 59 60 if(particle->GetDefinition() == G4PionPlus::PionPlus()) result=true; 60 if( G4lrint(ZZ)== 1) result = false;61 if(ZZ == 1) result = false; 61 62 if(particle->GetKineticEnergy() > 99.9*TeV) result=false; 62 63 return result; 63 64 } 65 64 66 65 67 G4double GetCrossSection(const G4DynamicParticle* particle, … … 67 69 G4double temperature) 68 70 { 69 return GetIsoZACrossSection(particle, element->GetZ(), 70 element->GetN(), temperature); 71 G4int Z = G4lrint(element->GetZ()); 72 G4int A = G4lrint(element->GetN()); 73 return GetZandACrossSection(particle, Z, A, temperature); 71 74 } 72 75 73 G4double Get IsoZACrossSection(const G4DynamicParticle* aParticle,74 G4 double ZZ, G4doubleAA,76 G4double GetZandACrossSection(const G4DynamicParticle* aParticle, 77 G4int ZZ, G4int AA, 75 78 G4double /*aTemperature*/); 76 79 77 G4double GetTotalXsc() { return fTotalXsc;};78 G4double GetElasticXsc() { return fElasticXsc;};80 G4double GetTotalXsc() {return fTotalXsc;}; 81 G4double GetElasticXsc() {return fElasticXsc;}; 79 82 80 83
Note: See TracChangeset
for help on using the changeset viewer.