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

    r850 r921  
    2525//
    2626//
    27 // $Id: G4Material.hh,v 1.26 2008/08/13 16:06:42 vnivanch Exp $
    28 // GEANT4 tag $Name: HEAD $
     27// $Id: G4Material.hh,v 1.27 2008/11/14 15:14:24 gcosmo Exp $
     28// GEANT4 tag $Name: geant4-09-02-cand-01 $
    2929//
    3030
     
    103103class G4Material
    104104{
    105 public:  // with description
     105 public:  // with description
    106106
    107107  //
     
    145145  virtual ~G4Material();
    146146 
    147   void SetChemicalFormula(const G4String& chF) {fChemicalFormula=chF;};
    148                          
     147  void SetChemicalFormula (const G4String& chF) {fChemicalFormula=chF;}
     148
    149149  //
    150150  // retrieval methods
    151151  //
    152   G4String GetName()            const {return fName;};
    153   G4String GetChemicalFormula() const {return fChemicalFormula;};
    154   G4double GetDensity()         const {return fDensity;};
    155 
    156   G4State  GetState()       const {return fState;};
    157   G4double GetTemperature() const {return fTemp;};
    158   G4double GetPressure()    const {return fPressure;};
     152  const G4String& GetName()            const {return fName;}
     153  const G4String& GetChemicalFormula() const {return fChemicalFormula;}
     154  G4double GetDensity()     const {return fDensity;}
     155  G4State  GetState()       const {return fState;}
     156  G4double GetTemperature() const {return fTemp;}
     157  G4double GetPressure()    const {return fPressure;}
    159158   
    160159  //number of elements constituing this material:   
    161   size_t GetNumberOfElements()         const {return fNumberOfElements;};
     160  size_t GetNumberOfElements()         const {return fNumberOfElements;}
    162161   
    163162  //vector of pointers to elements constituing this material:         
    164163  const
    165   G4ElementVector* GetElementVector()  const {return theElementVector;};
     164  G4ElementVector* GetElementVector()  const {return theElementVector;}
    166165 
    167166  //vector of fractional mass of each element:
    168   const  G4double* GetFractionVector() const {return fMassFractionVector;};
     167  const  G4double* GetFractionVector() const {return fMassFractionVector;}
    169168   
    170169  //vector of atom count of each element:
    171   const  G4int*    GetAtomsVector()    const {return fAtomsVector;};
     170  const  G4int*    GetAtomsVector()    const {return fAtomsVector;}
    172171
    173172  //return a pointer to an element, given its index in the material:
    174173  const
    175   G4Element* GetElement(G4int iel) const {return (*theElementVector)[iel];};
     174  G4Element* GetElement(G4int iel) const {return (*theElementVector)[iel];}
    176175 
    177176  //vector of nb of atoms per volume of each element in this material:
    178177  const
    179   G4double* GetVecNbOfAtomsPerVolume() const {return VecNbOfAtomsPerVolume;};
     178  G4double* GetVecNbOfAtomsPerVolume() const {return VecNbOfAtomsPerVolume;}
    180179  //total number of atoms per volume:
    181   G4double  GetTotNbOfAtomsPerVolume() const {return TotNbOfAtomsPerVolume;};
     180  G4double  GetTotNbOfAtomsPerVolume() const {return TotNbOfAtomsPerVolume;}
    182181  //total number of electrons per volume:
    183   G4double  GetTotNbOfElectPerVolume() const {return TotNbOfElectPerVolume;};
     182  G4double  GetTotNbOfElectPerVolume() const {return TotNbOfElectPerVolume;}
    184183
    185184  //obsolete names (5-10-98) see the 2 functions above
    186185  const
    187   G4double* GetAtomicNumDensityVector() const {return VecNbOfAtomsPerVolume;};
    188   G4double  GetElectronDensity()        const {return TotNbOfElectPerVolume;};
     186  G4double* GetAtomicNumDensityVector() const {return VecNbOfAtomsPerVolume;}
     187  G4double  GetElectronDensity()        const {return TotNbOfElectPerVolume;}
    189188   
    190189  // Radiation length:     
    191   G4double         GetRadlen()          const {return fRadlen;};
     190  G4double         GetRadlen()          const {return fRadlen;}
    192191   
    193192  // Nuclear interaction length:     
    194   G4double GetNuclearInterLength()      const {return fNuclInterLen;};
     193  G4double GetNuclearInterLength()      const {return fNuclInterLen;}
    195194       
    196195  // ionisation parameters:
    197   G4IonisParamMat* GetIonisation()      const {return fIonisation;};
     196  G4IonisParamMat* GetIonisation()      const {return fIonisation;}
    198197 
    199198  // Sandia table:
    200   G4SandiaTable*   GetSandiaTable()     const {return fSandiaTable;};
     199  G4SandiaTable*   GetSandiaTable()     const {return fSandiaTable;}
    201200 
    202201  //meaningful only for single material:
     
    206205  //the MaterialPropertiesTable (if any) attached to this material:
    207206  void SetMaterialPropertiesTable(G4MaterialPropertiesTable* anMPT)
    208                                      {fMaterialPropertiesTable = anMPT;};
     207                                     {fMaterialPropertiesTable = anMPT;}
    209208                                       
    210209  G4MaterialPropertiesTable* GetMaterialPropertiesTable() const
    211                                      {return fMaterialPropertiesTable;};
     210                                     {return fMaterialPropertiesTable;}
    212211
    213212  //the (static) Table of Materials:
     
    220219 
    221220  //the index of this material in the Table:   
    222   size_t GetIndex() const {return fIndexInTable;};
     221  size_t GetIndex() const {return fIndexInTable;}
    223222   
    224223  //return  pointer to a material, given its name:   
     
    232231  friend std::ostream& operator<<(std::ostream&, G4MaterialTable);
    233232   
    234 public:  // without description
     233 public:  // without description
    235234       
    236235  G4int operator==(const G4Material&) const;
     
    241240    // persistifiable objects.
    242241
    243 private:
     242  void SetName (const G4String& name) {fName=name;}
     243
     244 private:
    244245
    245246  G4Material(const G4Material&);
Note: See TracChangeset for help on using the changeset viewer.