Message: Re: Particle generation from input ASCII file of Gamma ray spectrum Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: Particle generation from input ASCII file of Gamma ray spectrum  

Forum: Particles
Re: None Particle generation from input ASCII file of Gamma ray spectrum (benny)
Re: None Re: Particle generation from input ASCII file of Gamma ray spectrum (Norman Graf)
Re: None Re: Particle generation from input ASCII file of Gamma ray spectrum (benny)
Date: 25 Jan, 2011
From: Laurent Desorgher <Laurent Desorgher>

Dear Benny,

> On Tue, 25 Jan 2011 06:42:26 GMT, Norman Graf wrote:
> > Novice example N04 provides an implementation of reading in an ASCII file
> > containing input particle information. You will, of course, need to modify
> > it to fit the needs of your use case.
> > Norman 
> > 
>  thanks Norman,
> ExN04 ..suggests to use pythiya format etc...
> 
> i thought .. there is another way to pass the spectrum data and ..
> interpolate for any random energy .

You may try with the general particel source (/gps macro commands) and its capability to define input spectra trough histograms.

For more details you should look in:

1) The gps examples

examples/eventgenerator/exgps

2) In the user guide http://reat.space.qinetiq.com/gps/new_gps_sum_files/gps_sum.htm the description of commands /gps/ene/type /gps/hist and also the examples http://reat.space.qinetiq.com/gps/examples/examples.htm

Note that since g4.9.4 a new gps macro command  
 /gps/hist/file your_file_name 
allows the user to specify arbitrary energy distribution by supplying the data points in a 2-column (energy<in MeV> and flux) ASCII file.
I never tried this command myself but I believe it should work.

Best regards

Laurent Desorgher

> 
> Anyways .. i will try it with N04
> 

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

1 None: Re: Particle generation from input ASCII file of Gamma ray spectrum   (michel maire - 25 Jan, 2011)
(_ None: Re: Particle generation from input ASCII file of Gamma ray spectrum   (benny - 25 Jan, 2011)
 Add Message Add Message
to: "Re: Particle generation from input ASCII file of Gamma ray spectrum "

 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 ]