Ignore:
Timestamp:
Feb 16, 2009, 10:14:30 AM (15 years ago)
Author:
garnier
Message:

en test de gl2ps. Problemes de libraries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/materials/include/G4Element.hh

    r850 r921  
    2525//
    2626//
    27 // $Id: G4Element.hh,v 1.22 2006/10/17 15:15:46 vnivanch Exp $
    28 // GEANT4 tag $Name: HEAD $
     27// $Id: G4Element.hh,v 1.23 2008/11/14 15:14:24 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-02-cand-01 $
    2929//
    3030
     
    118118  // retrieval methods
    119119  //
    120   G4String GetName()   const {return fName;};
    121   G4String GetSymbol() const {return fSymbol;};
    122   G4double GetZ()      const {return fZeff;};     //atomic number
    123   G4double GetN()      const {return fNeff;};     //number of nucleons
    124   G4double GetA()      const {return fAeff;};     //mass of a mole
     120  const G4String& GetName()   const {return fName;}
     121  const G4String& GetSymbol() const {return fSymbol;}
     122  G4double GetZ()      const {return fZeff;}     //atomic number
     123  G4double GetN()      const {return fNeff;}     //number of nucleons
     124  G4double GetA()      const {return fAeff;}     //mass of a mole
    125125  G4bool   GetNaturalAbandancesFlag();
    126126
     
    129129  //the number of atomic shells in this element:
    130130  //
    131   G4int GetNbOfAtomicShells() const {return fNbOfAtomicShells;};
     131  G4int GetNbOfAtomicShells() const {return fNbOfAtomicShells;}
    132132 
    133133  //the binding energy of the shell:
     
    137137  //number of isotopes constituing this element:
    138138  //
    139   size_t GetNumberOfIsotopes() const {return fNumberOfIsotopes;};
     139  size_t GetNumberOfIsotopes() const {return fNumberOfIsotopes;}
    140140   
    141141  //vector of pointers to isotopes constituing this element:
    142142  //
    143   G4IsotopeVector* GetIsotopeVector() const {return theIsotopeVector;};
     143  G4IsotopeVector* GetIsotopeVector() const {return theIsotopeVector;}
    144144   
    145145  //vector of relative abundance of each isotope:
    146146  //
    147147  G4double* GetRelativeAbundanceVector() const
    148                    {return fRelativeAbundanceVector;};
     148                   {return fRelativeAbundanceVector;}
    149149   
    150150  const G4Isotope* GetIsotope(G4int iso) const
    151                    {return (*theIsotopeVector)[iso];};
     151                   {return (*theIsotopeVector)[iso];}
    152152
    153153  //the (static) Table of Elements:
     
    161161  //the index of this element in the Table:
    162162  //
    163   size_t GetIndex() const {return fIndexInTable;};
     163  size_t GetIndex() const {return fIndexInTable;}
    164164   
    165165  //return pointer to an element, given its name:
     
    170170  //count number of materials which use this element
    171171  //
    172   G4int GetCountUse() const {return fCountUse;};
    173   void  increaseCountUse()  {fCountUse++;};
    174   void  decreaseCountUse()  {fCountUse--;};
     172  G4int GetCountUse() const {return fCountUse;}
     173  void  increaseCountUse()  {fCountUse++;}
     174  void  decreaseCountUse()  {fCountUse--;}
    175175 
    176176  //count elements with same Z
    177177  //
    178   G4int GetIndexZ() const {return fIndexZ;};
     178  G4int GetIndexZ() const {return fIndexZ;}
    179179       
    180180  //Coulomb correction factor:
    181181  //
    182   G4double GetfCoulomb() const {return fCoulomb;};
     182  G4double GetfCoulomb() const {return fCoulomb;}
    183183   
    184184  //Tsai formula for the radiation length:
    185185  //
    186   G4double GetfRadTsai() const {return fRadTsai;};
     186  G4double GetfRadTsai() const {return fRadTsai;}
    187187   
    188188  //pointer to ionisation parameters:
    189189  //
    190   G4IonisParamElm* GetIonisation() const {return fIonisation;};
     190  G4IonisParamElm* GetIonisation() const {return fIonisation;}
    191191   
    192192  // printing methods
     
    205205    // persistency for clients requiring preallocation of memory for
    206206    // persistifiable objects.
     207
     208  void SetName(const G4String& name)  {fName=name;}
    207209
    208210private:
Note: See TracChangeset for help on using the changeset viewer.