#include <GRBSpectrum.h>
Public Methods | |
| GRBSpectrum (const std::string ¶ms) | |
| virtual | ~GRBSpectrum () |
| double | flux (double time) const |
| double | interval (double time) |
| Returns the time interval. More... | |
| std::pair< double, double > | dir (double, HepRandomEngine *) |
| Galactic direction. | |
| float | operator() (float u) const |
| Draws from the current spectrum the energy of a sampled photon. More... | |
| double | energySrc (HepRandomEngine *engine, double time) |
| returns the energy of a sampled photon. More... | |
| std::string | title () const |
| const char * | particleName () const |
| const char * | nameOf () const |
Friends | |
| class | GRBmanager |
|
|
This initializes the simulation parsing the parameters.
<source name=" GRBspectrum_Gal">
<spectrum escale="GeV"> <SpectrumClass name="GRBSpectrum" params="temp.txt"/>
<!--This will live the direction free-->
<use_spectrum frame="galaxy"/>
</spectrum> </source>
|
|
||||||||||||
|
returns the energy of a sampled photon.
Method called by
|
|
|
Computes the flux, in photons/m^2/s, for a given time time is actually not used because the spectrum is already updated. |
|
|
Returns the time interval.
Given |
|
|
Draws from the current spectrum the energy of a sampled photon.
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001