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

AlbedoSpectrum Class Reference

Simulate the Earth albedo neutron and photon spectra. Choose origins uniformly in a plane, and isotropic angles. More...

#include <AlbedoSpectrum.h>

Inheritance diagram for AlbedoSpectrum:

Spectrum List of all members.

Public Types

enum  Type { photon, neutron }

Public Methods

 AlbedoSpectrum ()
 AlbedoSpectrum (const xml::Element& xelem)
 require attribute name="gamma" or name="neutron".

 AlbedoSpectrum (const std::string& name)
 constructor. must specify name ("photon" or "n"). More...

virtual double calculate_rate (double old_rate)
virtual float operator() (float r) const
 return energy based on random. More...

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

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

void setPosition ( float lat, float lon )

Private Attributes

Type type_
 photon or neutron (or...?). More...


Detailed Description

Simulate the Earth albedo neutron and photon spectra. Choose origins uniformly in a plane, and isotropic angles.

Definition at line 17 of file AlbedoSpectrum.h.


Member Enumeration Documentation

enum AlbedoSpectrum::Type
 

Enumeration values:
photon  
neutron  

Definition at line 40 of file AlbedoSpectrum.h.


Constructor & Destructor Documentation

AlbedoSpectrum::AlbedoSpectrum ( ) [inline]
 

Definition at line 20 of file AlbedoSpectrum.h.

AlbedoSpectrum::AlbedoSpectrum ( const xml::Element & xelem )
 

require attribute name="gamma" or name="neutron".

AlbedoSpectrum::AlbedoSpectrum ( const std::string & name )
 

constructor. must specify name ("photon" or "n").

Definition at line 22 of file AlbedoSpectrum.cxx.


Member Function Documentation

double AlbedoSpectrum::calculate_rate ( double old_rate ) [virtual]
 

Definition at line 79 of file AlbedoSpectrum.cxx.

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

return energy based on random.

Reimplemented from Spectrum.

Definition at line 48 of file AlbedoSpectrum.cxx.

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

subclasses need to specify correct particle type.

Reimplemented from Spectrum.

Definition at line 33 of file AlbedoSpectrum.cxx.

void AlbedoSpectrum::setPosition ( float lat,
float lon ) [inline]
 

Definition at line 42 of file AlbedoSpectrum.h.

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

return a title describing the spectrum.

Reimplemented from Spectrum.

Definition at line 38 of file AlbedoSpectrum.cxx.


Member Data Documentation

Type AlbedoSpectrum::type_ [private]
 

photon or neutron (or...?).

Definition at line 47 of file AlbedoSpectrum.h.


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