Message: Define different theta distributions depending on particle's position Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Define different theta distributions depending on particle's position 

Forum: Particles
Date: Jan 10, 09:03
From: <Nicolas78>

Dear all,

I'm trying to use different theta angle distributions depending on the particle's position.

Before, when I only needed a single theta distribution, I usually used the following method with GPS:
/gps/ang/type user
/gps/hist/type theta
/gps/hist/point 0.0266667 0.003523
/gps/hist/point 0.08 0.010229
/gps/hist/point 0.133333 0.0168419
/gps/hist/point 0.186667 0.0226432
etc.

But now I'm trying to make a dependence between theta and particle's position.

For example, let's say that the theta distribution varies with the z position.
I would like to set a theta histogram for several z positions e.g. z=1*mm, another histogram for z=2*mm, etc.

I've tried to use the G4SPSAngDistribution class in the PrimaryGeneratorAction with something like:
    G4SPSAngDistribution* angDist=ParticleGun->GetCurrentSource()->GetAngDist();
    angDist->SetAngDistType("user");

But I didn't manage to find a solution.

Could anyone help me ?

Thanks in advance.

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

1 None: Re: Define different theta distributions depending on particle's position   (michel maire - Jan 11, 02:49)
 Add Message Add Message
to: "Define different theta distributions depending on particle's position"

 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 ]