#include <GRBobsSpectrum.h>
Public Methods | |
| GRBobsSpectrum (const std::string &filename) | |
| Constructor. | |
| GRBobsSpectrum (const double duration, const int npuls, const double flux, const double fraction, const double alpha, const double beta, const double epeak, const double specnorm, const bool flag) | |
| Constructor. | |
| virtual | ~GRBobsSpectrum () |
| Destructor. | |
| GRBobsSpectrum (const GRBobsSpectrum &right) | |
| Copy Constructor. | |
| GRBobsSpectrum & | operator= (const GRBobsSpectrum &right) |
| Assignment Operator. | |
| virtual std::string | title () const |
| const char * | particleName () const |
| virtual double | flux (double time=0) const |
| Computes the flux, in photons/m^2/s, for a given time. More... | |
| float | fraction (float energy) |
| Returns fraction. | |
| std::pair< float, float > | dir (float energy) const |
| \brief Return galactic direction. | |
| std::pair< double, double > | dir (double energy, HepRandomEngine *engine) |
| \brief Calls std::pair<float,float> dir(float energy) const to return galactic direction. | |
| double | energySrc (HepRandomEngine *engine, double time=0) |
| returns the energy of a sampled photon. More... | |
| virtual float | operator() (float randomNumber) const |
| Draws from the current spectrum the energy of a sampled photon. More... | |
| virtual double | interval (double time) |
| Returns the time interval. | |
|
||||||||||||
|
returns the energy of a sampled photon.
Method called by
|
|
|
Computes the flux, in photons/m^2/s, for a given time.
|
|
|
Draws from the current spectrum the energy of a sampled photon.
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001