Changeset 963 for trunk/source/processes/optical/src/G4OpRayleigh.cc
- Timestamp:
- Apr 6, 2009, 12:34:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/optical/src/G4OpRayleigh.cc
r819 r963 25 25 // 26 26 // 27 // $Id: G4OpRayleigh.cc,v 1.1 4 2006/06/29 21:08:54 gunterExp $28 // GEANT4 tag $Name: $27 // $Id: G4OpRayleigh.cc,v 1.17 2008/10/24 19:51:12 gum Exp $ 28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // … … 57 57 58 58 #include "G4ios.hh" 59 #include "G4OpProcessSubType.hh" 60 59 61 #include "G4OpRayleigh.hh" 60 62 … … 78 80 : G4VDiscreteProcess(processName, type) 79 81 { 82 SetProcessSubType(fOpRayleigh); 80 83 81 84 thePhysicsTable = 0; … … 248 251 const G4Material* aMaterial = aTrack.GetMaterial(); 249 252 250 G4double thePhoton Momentum = aParticle->GetTotalMomentum();253 G4double thePhotonEnergy = aParticle->GetTotalEnergy(); 251 254 252 255 G4double AttenuationLength = DBL_MAX; … … 258 261 AttenuationLength = 259 262 (*thePhysicsTable)(aMaterial->GetIndex())-> 260 GetValue(thePhoton Momentum, isOutRange);263 GetValue(thePhotonEnergy, isOutRange); 261 264 } 262 265 else { … … 270 273 if(AttenuationLengthVector){ 271 274 AttenuationLength = AttenuationLengthVector -> 272 GetProperty(thePhoton Momentum);275 GetProperty(thePhotonEnergy); 273 276 } 274 277 else{ … … 305 308 306 309 // Retrieve vectors for refraction index 307 // and photon momentumfrom the material properties table310 // and photon energy from the material properties table 308 311 309 312 G4MaterialPropertyVector* Rindex = aMPT->GetProperty("RINDEX"); … … 325 328 while (++(*Rindex)) { 326 329 327 e = (Rindex->GetPhoton Momentum());330 e = (Rindex->GetPhotonEnergy()); 328 331 329 332 refraction_index = Rindex->GetProperty(); … … 332 335 333 336 if (verboseLevel>0) { 334 G4cout << Rindex->GetPhoton Momentum() << " MeV\t";337 G4cout << Rindex->GetPhotonEnergy() << " MeV\t"; 335 338 G4cout << xlambda << " mm\t"; 336 339 } … … 347 350 } 348 351 RayleighScatteringLengths-> 349 InsertValues(Rindex->GetPhoton Momentum(), Dist);352 InsertValues(Rindex->GetPhotonEnergy(), Dist); 350 353 } 351 354
Note: See TracChangeset
for help on using the changeset viewer.