Changeset 1347 for trunk/source/processes/hadronic/cross_sections/src/G4EMDissociationCrossSection.cc
- Timestamp:
- Dec 22, 2010, 3:52:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/cross_sections/src/G4EMDissociationCrossSection.cc
r1340 r1347 56 56 // Beta release 57 57 // 58 // 30 .May 2005, J.P. Wellisch removed a compilation warning on gcc 3.4 for58 // 30 May 2005, J.P. Wellisch removed a compilation warning on gcc 3.4 for 59 59 // geant4 7.1. 60 // 09 November 2010, V.Ivanchenko make class applicable for Hydrogen but 61 // set cross section for Hydrogen to zero 60 62 // 61 63 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% … … 97 99 G4bool 98 100 G4EMDissociationCrossSection::IsIsoApplicable(const G4DynamicParticle* theDynamicParticle, 99 G4int /*ZZ*/, G4int AA)101 G4int /*ZZ*/, G4int/* AA*/) 100 102 { 101 103 // … … 107 109 // 108 110 if (G4ParticleTable::GetParticleTable()->GetIonTable()-> 109 IsIon(theDynamicParticle->GetDefinition()) && AA > 1)111 IsIon(theDynamicParticle->GetDefinition()) /*&& AA > 1*/) 110 112 return true; 111 113 else … … 127 129 G4int nIso = theElement->GetNumberOfIsotopes(); 128 130 G4double crossSection = 0; 131 132 // VI protection for Hydrogen 133 if(theElement->GetZ() < 1.5) { return crossSection; } 129 134 130 135 if (nIso) { … … 156 161 G4int ZZ, G4int AA, G4double /*temperature*/) 157 162 { 163 // VI protection for Hydrogen 164 if(ZZ <= 1) { return 0.0; } 165 158 166 // 159 167 // Get relevant information about the projectile and target (A, Z) and
Note: See TracChangeset
for help on using the changeset viewer.