Message: Re: Choose the photons reflected on specific plane &... Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Choose the photons reflected on specific plane &... 

Forum: Event and Track Management
Re: Question Choose the photons reflected on specific plane &... (JungEun Elena Suh)
Date: 19 Sep, 2014
From: Gumplinger Peter <Gumplinger Peter>

> for me several photons are internally reflected inside a fused silica block.
> Of course it has 6 planes, and photons are reflected on those planes.
> I can call those plane as plane 1, 2, 3...6
> 
> Here I want to choose only the photons who reflected on plane 2 less than 3 times.
> (these photons are also reflected on other planes several times but I don't care of it.)

Please, see examples/extended/optical/wls/src/WLSSteppingAction.cc

in WLSSteppingAction::UserSteppingAction

and in addition asked when you count reflections that the reflection happened on your plane 2 - the simplest way is probably to asked:

theTrack->GetPosition().x() == .... or y(), or z()

 Add Message Add Message
to: "Re: Choose the photons reflected on specific plane &..."

 Subscribe Subscribe

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


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]