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

None GPS surface sphere inward generation 

Forum: Run Management
Date: 18 Jan, 2018
From: Olivier Dadoun <Olivier Dadoun>

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

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

1 None: Re: GPS surface sphere inward generation   (michel maire - 19 Jan, 2018)
 Add Message Add Message
to: "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 ]