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

TimeDepSpectrum Class Reference

Spectrum that reads its differential spectrum from a table. More...

#include <TimeDepSpectrum.h>

Inheritance diagram for TimeDepSpectrum::

Spectrum ISpectrum List of all members.

Public Methods

 TimeDepSpectrum (const std::string &params)
 params is the filename to read. More...

double flux (double time) const
 return flux, given a time. More...

float operator() (float) const
 sample a single particle energy from the spectrum. More...

std::string title () const
 return a title describing the spectrum. More...

const char * particleName () const
 subclasses need to specify correct particle type. More...

const char * nameOf () const

Detailed Description

Spectrum that reads its differential spectrum from a table.

Definition at line 13 of file TimeDepSpectrum.h.


Constructor & Destructor Documentation

TimeDepSpectrum::TimeDepSpectrum const std::string &    params [inline]
 

params is the filename to read.

Definition at line 17 of file TimeDepSpectrum.h.

00017 {}


Member Function Documentation

double TimeDepSpectrum::flux double    time const [virtual]
 

return flux, given a time.

Reimplemented from Spectrum.

Definition at line 16 of file TimeDepSpectrum.cxx.

00016                                                {
00017        if(time<=0.04) {return 1;}
00018        return 0;
00019    }

const char* TimeDepSpectrum::nameOf   const [inline]
 

Definition at line 32 of file TimeDepSpectrum.h.

00032 {return "TimeDepSpectrum";}

float TimeDepSpectrum::operator() float    f const [inline, virtual]
 

sample a single particle energy from the spectrum.

Reimplemented from Spectrum.

Definition at line 27 of file TimeDepSpectrum.h.

00027 {return (float)0.1;}

const char* TimeDepSpectrum::particleName   const [inline, virtual]
 

subclasses need to specify correct particle type.

Reimplemented from Spectrum.

Definition at line 31 of file TimeDepSpectrum.h.

00031 {return "e";}

std::string TimeDepSpectrum::title   const [inline, virtual]
 

return a title describing the spectrum.

Reimplemented from Spectrum.

Definition at line 30 of file TimeDepSpectrum.h.

00030 {return "TimeDepSpectrum";}


The documentation for this class was generated from the following files:
Generated on Wed Oct 16 14:01:36 2002 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001