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

FILESpectrum Class Reference

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

#include <FILESpectrum.h>

Inheritance diagram for FILESpectrum:

Spectrum List of all members.

Public Methods

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

virtual double flux () const
 return total flux. More...

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

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

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

const char* nameOf () const

Private Types

typedef std::pair<double,double> efpair

Private Attributes

float m_flux
std::vector<efpairinteg_flux
std::string initialization_document
std::string m_particle_name

Detailed Description

Spectrum that reads its differential spectrum from a table.

Definition at line 14 of file FILESpectrum.h.


Member Typedef Documentation

typedef std::pair<double,double> FILESpectrum::efpair [private]
 

Definition at line 41 of file FILESpectrum.h.


Constructor & Destructor Documentation

FILESpectrum::FILESpectrum ( const std::string & params )
 

params is the filename to read.

Definition at line 15 of file FILESpectrum.cxx.


Member Function Documentation

double FILESpectrum::flux ( ) const [virtual]
 

return total flux.

Reimplemented from Spectrum.

Definition at line 105 of file FILESpectrum.cxx.

const char * FILESpectrum::nameOf ( ) const [inline]
 

Definition at line 31 of file FILESpectrum.h.

float FILESpectrum::operator() ( float r ) const [virtual]
 

sample a single particle energy from the spectrum.

Reimplemented from Spectrum.

Definition at line 111 of file FILESpectrum.cxx.

const char * FILESpectrum::particleName ( ) const [virtual]
 

subclasses need to specify correct particle type.

Reimplemented from Spectrum.

Definition at line 142 of file FILESpectrum.cxx.

std::string FILESpectrum::title ( ) const [virtual]
 

return a title describing the spectrum.

Reimplemented from Spectrum.

Definition at line 137 of file FILESpectrum.cxx.


Member Data Documentation

std::string FILESpectrum::initialization_document [private]
 

Definition at line 45 of file FILESpectrum.h.

std::vector< efpair > FILESpectrum::integ_flux [private]
 

Definition at line 42 of file FILESpectrum.h.

float FILESpectrum::m_flux [private]
 

Definition at line 38 of file FILESpectrum.h.

std::string FILESpectrum::m_particle_name [private]
 

Definition at line 46 of file FILESpectrum.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:20:36 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000