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

GRBmanager Class Reference

Spectrum class for many GRBs inheriting from GRBSpectrum. This class concatenates several GRBSpectrum one after the other for simulating a series of several GRBs. More...

#include <GRBmanager.h>

List of all members.

Public Methods

 GRBmanager (const std::string &params)
virtual ~GRBmanager ()
double flux (double time) const
double interval (double time)
 Returns the time interval. More...

double solidAngle () const
 return the default value 1.

std::pair< double, double > dir (double energy, HepRandomEngine *engine)
 direction, taken from GRBSim.

float operator() (float u) const
 calls GRBSpectrum::operator().

double energySrc (HepRandomEngine *, double time)
 calls GRBSpectrum::energySrc.

std::string title () const
const char * particleName () const
const char * nameOf () const
float parseParamList (std::string input, int index)


Detailed Description

Spectrum class for many GRBs inheriting from GRBSpectrum. This class concatenates several GRBSpectrum one after the other for simulating a series of several GRBs.

Author:
Nicola Omodei nicola.omodei@pi.infn.it , Johann Cohen-Tanugi johann.cohen@pi.infn.it


Constructor & Destructor Documentation

GRBmanager::GRBmanager const std::string &    params
 

This initializes the simulation parsing the parameters.

Parameters:
params  are set in the xml source library in xml directory. They are:
  • The time of the first burst
  • The time to wait before the next burst
An example the xml source declaration for this spectrum should appears:
    <source name=" GRBmanager_Gal">
    <spectrum escale="GeV"> <SpectrumClass name="GRBmanager" params="50 100"/>
    <use_spectrum frame="galaxy"/> 
    </spectrum> </source>
    


Member Function Documentation

double GRBmanager::flux double    time const
 

If a burst is shining it returns the GRBSpectrum::flux method

double GRBmanager::interval double    time
 

Returns the time interval.

If a burst is shining it returns the GRBSpectrum::interval method. If not it returns the time to whait for the first photon of the next burst.

float GRBmanager::parseParamList std::string    input,
int    index
 

This method parses the parameter list

Parameters:
input  is the string to parse
index  if the position of the parameter in the input list.
Return values:
output  is the value of the parameter as float number.


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