Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/cross_sections/include/G4BGGPionElasticXS.hh

    r1337 r1340  
    2424// ********************************************************************
    2525//
    26 // $Id: G4BGGPionElasticXS.hh,v 1.5 2009/11/19 11:46:13 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     26// $Id: G4BGGPionElasticXS.hh,v 1.7 2010/10/20 09:07:38 stesting Exp $
     27// GEANT4 tag $Name: hadr-cross-V09-03-12 $
    2828//
    2929// -------------------------------------------------------------------
     
    5555#include "G4ParticleDefinition.hh"
    5656#include "G4Element.hh"
     57#include "G4HadTmpUtil.hh"
    5758
    58 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
    5959
    6060class G4GlauberGribovCrossSection;
     
    7373  G4bool IsApplicable(const G4DynamicParticle*, const G4Element*);
    7474
     75//  virtual
     76//  G4bool IsZAApplicable(const G4DynamicParticle*, G4double Z, G4double A);
     77
    7578  virtual
    76   G4bool IsZAApplicable(const G4DynamicParticle*, G4double Z, G4double A);
     79  G4bool IsIsoApplicable(const G4DynamicParticle*, G4int Z, G4int A);
    7780
    7881  virtual
     
    8083                           const G4Element*, G4double aTemperature = 0.);
    8184
     85//  virtual
     86//  G4double GetIsoZACrossSection(const G4DynamicParticle*, G4double /*Z*/,
     87//                              G4double /*A*/, G4double aTemperature = 0.);
     88
    8289  virtual
    83   G4double GetIsoZACrossSection(const G4DynamicParticle*, G4double /*Z*/,
    84                                 G4double /*A*/, G4double aTemperature = 0.);
     90  G4double GetZandACrossSection(const G4DynamicParticle*, G4int /*Z*/,
     91                                G4int /*A*/, G4double aTemperature = 0.);
    8592
    8693  virtual
     
    94101  void Initialise();
    95102
    96   G4double CoulombFactor(G4double kinEnergy, G4double A);
     103//  G4double CoulombFactor(G4double kinEnergy, G4double A);
     104  G4double CoulombFactor(G4double kinEnergy, G4int A);
    97105
    98106  G4double fGlauberEnergy; 
     
    116124{
    117125  return true;
    118   //return IsZAApplicable(dp, elm->GetZ(), elm->GetN());
    119126}
    120127
    121 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     128//inline
     129//G4bool G4BGGPionElasticXS::IsZAApplicable(const G4DynamicParticle*,
     130//                                        G4double /*Z*/, G4double/* A*/)
    122131
    123132inline
    124 G4bool G4BGGPionElasticXS::IsZAApplicable(const G4DynamicParticle*,
    125                                           G4double /*Z*/, G4double/* A*/)
     133G4bool G4BGGPionElasticXS::IsIsoApplicable(const G4DynamicParticle*,
     134                                           G4int /*Z*/, G4int/* A*/)
    126135{
    127136  return false;
    128   //  return (dp->GetDefinition() == particle);
    129137}
    130138
    131 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
    132139
    133 inline
     140inline 
    134141G4double G4BGGPionElasticXS::GetCrossSection(const G4DynamicParticle* dp,
    135142                                             const G4Element* elm,
    136143                                             G4double temp)
    137144{
    138   return GetIsoZACrossSection(dp, elm->GetZ(), elm->GetN(), temp);
     145//  return GetIsoZACrossSection(dp, elm->GetZ(), elm->GetN(), temp);
     146  G4int Z = G4lrint(elm->GetZ());
     147  G4int N = G4lrint(elm->GetN());
     148  return GetZandACrossSection(dp, Z, N, temp);
    139149}
    140150
    141 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
    142 
    143151#endif
Note: See TracChangeset for help on using the changeset viewer.