- Timestamp:
- Apr 6, 2009, 12:30:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/cross_sections/include/G4BGGPionInelasticXS.hh
r819 r962 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4BGGPionInelasticXS.hh,v 1. 1 2007/03/13 15:19:30vnivanch Exp $27 // GEANT4 tag $Name: $26 // $Id: G4BGGPionInelasticXS.hh,v 1.2 2008/12/01 16:50:23 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 60 60 class G4GlauberGribovCrossSection; 61 61 class G4UPiNuclearCrossSection; 62 class G4HadronNucleonXsc; 62 63 63 64 class G4BGGPionInelasticXS : public G4VCrossSectionDataSet … … 93 94 void Initialise(); 94 95 95 G4double thEnergy; // threshold of Glauber model 96 G4double theFac[93]; 96 G4double CoulombFactor(G4double kinEnergy, G4double A); 97 98 G4double fGlauberEnergy; 99 G4double fLowEnergy; 100 G4double theGlauberFac[93]; 101 G4double theCoulombFac[93]; 97 102 98 103 const G4ParticleDefinition* particle; 99 104 G4GlauberGribovCrossSection* fGlauber; 100 105 G4UPiNuclearCrossSection* fPion; 106 G4HadronNucleonXsc* fHadron; 107 G4bool isPiplus; 108 G4bool isInitialized; 101 109 }; 102 110 … … 104 112 105 113 inline 106 G4bool G4BGGPionInelasticXS::IsApplicable(const G4DynamicParticle* dp,107 const G4Element* elm)114 G4bool G4BGGPionInelasticXS::IsApplicable(const G4DynamicParticle*, 115 const G4Element*) 108 116 { 109 return IsZAApplicable(dp, elm->GetZ(), elm->GetN()); 117 return true; 118 // return IsZAApplicable(dp, elm->GetZ(), elm->GetN()); 110 119 } 111 120 … … 113 122 114 123 inline 115 G4bool G4BGGPionInelasticXS::IsZAApplicable(const G4DynamicParticle* dp,116 G4double Z, G4double/* A*/)124 G4bool G4BGGPionInelasticXS::IsZAApplicable(const G4DynamicParticle*, 125 G4double /*Z*/, G4double/* A*/) 117 126 { 118 return (dp->GetDefinition() == particle && Z > 1.5); 127 return true; 128 // return (dp->GetDefinition() == particle); 119 129 } 120 130 … … 123 133 inline 124 134 G4double G4BGGPionInelasticXS::GetCrossSection(const G4DynamicParticle* dp, 125 const G4Element* elm,126 G4double temp)135 const G4Element* elm, 136 G4double temp) 127 137 { 128 138 return GetIsoZACrossSection(dp, elm->GetZ(), elm->GetN(), temp);
Note: See TracChangeset
for help on using the changeset viewer.