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

GRBConstants Class Reference

Class instantiated to access general parameters and constants. More...

#include <GRBConstants.h>

List of all members.

Public Methods

 GRBConstants ()
 ~GRBConstants ()
int ReadParam ()
 Parameters are read from a file using facilities::Util::expandEnvVar method.

void Print ()
 Printout Utility.

void Save (bool flag=false)
 Save the parameters in a file. It could be usefull to mantain trace of the models runned.

void setEngineType (int value)
int EngineType ()
 Retrn The engine type.

int Nshock ()
void setNshock (int value=10)
double Duration ()
void setDuration (double value=0.4)
double RiseTime ()
void setRiseTime (double value=0.4)
double DecayTime ()
void setDecayTime (double value=0.4)
double PeakEnergy ()
void setPeakEnergy (double value=0.4)
void setShellType (int value)
int ShellType ()
 Returns the shell`s type.

double ShellRadius ()
void setShellRadius (double value)
double JetRadius ()
void setJetRadius (double value)
double JetAngle ()
void setJetAngle (double value)
double Thickness ()
void setThickness (double value)
double Etot ()
void setEtot (double value)
double GammaMin ()
void setGammaMin (double value=100.0)
double GammaMax ()
void setGammaMax (double value=1000.0)
double Redshift ()
void setRedshift (double value=1.0)
void setEnergyPh (double value=25.0e+3)
double EnergyPh ()
double Distance ()
std::string GetParamFile ()

Static Public Methods

void InitializeRandom (long seed=0)
 Initialize the Random Number Generator. Every run is differrent.

HepRandomEngine * GetTheRandomEngine (long seed=0)


Detailed Description

Class instantiated to access general parameters and constants.

The namespace cst contains all the constant needed to the simulation. All the constant relative to physical model are included in the GRBParam.txt

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


Member Function Documentation

void GRBConstants::setEnergyPh double    value = 25.0e+3 [inline]
 

Set the minimum energy of the extracted photons

All the photons drawn from the spectrum will be energy greater then m_enph

void GRBConstants::setEngineType int    value [inline]
 

Defines the engine`s type

The type of engine defines the way GRBengine creates the shocks vector

Parameters:
value  define the type:
  • type 0: Observed parameters
  • type 1: Reads the Physical parameters and create a shock with the defined parameters
  • type 2: Reads the physical parameters and generates shocks starting from the collision of two shells of the specified parameters.
See also:
GRBengine, GRBShock

void GRBConstants::setShellType int    value [inline]
 

Sets the type of shell

GRBShell can have different geometries. This function set the appropriate geometry

  • Type 0: Isotropic emission
  • Type 1: Jet emission


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