Message: Re: Generating a Beam with a given Energy Probability Distribution Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Generating a Beam with a given Energy Probability Distribution 

Keywords: Generating a Beam with a given Energy Probability Distribution
Forum: Particles
Re: Question Generating a Beam with a given Energy Probability Distribution
Re: None Re: Generating a Beam with a given Energy Probability Distribution (Maria Grazia Pia)
Re: None Re: Generating a Beam with a given Energy Probability Distribution (Giovanni Santin)
Re: Question Re: Generating a Beam with a given Energy Probability Distribution
Date: 02 Aug, 2006
From: Giovanni Santin <Giovanni Santin>

Hi Maryam

>> My question is how can the type of radiation (the fact that it's beta-)
>> be specified in the macro file (using radioactive dacay), where the
>> source type has been defined as an ion (using gps)? I tried to use
>> grdm/fbeta 1 but it didn't work. (I noticed that in
>> examples/extended/radioactivedecay/exrdm/isotops.mac the types of decays
>> are not specified either!..?)

in fact, in Geant4 the particle type is specified in the primary generator, and there if you use the GPS you just have to say that you want a Sr90 ion, and where you want it.

Then you have to make sure that Geant4 knows what to do with this ion: if in the physics list, you add the Radioactive Decay to the processes associated with the ion, Geant4 will know that that ion will decay, etc.

This is not related to the source definition (GPS) but to the physics associated with the particles to be tracked.

In particular, the radioactive decay process uses some tables to know which isotope undergoes which type of decay, and with which lifetime. It can also generate quite complex decay chains. You need to have these tables, they come in a tar package that you get from the Geant4 Download area (RadiativeDecay.3.0.tar.gz), and you normally need to tell Geant4 where they are during the Geant4 installation. The location is set by the environment variable G4RADIOACTIVEDATA. So I assume you have them.

>> Then I was wondering how I can input an external c++ code generating the
>> energy distribution into geant4 (in case it ends up to be simpler to
>> do). What should be changed in PrimaryGeneratorAction?

As you say, in principle, you can also specify the specific source (e-) energy distribution for the Sr90. You can do this with C++ code, but GPS also lets you input an energy spectrum, so you can simply write a text macro to input the Sr90 e- energy spectrum with a histogram.

But I would say that letting the Sr90 ion decay with the radioactive decay process is a more generic and elegant solution, and in the future you can change source isotope by just changing one line in a macro file.

I hope this helps

Best regards,

Giovanni

 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Giovanni Santin
 Space Environments and Effects Analysis
 ESA - ESTEC - TEC-EES
 Keplerlaan 1, 2200 AG Noordwijk, Netherlands
 e-mail: giovanni.santin@esa.int
 Tel: +31 71 565 6267
 Fax: +31 71 565 4999
 http://geant4.esa.int

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

1 Question: Re: Generating a Beam with a given Energy Probability Distribution   (maryam@jlab.org - 02 Aug, 2006)
(_ None: Re: Generating a Beam with a given Energy Probability Distribution   (Vladimir IVANTCHENKO - 02 Aug, 2006)
(_ Sad: Re: Generating a Beam with a given Energy Probability Distribution   (maryam@jlab.org - 02 Aug, 2006)
(_ Ok: Re: Generating a Beam with a given Energy Probability Distribution   (maryam@jlab.org - 04 Aug, 2006)
 Add Message Add Message
to: "Re: Generating a Beam with a given Energy Probability Distribution"

 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 ]