Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

GRBobsSpectrum Class Reference

Spectrum class for GRB source physical simulation. Class interfacing the framework with the GRB generation. More...

#include <GRBobsSpectrum.h>

List of all members.

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.


Detailed Description

Spectrum class for GRB source physical simulation. Class interfacing the framework with the GRB generation.

Author:
Sandhia Bansal sandhiab@lheapop.gsfc.nasa.gov


Member Function Documentation

double GRBobsSpectrum::energySrc HepRandomEngine *    engine,
double    time = 0
 

returns the energy of a sampled photon.

Method called by FluxSource::event(). It returns the energy of a sampled photon, by calling the operator() method.

Parameters:
engine  random engine for uniform sampling;
time  current time.

virtual double GRBobsSpectrum::flux double    time = 0 const [virtual]
 

Computes the flux, in photons/m^2/s, for a given time.

Parameters:
time  not used.

virtual float GRBobsSpectrum::operator() float    randomNumber const [virtual]
 

Draws from the current spectrum the energy of a sampled photon.

Parameters:
randomNumber  Uniform random number drawn in the method energySrc .


The documentation for this class was generated from the following file:
Generated on Mon Jan 27 11:43:33 2003 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001