122   if (!aMaterialPropertiesTable)
 
  126     aMaterialPropertiesTable->
GetProperty(
"WLSCOMPONENT"); 
 
  131   G4int NumPhotons = 1;
 
  135      G4double MeanNumberOfPhotons = aMaterialPropertiesTable->
 
  136                                     GetConstProperty(
"WLSMEANNUMBERPHOTONS");
 
  140      if (NumPhotons <= 0) {
 
  164   WLSTime   = aMaterialPropertiesTable->
 
  165     GetConstProperty(
"WLSTIMECONSTANT");
 
  173   G4int NumberOfPhotons = NumPhotons;
 
  175   for (
G4int i = 0; i < NumPhotons; i++) {
 
  181     for (
G4int j = 1; j <= 100; j++) {
 
  186         sampledEnergy = WLSIntegral->
GetEnergy(CIIvalue);
 
  189            G4cout << 
"sampledEnergy = " << sampledEnergy << 
G4endl;
 
  193         if (sampledEnergy <= primaryEnergy) 
break;
 
  198     if (sampledEnergy > primaryEnergy) {
 
  200        G4cout << 
" *** One less WLS photon will be returned ***" << 
G4endl;
 
  203        if (NumberOfPhotons == 0) {
 
  205           G4cout << 
" *** No WLS photon can be sampled for this primary ***" 
  216     G4double sint = std::sqrt((1.-cost)*(1.+cost));
 
  241     sinp = std::sin(phi);
 
  242     cosp = std::cos(phi);
 
  244     photonPolarization = cosp * photonPolarization + sinp * perp;
 
  246     photonPolarization = photonPolarization.
unit();
 
  254       (photonPolarization.
x(),
 
  255        photonPolarization.
y(),
 
  256        photonPolarization.
z());
 
  270       new G4Track(aWLSPhoton,aSecondaryTime,aSecondaryPosition);
 
  281     G4cout << 
"\n Exiting from G4OpWLS::DoIt -- NumberOfSecondaries = "  
  292 void G4OpWLS::BuildThePhysicsTable()
 
  306   for (
G4int i=0 ; i < numOfMaterials; i++)
 
  314       G4Material* aMaterial = (*theMaterialTable)[i];
 
  319       if (aMaterialPropertiesTable) {
 
  322       aMaterialPropertiesTable->
GetProperty(
"WLSCOMPONENT");
 
  329       G4double currentIN = (*theWLSVector)[0];
 
  331       if (currentIN >= 0.0) {
 
  339         aPhysicsOrderedFreeVector->
 
  340           InsertValues(currentPM , currentCII);
 
  355         currentPM = theWLSVector->
Energy(j);
 
  356         currentIN = (*theWLSVector)[j];
 
  358         currentCII = 0.5 * (prevIN + currentIN);
 
  360         currentCII = prevCII +
 
  361           (currentPM - prevPM) * currentCII;
 
  363         aPhysicsOrderedFreeVector->
 
  364           InsertValues(currentPM, currentCII);
 
  367         prevCII = currentCII;
 
  400   if ( aMaterialPropertyTable ) {
 
  401     AttenuationLengthVector = aMaterialPropertyTable->
 
  402       GetProperty(
"WLSABSLENGTH");
 
  403     if ( AttenuationLengthVector ){
 
  404       AttenuationLength = AttenuationLengthVector->
 
  405     Value(thePhotonEnergy);
 
  415   return AttenuationLength;
 
  426   else if (name == 
"exponential")
 
  436                   "generator does not exist");
 
G4long G4Poisson(G4double mean)
 
G4int GetNumberOfSecondaries() const 
 
G4MaterialPropertyVector * GetProperty(const char *key)
 
G4double GetKineticEnergy() const 
 
G4double GetTotalEnergy() const 
 
const G4DynamicParticle * GetDynamicParticle() const 
 
G4VParticleChange * PostStepDoIt(const G4Track &aTrack, const G4Step &aStep)
 
static G4MaterialTable * GetMaterialTable()
 
std::vector< G4Material * > G4MaterialTable
 
void SetTouchableHandle(const G4TouchableHandle &apValue)
 
size_t GetVectorLength() const 
 
void UseTimeProfile(const G4String name)
 
G4GLOB_DLL std::ostream G4cout
 
virtual G4double GenerateTime(const G4double time_constant)=0
 
const G4ThreeVector & GetPosition() const 
 
void BuildPhysicsTable(const G4ParticleDefinition &aParticleType)
 
G4VWLSTimeGeneratorProfile * WLSTimeGeneratorProfile
 
void SetProcessSubType(G4int)
 
void SetPolarization(G4double polX, G4double polY, G4double polZ)
 
G4double Energy(size_t index) const 
 
static size_t GetNumberOfMaterials()
 
const G4String & GetProcessName() const 
 
void SetKineticEnergy(G4double aEnergy)
 
const G4TouchableHandle & GetTouchableHandle() const 
 
G4double GetEnergy(G4double aValue)
 
G4Material * GetMaterial() const 
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
static G4OpticalPhoton * OpticalPhoton()
 
virtual void Initialize(const G4Track &)
 
G4MaterialPropertiesTable * GetMaterialPropertiesTable() const 
 
void SetNumberOfSecondaries(G4int totSecondaries)
 
void SetParentID(const G4int aValue)
 
G4StepPoint * GetPostStepPoint() const 
 
G4ParticleChange aParticleChange
 
G4bool ConstPropertyExists(const char *key)
 
G4OpWLS(const G4String &processName="OpWLS", G4ProcessType type=fOptical)
 
void AddSecondary(G4Track *aSecondary)
 
void insertAt(size_t, G4PhysicsVector *)
 
G4double GetGlobalTime() const 
 
Hep3Vector cross(const Hep3Vector &) const 
 
void ProposeTrackStatus(G4TrackStatus status)
 
G4PhysicsTable * theIntegralTable
 
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
 
G4double GetMeanFreePath(const G4Track &aTrack, G4double, G4ForceCondition *)