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/G4HadronCrossSections.hh

    r1337 r1340  
    2525//
    2626//
    27 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// GEANT4 tag $Name: hadr-cross-V09-03-12 $
    2828//
    2929//
     
    5555#include "G4VProcess.hh"
    5656#include "G4DynamicParticle.hh"
    57 //#include "G4ParticleTypes.hh"
     57#include "G4HadTmpUtil.hh"
    5858#include "G4PionPlus.hh"
    5959#include "G4PionZero.hh"
     
    8484#include "G4OmegaMinus.hh"
    8585#include "G4AntiOmegaMinus.hh"
    86 //#include "G4LPhysicsFreeVector.hh"
    8786
    8887
     
    9594   G4HadronCrossSections()
    9695     : prevParticleDefinition(0), lastEkx(0.), lastEkxPower(0.), verboseLevel(0)
    97    {
    98    }
     96   {}
    9997
    10098   ~G4HadronCrossSections()
    101    {
    102    }
     99   {}
    103100
    104101   static G4HadronCrossSections* Instance()
     
    123120
    124121   G4double GetElasticCrossSection(const G4DynamicParticle*,
    125                                    G4double /*ZZ*/, G4double /*AA*/);
     122                                   G4int /*ZZ*/, G4int /*AA*/);
    126123
    127124   G4double GetInelasticCrossSection(const G4DynamicParticle*,
     
    129126
    130127   G4double GetInelasticCrossSection(const G4DynamicParticle*,
    131                                      G4double /*ZZ*/, G4double /*AA*/);
     128                                     G4int /*ZZ*/, G4int /*AA*/);
    132129
    133130   G4double GetCaptureCrossSection(const G4DynamicParticle* aParticle,
    134131                                   const G4Element* anElement)
    135132   {
    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);
    138136   }
    139137
    140138   G4double GetCaptureCrossSection(const G4DynamicParticle*,
    141                                    G4double /*ZZ*/, G4double /*AA*/);
     139                                   G4int /*ZZ*/, G4int /*AA*/);
    142140
    143141   G4double GetFissionCrossSection(const G4DynamicParticle* aParticle,
    144142                                   const G4Element* anElement)
    145143   {
    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);
    148147   }
    149148
    150149   G4double GetFissionCrossSection(const G4DynamicParticle*,
    151                                    G4double /*ZZ*/, G4double /*AA*/);
     150                                   G4int /*ZZ*/, G4int /*AA*/);
    152151
    153152
     
    177176
    178177   void CalcScatteringCrossSections(const G4DynamicParticle*,
    179                                     G4double /*ZZ*/, G4double /*AA*/);
     178                                    G4int /*ZZ*/, G4int /*AA*/);
    180179
    181180   static G4HadronCrossSections* theInstance;
     
    199198   static G4float csin[NPARTS][TSIZE];
    200199
    201 
    202200   static G4float cspiel[3][TSIZE];
    203201   static G4float cspiin[3][TSIZE];
Note: See TracChangeset for help on using the changeset viewer.