Message: Re: Error getting constant RINDEX property using G4OpticalBoundaryProcess Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Error getting constant RINDEX property using G4OpticalBoundaryProcess 

Forum: Processes Involving Optical Photons
Re: Question Error getting constant RINDEX property using G4OpticalBoundaryProcess (Sam Blake)
Date: 14 Mar, 2011
From: Gumplinger Peter <Gumplinger Peter>

Hi Sam,

The program assumes (expects!) that a material property with the name identifier RINDEX is wavelength/energy dependent. Even if the refractive index is constant throughout your wavelength regime you must still specify it for at least two energy bins.

Your analysis of the situation is correct. I shall look into the possibility of allowing the user to define what are normally wavelength dependent properties as constant properties and some form of C++ inheritance/polymorphism scheme that would automatically dispatch the correct Get/Set method. Actually, the whole G4MaterialPropertiesVector class etc. will be redesigned for the next G4 release.

With so many users there is always somebody who will intuitively code things in a way not foreseen by the developer. To avoid such pitfalls it's always a better idea to just follow examples and not be too logical about how things 'should work'.

Thanks, Peter

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Error getting constant RINDEX property using G4OpticalBoundaryProcess   (Sam Blake - 14 Mar, 2011)
 Add Message Add Message
to: "Re: Error getting constant RINDEX property using G4OpticalBoundaryProcess"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews