Message: Possible to generate particles on a hemisphere with GPS? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Possible to generate particles on a hemisphere with GPS? 

Forum: Event and Track Management
Date: 05 Aug, 2005
From: Tore Ersmark <Tore Ersmark>

Hi all,

Is it possible to generate particles on a hemisphere with the GPS? I
could not find anything about it in the documentation available at
http://reat.space.qinetiq.com/gps/ .

Poking around in the code (G4SPSPosDistribution.cc, lines 436-) it
does not seem possible. Maybe with some sort of biasing? It seems
possible to bias (pos) theta... I guess that might result in
particles with weight=0 running around in the simulation though?
Perhaps not good solution.

In case it is not possible to control the position of particles
generated on a sphere with the GPS, is it "safe" to control it in
my own "PrimaryGeneratorAction::GeneratePrimaries(G4Event* event)"?
If I am not satisfied with the generated primary vertex, can I do a 
delete event->GetPrimaryVertex(0)
and try again? Or would that mess up Geant4 internals?

Thanks in advance.

(I am using Geant4 7.1)

Cheers,
Tore

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

1 None: Re: Possible to generate particles on a hemisphere with GPS?   (Fan Lei - 29 Sep, 2005)
3 None: Re: Possible to generate particles on a hemisphere with GPS?   (Fan Lei - 29 Sep, 2005)
 Add Message Add Message
to: "Possible to generate particles on a hemisphere with GPS?"

 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 ]