Message: Re: Transmission of Optical Photons Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Transmission of Optical Photons 

Forum: Processes Involving Optical Photons
Re: None Transmission of Optical Photons
Date: 02 Jul, 2009
From: Benton Pahlka <Benton Pahlka>


It looks like your OpAirSurface doesn't have a refractive index...although I might have missed it.

In any case, you can test for no refractive index when you get the boundary status. (I have this in my SteppingAction)

With this code you need to define boundaryStatus first!

  G4ParticleDefinition* particleType;
  particleType = aStep->GetTrack()->GetDefinition();
  if( particleType == G4OpticalPhoton::OpticalPhotonDefinition() ){
    // query the boundary status
    boundaryStatus = boundary->GetStatus();

    if(aStep->GetPostStepPoint()->GetStepStatus() == fGeomBoundary){
      case Detection: 
      case Undefined: G4cout << "Undefined Boundary Process!" << G4endl;
      case NoRINDEX: G4cout << "NoRINDEX!" << G4endl;

Let me know if you don't have something similar in your SteppingAction.

It might also be good to find out where the photons are being absorbed.



 Add Message Add Message
to: "Re: Transmission of Optical Photons"

 Subscribe Subscribe

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