- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/util/include/G4Nucleus.hh
r819 r1315 30 30 // last modified: 27-Mar-1997 31 31 // 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 34 35 35 36 #ifndef G4Nucleus_h … … 57 58 G4Nucleus( const G4double A, const G4double Z ); 58 59 60 G4Nucleus( const G4int A, const G4int Z ); 61 59 62 G4Nucleus( const G4Material *aMaterial ); 60 63 … … 68 71 if( this != &right ) 69 72 { 73 theA=right.theA; 74 theZ=right.theZ; 70 75 aEff=right.aEff; 71 76 zEff=right.zEff; … … 89 94 90 95 void SetParameters( const G4double A, const G4double Z ); 91 96 void SetParameters( const G4int A, const G4int Z ); 97 98 //deprecated Jan 2010, GF 92 99 inline G4double GetN() const 93 100 { return aEff; } … … 95 102 inline G4double GetZ() const 96 103 { 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 98 116 G4DynamicParticle *ReturnTargetParticle() const; 99 117 100 118 G4double AtomicMass( const G4double A, const G4double Z ) const; 119 G4double AtomicMass( const G4int A, const G4int Z ) const; 101 120 102 121 G4double GetThermalPz( const G4double mass, const G4double temp ) const; … … 155 174 private: 156 175 176 G4int theA; 177 G4int theZ; 157 178 G4double aEff; // effective atomic weight 158 179 G4double zEff; // effective atomic number
Note: See TracChangeset
for help on using the changeset viewer.