Message: G4GeneralParticleSource: spherical source radiating inwards?? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None G4GeneralParticleSource: spherical source radiating inwards?? 

Forum: Event and Track Management
Date: 19 Aug, 2016
From: Constantin Athanassas <Constantin Athanassas>

Hello,

I am working on extended example: extended/eventgenerator/exgps. I am trying to replicate the example macro at the end of the link:

https://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/ForApplicationDeveloper/html/ch02s07.html#eqn.GPScosine

but I want to use a spherical source radiating inwards, towards the SiO2 sphere at the center, not outwards. I am using the following macro:

/gps/particle gamma

/gps/pos/type Surface

/gps/pos/shape Sphere

/gps/pos/centre 0 0 0 cm

/gps/radius 6 cm

/gps/ang/type cos

/gps/ene/type Lin

/gps/ene/min 2 MeV

/gps/ene/max 10 MeV

/gps/ene/gradient 1

/gps/ene/intercept 1

/run/beamOn 100

but the flux always seems to be directed outwards, either from the center of the SiO2 sphere or on the 6-cm-wide shell, depending on the combination of values assigned to:

/gps/ang/mintheta and

/gps/ang/maxtheta

but never towards the center of the setup, which is the wanted.

I followed the steps shown in thread: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/space_app/79/2/1.html

but, still, the model does not cooperate.

Can someone help?

Thanks in advance,

Constantin Athanassas, NTUA.

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

1 None: Re: G4GeneralParticleSource: spherical source radiating inwards??   (Youming Yang - 20 Aug, 2016)
(_ None: Re: G4GeneralParticleSource: spherical source radiating inwards??   (Constantin Athanassas - 21 Aug, 2016)
(_ None: Re: G4GeneralParticleSource: spherical source radiating inwards??   (Constantin Athanassas - 21 Aug, 2016)
(_ None: Re: G4GeneralParticleSource: spherical source radiating inwards??   (Constantin Athanassas - 23 Aug, 2016)
 Add Message Add Message
to: "G4GeneralParticleSource: spherical source radiating inwards??"

 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 ]