Message: Process names with optical photons Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Process names with optical photons 

Forum: Processes Involving Optical Photons
Date: 28 Sep, 2017
From: Matthew Loyd <Matthew Loyd>

Hello everyone,

I am attempting to build a model to look at optical photon transport in various geometries surrounding a scintillator. I am generating optical photons using particle gun, and attempting to find the average path length traveled in a single volume. When the photon is absorbed (either by my "pmt" or by anything else), I am clearing the track length variable and starting over. I was doing thing by having an if statement that if the process name is proc_abs then clear the variables.

However, I ran >10000 photons and had each step output the process name, and it is always transportation. I'm not sure if this is simply because I am limiting the steps I am looking at to be transportation, or if there is an error with optical processes.

I have attached my steppingaction file that I used to monitor the process names for each step.

void SteppingAction::UserSteppingAction(const G4Step* step) {

  auto theTrack = step->GetTrack();

  auto point1 = step->GetPreStepPoint();
  auto point2 = step->GetPostStepPoint();
  auto step_process = (G4VProcess*)point2->GetProcessDefinedStep();
  auto proc_name = step_process->GetProcessName(); 

  G4VPhysicalVolume* volume1 = point1->GetTouchableHandle()->GetVolume();
  G4VPhysicalVolume* volume2 = point2->GetTouchableHandle()->GetVolume();

run->addData(dist / cm, fL1 / cm, proc_name);

return; }

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

1 None: Re: Process names with optical photons   (Daren Sawkey - 28 Sep, 2017)
 Add Message Add Message
to: "Process names with optical photons"

 Subscribe Subscribe

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