Ignore:
Timestamp:
Jun 18, 2010, 11:42:07 AM (14 years ago)
Author:
garnier
Message:

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/optical/src/G4OpBoundaryProcess.cc

    r1228 r1315  
    113113        prob_bs = 0.;
    114114
     115        PropertyPointer  = NULL;
     116        PropertyPointer1 = NULL;
     117        PropertyPointer2 = NULL;
     118
    115119        kCarTolerance = G4GeometryTolerance::GetInstance()
    116120                        ->GetSurfaceTolerance();
     
    418422        else if (type == dielectric_dielectric) {
    419423
    420           if ( theFinish == polishedfrontpainted ||
    421                theFinish == groundfrontpainted ) {
    422                   if( !G4BooleanRand(theReflectivity) ) {
    423                     DoAbsorption();
    424                   }
    425                   else {
    426                     if ( theFinish == groundfrontpainted )
    427                                         theStatus = LambertianReflection;
    428                     DoReflection();
    429                   }
    430           }
     424          if ( theFinish == polishedbackpainted ||
     425               theFinish == groundbackpainted ) {
     426             DielectricDielectric();
     427          }
    431428          else {
    432                   if( !G4BooleanRand(theReflectivity) ) {
    433                     DoAbsorption();
    434                   }
    435                   else {
    436                     DielectricDielectric();
    437                   }
    438           }
    439         }
     429             if ( !G4BooleanRand(theReflectivity) ) {
     430                DoAbsorption();
     431             }
     432             else {
     433                if ( theFinish == polishedfrontpainted ) {
     434                   DoReflection();
     435                }
     436                else if ( theFinish == groundfrontpainted ) {
     437                   theStatus = LambertianReflection;
     438                   DoReflection();
     439                }
     440                else {
     441                   DielectricDielectric();
     442                }
     443             }
     444          }
     445        }
    440446        else {
    441447
     
    781787              G4SwapObj(&Rindex1,&Rindex2);
    782788           }
    783 
    784            if ( theFinish == ground || theFinish == groundbackpainted ) {
    785                 theFacetNormal =
    786                              GetFacetNormal(OldMomentum,theGlobalNormal);
     789       
     790           if ( theFinish == polished ) {
     791                theFacetNormal = theGlobalNormal;
    787792           }
    788793           else {
    789                 theFacetNormal = theGlobalNormal;
     794                theFacetNormal =
     795                             GetFacetNormal(OldMomentum,theGlobalNormal);
    790796           }
    791797
Note: See TracChangeset for help on using the changeset viewer.