Changeset 1315 for trunk/source/materials/include
- Timestamp:
- Jun 18, 2010, 11:42:07 AM (15 years ago)
- Location:
- trunk/source/materials/include
- Files:
-
- 8 edited
-
G4AtomicShells.hh (modified) (3 diffs)
-
G4DensityEffectData.hh (modified) (4 diffs)
-
G4Element.hh (modified) (2 diffs)
-
G4IonisParamMat.hh (modified) (3 diffs)
-
G4Material.hh (modified) (2 diffs)
-
G4NistManager.hh (modified) (5 diffs)
-
G4NistMaterialBuilder.hh (modified) (6 diffs)
-
G4OpticalSurface.hh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/materials/include/G4AtomicShells.hh
r1196 r1315 25 25 // 26 26 // 27 // $Id: G4AtomicShells.hh,v 1. 7 2006/10/17 15:15:46vnivanch Exp $28 // GEANT4 tag $Name: materials-V09-02-18$27 // $Id: G4AtomicShells.hh,v 1.8 2010/04/30 13:09:22 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 30 30 // class description … … 47 47 // 16-11-98, GetBindingEnergy(Z,ShellNb), M.Maire 48 48 // 11-02-05, GetNumberOfElectrons(Z,ShellNb), V.Ivanchenko 49 // 30-04-10, added fIndexOfShells, V.Ivanchenko 49 50 50 51 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... ....oooOO0OOooo.... … … 71 72 72 73 static const G4int fNumberOfShells[101]; 74 static const G4int fIndexOfShells[101]; 73 75 static const G4int fNumberOfElectrons[1540]; 74 76 static const G4double fBindingEnergies[1540]; -
trunk/source/materials/include/G4DensityEffectData.hh
r1228 r1315 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4DensityEffectData.hh,v 1. 7 2009/12/01 08:24:21 gcosmoExp $27 // GEANT4 tag $Name: geant4-09-0 3$26 // $Id: G4DensityEffectData.hh,v 1.10 2010/05/15 15:37:33 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 28 28 29 29 //--------------------------------------------------------------------------- … … 51 51 52 52 #include "globals.hh" 53 #include "G4Material.hh" 53 54 #include <vector> 54 55 … … 68 69 69 70 // return index by Z, -1 if material is not in the table 70 G4int Get Index(const G4int Z);71 G4int GetElementIndex(G4int Z, G4State mState); 71 72 72 73 // return index by material name, -1 if material is not in the table … … 102 103 G4double data[NDENSDATA][NDENSARRAY]; 103 104 std::vector<G4String> names; 105 106 // indexes defined only for pure materials 104 107 G4int indexZ[NDENSELEM]; 108 G4State state[NDENSELEM]; 105 109 106 110 G4int index; -
trunk/source/materials/include/G4Element.hh
r1196 r1315 25 25 // 26 26 // 27 // $Id: G4Element.hh,v 1.2 7 2009/09/19 14:13:03vnivanch Exp $28 // GEANT4 tag $Name: materials-V09-02-18$27 // $Id: G4Element.hh,v 1.28 2010/04/30 13:19:26 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 … … 81 81 #include "G4ios.hh" 82 82 #include "G4Isotope.hh" 83 #include "G4AtomicShells.hh"84 83 #include "G4IonisParamElm.hh" 85 84 #include "G4IsotopeVector.hh" -
trunk/source/materials/include/G4IonisParamMat.hh
r1196 r1315 25 25 // 26 26 // 27 // $Id: G4IonisParamMat.hh,v 1.1 7 2009/11/18 17:42:23 gcosmoExp $28 // GEANT4 tag $Name: materials-V09-02-18$27 // $Id: G4IonisParamMat.hh,v 1.18 2010/05/10 10:44:39 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 … … 104 104 G4double GetFermiEnergy() const {return fFermiEnergy;}; 105 105 G4double GetLFactor() const {return fLfactor;}; 106 G4double GetInvA23() const {return fInvA23;}; 106 107 107 108 // parameters for Birks attenuation: … … 177 178 G4double fFermiEnergy; 178 179 G4double fLfactor; 180 G4double fInvA23; 179 181 180 182 // parameter for Birks attenuation -
trunk/source/materials/include/G4Material.hh
r1196 r1315 25 25 // 26 26 // 27 // $Id: G4Material.hh,v 1.2 7 2008/11/14 15:14:24 gcosmoExp $28 // GEANT4 tag $Name: materials-V09-02-18$27 // $Id: G4Material.hh,v 1.28 2010/05/14 14:34:50 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 … … 97 97 #include "G4MaterialTable.hh" 98 98 99 enum G4State { kStateUndefined , kStateSolid, kStateLiquid, kStateGas };99 enum G4State { kStateUndefined = 0, kStateSolid, kStateLiquid, kStateGas }; 100 100 101 101 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... -
trunk/source/materials/include/G4NistManager.hh
r1196 r1315 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4NistManager.hh,v 1.2 3 2008/08/07 10:15:16 vnivanch Exp $27 // GEANT4 tag $Name: materials-V09-02-18$26 // $Id: G4NistManager.hh,v 1.24 2010/04/29 11:11:56 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 28 28 // 29 29 // … … 46 46 // 28.07.07 V.Ivanchneko make simple methods inline 47 47 // 28.10.07 V.Ivanchneko add state, T, P to maetrial build 48 // 29.04.10 V.Ivanchneko add GetMeanIonisationEnergy method 48 49 // 49 50 // Class Description: … … 149 150 // 150 151 inline const std::vector<G4String>& GetNistElementNames() const; 152 153 // Access mean ionisation energy for atoms (Z <= 98) 154 // 155 inline G4double GetMeanIonisationEnergy(G4int Z) const; 151 156 152 157 // Get G4Material by index … … 272 277 G4Element* elm = 0; 273 278 const G4ElementTable* theElementTable = G4Element::GetElementTable(); 274 if(index < theElementTable->size()) elm = (*theElementTable)[index];279 if(index < theElementTable->size()) { elm = (*theElementTable)[index]; } 275 280 return elm; 276 281 } … … 368 373 { 369 374 return elmBuilder->GetElementNames(); 375 } 376 377 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 378 379 inline G4double G4NistManager::GetMeanIonisationEnergy(G4int Z) const 380 { 381 return matBuilder->GetMeanIonisationEnergy(Z-1); 370 382 } 371 383 -
trunk/source/materials/include/G4NistMaterialBuilder.hh
r1196 r1315 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4NistMaterialBuilder.hh,v 1.1 3 2008/04/28 08:51:29vnivanch Exp $27 // GEANT4 tag $Name: materials-V09-02-18$26 // $Id: G4NistMaterialBuilder.hh,v 1.16 2010/04/29 11:11:56 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 28 28 29 29 #ifndef G4NistMaterialBuilder_h … … 45 45 // 27.07.07 V.Ivanchneko add matIndex vector to control built materials 46 46 // 28.07.07 V.Ivanchneko add BuildMaterial method using Nist index 47 // 29.04.10 V.Ivanchneko add GetMeanIonisationEnergy method using Nist index 47 48 // 48 49 //---------------------------------------------------------------------------- … … 125 126 void ListNistCompoundMaterials(); 126 127 void ListHepMaterials(); 128 void ListSpaceMaterials(); 127 129 128 130 // access to the list of names of Geant4 predefined materials 129 131 // 130 132 const std::vector<G4String>& GetMaterialNames() const; 133 134 // access to the NIST mean ionisation potentials 135 // 136 inline G4double GetMeanIonisationEnergy(G4int index) const; 131 137 132 138 private: … … 136 142 void NistCompoundMaterials(); 137 143 void HepAndNuclearMaterials(); 144 void SpaceMaterials(); 138 145 139 146 // add parameters of material from NIST DB to internal vectors … … 173 180 G4int nElementary; 174 181 G4int nNIST; 182 G4int nHEP; 175 183 176 184 std::vector<G4String> names; … … 200 208 } 201 209 210 inline G4double 211 G4NistMaterialBuilder::GetMeanIonisationEnergy(G4int index) const 212 { 213 G4double res = 10*index; 214 if(index >= 0 && index < nMaterials) { res = ionPotentials[index]; } 215 return res; 216 } 217 202 218 #endif -
trunk/source/materials/include/G4OpticalSurface.hh
r1196 r1315 25 25 // 26 26 // 27 // $Id: G4OpticalSurface.hh,v 1.1 5 2009/11/20 00:57:34 gum Exp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: G4OpticalSurface.hh,v 1.17 2010/04/22 21:19:14 gum Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // … … 150 150 public: // With description 151 151 152 virtual void Overwrite() {G4cout << "G4OpticalSurface" << G4endl;}; 153 154 void SetType(const G4SurfaceType& type); 155 156 G4OpticalSurfaceFinish GetFinish() const {return theFinish;}; 152 void SetType(const G4SurfaceType& type); 153 154 inline G4OpticalSurfaceFinish GetFinish() const { return theFinish; } 157 155 // Returns the optical surface finish. 158 void SetFinish(const G4OpticalSurfaceFinish );156 void SetFinish(const G4OpticalSurfaceFinish ); 159 157 // Sets the optical surface finish. 160 158 161 G4OpticalSurfaceModel GetModel() const {return theModel;};159 inline G4OpticalSurfaceModel GetModel() const { return theModel; } 162 160 // Returns the optical surface model used. 163 voidSetModel(const G4OpticalSurfaceModel model)164 {theModel = model;}; 161 inline void SetModel(const G4OpticalSurfaceModel model) 162 { theModel = model; } 165 163 // Sets the optical surface model to be followed. 166 164 167 G4double GetSigmaAlpha() const {return sigma_alpha;};165 inline G4double GetSigmaAlpha() const { return sigma_alpha; } 168 166 // Returns an unified model surface parameter. 169 void SetSigmaAlpha(const G4double s_a) 170 {sigma_alpha = s_a;}; 167 inline void SetSigmaAlpha(const G4double s_a) { sigma_alpha = s_a; } 171 168 // Sets an unified model surface parameter. 172 169 173 G4double GetPolish() const { return polish;};170 G4double GetPolish() const { return polish; } 174 171 // Returns the optical surface polish type. 175 void SetPolish(const G4double plsh) {polish=plsh;};172 inline void SetPolish(const G4double plsh) { polish=plsh; } 176 173 // Sets the optical surface polish type. 177 174 178 G4MaterialPropertiesTable* GetMaterialPropertiesTable() const179 { return theMaterialPropertiesTable; };175 inline G4MaterialPropertiesTable* GetMaterialPropertiesTable() const 176 { return theMaterialPropertiesTable; } 180 177 // Retrieves the pointer of the G4MaterialPropertiesTable 181 178 // attached to optical surface. 182 179 183 void SetMaterialPropertiesTable(G4MaterialPropertiesTable *anMPT)184 { theMaterialPropertiesTable = anMPT;};180 inline void SetMaterialPropertiesTable(G4MaterialPropertiesTable *anMPT) 181 { theMaterialPropertiesTable = anMPT; } 185 182 // Attaches a G4MaterialPropertiesTable to the optical surface. 186 183 … … 191 188 // Method to read the Look-Up-Table into array AngularDistribution 192 189 193 G4double GetAngularDistributionValue(G4int, G4int, G4int);190 inline G4double GetAngularDistributionValue(G4int, G4int, G4int); 194 191 195 192 inline G4int GetThetaIndexMax(void) const { return thetaIndexMax; } … … 227 224 G4int phiIndex) 228 225 { 229 return *(AngularDistribution+angleIncident+230 thetaIndex*incidentIndexMax+231 phiIndex*thetaIndexMax*incidentIndexMax);226 return AngularDistribution[angleIncident+ 227 thetaIndex*incidentIndexMax+ 228 phiIndex*thetaIndexMax*incidentIndexMax]; 232 229 } 233 230
Note:
See TracChangeset
for help on using the changeset viewer.
