Ignore:
Timestamp:
Jun 18, 2010, 11:42:07 AM (14 years ago)
Author:
garnier
Message:

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/util/include/G4Nucleus.hh

    r819 r1315  
    3030 // last modified: 27-Mar-1997
    3131 // Chr. Volcker, 10-Nov-1997: new methods and class variables.
    32 // M.G. Pia, 2 Oct 1998: modified GetFermiMomentum (original design was
    33 //                       the source of memory leaks)
     32 // M.G. Pia, 2 Oct 1998: modified GetFermiMomentum (original design was
     33 //                       the source of memory leaks)
     34 // G.Folger, spring 2010:  add integer A/Z interface
    3435 
    3536#ifndef G4Nucleus_h
     
    5758    G4Nucleus( const G4double A, const G4double Z );
    5859
     60    G4Nucleus( const G4int A, const G4int Z );
     61
    5962    G4Nucleus( const G4Material *aMaterial );
    6063   
     
    6871       if( this != &right )
    6972       {
     73         theA=right.theA; 
     74         theZ=right.theZ; 
    7075         aEff=right.aEff; 
    7176         zEff=right.zEff; 
     
    8994
    9095    void SetParameters( const G4double A, const G4double Z );
    91    
     96    void SetParameters( const G4int A, const G4int Z );
     97   
     98//deprecated Jan 2010, GF
    9299    inline G4double GetN() const
    93100    { return aEff; }
     
    95102    inline G4double GetZ() const
    96103    { return zEff; }
    97    
     104
     105//to be replaced by new
     106    inline G4int GetA_asInt() const
     107    { return theA; }   
     108   
     109    inline G4int GetN_asInt() const
     110    { return theA-theZ; }   
     111   
     112    inline G4int GetZ_asInt() const
     113    { return theZ; }   
     114//... \GF
     115
    98116    G4DynamicParticle *ReturnTargetParticle() const;
    99117   
    100118    G4double AtomicMass( const G4double A, const G4double Z ) const;
     119    G4double AtomicMass( const G4int A, const G4int Z ) const;
    101120   
    102121    G4double GetThermalPz( const G4double mass, const G4double temp ) const;
     
    155174 private:
    156175   
     176    G4int    theA;
     177    G4int    theZ;
    157178    G4double aEff;  // effective atomic weight
    158179    G4double zEff;  // effective atomic number
Note: See TracChangeset for help on using the changeset viewer.