Message: Optical photon tracking - fGeomBoundary Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Optical photon tracking - fGeomBoundary 

Forum: Processes Involving Optical Photons
Date: 09 Aug, 2013
From: George Dedes <George Dedes>

Hi,

based on N06 example, I am simulating a small stack of alternating water and scintillator crystal layers. In the end, I would like to store the optical photons that exit my scintillator. So I have implemented and UserSteppingAction and imposing the condition of

s->GetPostStepPoint()->GetStepStatus() == fGeomBoundary 
		&& ParticleName=="opticalphoton")

Contrary to my experience so far, when I try the above, which means getting the optical photons exiting a given volume (PostStep is a fGeomBoundary), I don't get any photons. That's strange because there are volume crossings, I get the info from PhysicsList verbose

 Photon at Boundary! 
 thePrePV:  Scint3
 thePostPV: Tank3
 Old Momentum Direction: (0.168113,0.67367,-0.719658)
 Old Polarization:       (-0.977934,0.205831,-0.0357686)
 New Momentum Direction: (0.168113,0.67367,-0.719658)
 New Polarization:       (-0.977934,0.205831,-0.0357686)
 *** FresnelRefraction *** 

In addition, when I try to see which photons enter a volume

s->GetPreStepPoint()->GetStepStatus() == fGeomBoundary 
		&& ParticleName=="opticalphoton")

the info seems ok.

So any idea why in the SteppingAction, I get the step from the boundary onwards the new volume, but not the step from the old volume to the boundary???

Thanks in advance, George

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

1 Feedback: Re: Optical photon tracking - fGeomBoundary   (Gumplinger Peter - 15 Aug, 2013)
1 None: Re: Optical photon tracking - fGeomBoundary   (George Dedes - 16 Aug, 2013)
1 Feedback: Re: Optical photon tracking - fGeomBoundary   (Gumplinger Peter - 16 Aug, 2013)
... 1 Message(s)
2 None: Re: Optical photon tracking - fGeomBoundary   (George Dedes - 16 Aug, 2013)
 Add Message Add Message
to: "Optical photon tracking - fGeomBoundary"

 Subscribe Subscribe

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