Message: Re: GPS surface sphere inward generation Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: GPS surface sphere inward generation 

Forum: Run Management
Re: None GPS surface sphere inward generation (Olivier Dadoun)
Date: 19 Jan, 2018
From: michel maire <michel maire>

On Fri, 19 Jan 2018 00:26:17 GMT, Olivier Dadoun wrote:
> Dear all,
> 
> I would like to generate events on a surface of a sphere in the
> direction of center. I have defined in my PrimaryGeneratorAction:
> 
> PrimaryGeneratorAction::InitializeGPS()
> {
>         G4ThreeVector myPos(0.,0.,0.);
>         G4SPSPosDistribution *posDist = gps->GetCurrentSource()->GetPosDist();
>         posDist->SetCentreCoords(myPos);
>         posDist->SetPosDisType("Surface");
>         posDist->SetPosDisShape("Sphere");
>         posDist->SetRadius(1.5*CLHEP::m);
> 
>         G4SPSAngDistribution *angDist = gps->GetCurrentSource()->GetAngDist();
>         angDist->SetAngDistType("iso");
> 
>         return gps;
> }
> 
> But it seems that the primary is not going inward.
> 
> Do you know what I have missed ?
> 
> By advance thank you.
> 
> Cheers,
> 
> Olivier
> 

  If you are not happy with GPS, you may have a look to example particleGun (in extended/eventgenerator)

      Michel

 Add Message Add Message
to: "Re: GPS surface sphere inward generation"

 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 ]