Changeset 1055 for trunk/source/processes/optical/include
- Timestamp:
- May 28, 2009, 4:26:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/optical/include/G4OpBoundaryProcess.hh
r1007 r1055 25 25 // 26 26 // 27 // $Id: G4OpBoundaryProcess.hh,v 1.1 8 2008/11/07 17:59:37gum Exp $28 // GEANT4 tag $Name: geant4-09-0 2$27 // $Id: G4OpBoundaryProcess.hh,v 1.19 2009/03/23 21:18:20 gum Exp $ 28 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ 29 29 // 30 30 // … … 54 54 // mail: gum@triumf.ca 55 55 // 56 // CVS version tag:57 56 //////////////////////////////////////////////////////////////////////// 58 57 … … 160 159 // Returns the Reflectivity on a metalic surface 161 160 162 void SetModel(G4OpticalSurfaceModel model); 161 void CalculateReflectivity(void); 162 163 void SetModel(G4OpticalSurfaceModel model); 163 164 // Set the optical surface model to be followed 164 165 // (glisur || unified). … … 195 196 196 197 G4OpticalSurface* OpticalSurface; 198 199 G4MaterialPropertyVector* PropertyPointer; 200 G4MaterialPropertyVector* PropertyPointer1; 201 G4MaterialPropertyVector* PropertyPointer2; 197 202 198 203 G4double Rindex1; … … 308 313 309 314 theStatus = LobeReflection; 310 theFacetNormal = GetFacetNormal(OldMomentum,theGlobalNormal); 315 if ( PropertyPointer1 && PropertyPointer2 ){ 316 } else { 317 theFacetNormal = 318 GetFacetNormal(OldMomentum,theGlobalNormal); 319 } 311 320 G4double PdotN = OldMomentum * theFacetNormal; 312 321 NewMomentum = OldMomentum - (2.*PdotN)*theFacetNormal;
Note: See TracChangeset
for help on using the changeset viewer.