Message: Re: SetPosition of G4Track does not work. Creating periodic geometry Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: SetPosition of G4Track does not work. Creating periodic geometry 

Forum: Event and Track Management
Re: Question SetPosition of G4Track does not work. Creating periodic geometry (Alexander Tanchuk)
Date: 01 Aug, 2013
From: Miguel Cortes-Giraldo <Miguel Cortes-Giraldo>

Hi Alexander,

Maybe you could simulate your periodic structure by reflecting all the particles when they reach the walls of your geometry, especially if you do not need to keep all the particles traveling along the same direction.

If this works for your case, you may want to take a look at the class G4OpBoundaryProcess which takes care of reflecting optical photons when they reach a boundary with given optical parameters defined, among other processes.

To do this, you should create a process by yourself (derived from G4VProcess) implementing how the track should be modified (here is where what I mention above may help). This process should be registered in your physics list for all particles.

Hope this helps,

Regards, Miguel

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

1 Feedback: Re: SetPosition of G4Track does not work. Creating periodic geometry   (Gumplinger Peter - 01 Aug, 2013)
(_ Ok: Re: SetPosition of G4Track does not work. Creating periodic geometry   (Alexander Tanchuk - 03 Aug, 2013)
 Add Message Add Message
to: "Re: SetPosition of G4Track does not work. Creating periodic geometry"

 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 ]