Tutorials
How to …
- calculate the broad-band radiation spectrum from a parent population of hadrons or electrons
- evolve a particle population in a time-constant environment
- evolve a particle population in a changing environment
- set up more complicated Inverse-Compton radiation fields (SSC, anisotropy, arbitrary shape)
- pick your hadronic interaction model
- take particle escape into account
- display the particle energy loss scales
- Take into account gammagamma absorption
- Calculate the emission for arbitrary cosmic ray and ambient medium composition
- Fitting data with GAMERA models
Please note:
At the time of writing, python
is quite popular and the tutorials are provided in that
language. However, you can use GAMERA
also in your C++
program by adapting
the syntax, e.g. instead of the python
code
fr = gappa.Radiation()
fr.SetBField(b)
[...]
sed = fr.GetTotalSED()
you could write in C++
syntax
Radiation *fRad = new Radiation();
fRad->SetBField(b);
[...]
vector< vector<double> > SED = fRad->GetTotalSED();
Please check out the installation instructions to learn how to make GAMERA
work
in either language.