#include <Spectrum.h>
Inheritance diagram for Spectrum:

Public Methods | |
| virtual float | operator() (float ) const |
| virtual const char* | particleName () const = 0 |
| subclasses need to specify correct particle type. More... | |
| virtual double | flux ( ) const |
| calculate the flux, particles/m^2/sr. (default zero). More... | |
| virtual double | solidAngle () const |
| calcualte effective solid angle (default zero). More... | |
| virtual void | setPosition ( double lat, double lon , double time=0) |
| for forward compatibility with position base spectra. More... | |
| virtual std::string | title () const = 0 |
| return a title describing the spectrum. | |
| float | fraction (float energy) |
| inverse of the operator: given a KE, return number in [0,1) for choosing limits. | |
| virtual | ~Spectrum () |
| virtual std::pair<float,float> | dir (float energy) const |
| virtual double | energySrc (HepRandomEngine* engine) |
| new interface for Hirosima classes. More... | |
| virtual std::pair<double,double> | dir (double energy, HepRandomEngine* engine) |
Protected Methods | |
| Spectrum (const std::vector<float>& ) | |
| Spectrum () | |
| virtual void | parseParamList (std::string input, std::vector<float>& output) const |
Protected Attributes | |
| double | m_lat |
| double | m_lon |
| double | m_time |
Definition at line 21 of file Spectrum.h.
|
|
Definition at line 16 of file Spectrum.cxx. |
|
|
Definition at line 75 of file Spectrum.h. |
|
|
Definition at line 76 of file Spectrum.h. |
|
|
Reimplemented in CrElectron, and CrProton. Definition at line 85 of file Spectrum.cxx. |
|
|
Reimplemented in AlbedoPSpectrum, CHIMESpectrum, GalElSpectrum, HeSpectrum, CrElectronPrimary, CrElectronReentrant, CrElectronSplash, CrProtonPrimary, CrProtonReentrant, and CrProtonSplash. Definition at line 60 of file Spectrum.cxx. Referenced by FluxSource::computeLaunch(), and dir(). |
|
|
new interface for Hirosima classes.
Reimplemented in CrElectron, and CrProton. Definition at line 79 of file Spectrum.cxx. Referenced by FluxSource::computeLaunch(). |
|
|
calculate the flux, particles/m^2/sr. (default zero).
Reimplemented in AlbedoPSpectrum, CHIMESpectrum, GalElSpectrum, HeSpectrum, TrappedProtonSpectrum, CrElectron, CrElectronPrimary, CrElectronReentrant, CrElectronSplash, CrProton, CrProtonPrimary, CrProtonReentrant, CrProtonSplash, and FILESpectrum. Definition at line 44 of file Spectrum.cxx. Referenced by FluxSource::flux(). |
|
|
inverse of the operator: given a KE, return number in [0,1) for choosing limits.
Reimplemented in CrElectronPrimary, CrElectronReentrant, CrElectronSplash, CrProtonPrimary, CrProtonReentrant, and CrProtonSplash. |
|
|
Reimplemented in AlbedoPSpectrum, AlbedoSpectrum, CHIMESpectrum, GalElSpectrum, HeSpectrum, ProtonSpectrum, SimpleSpectrum, TrappedProtonSpectrum, and FILESpectrum. Definition at line 30 of file Spectrum.h. |
|
|
Definition at line 91 of file Spectrum.cxx. Referenced by AlbedoPSpectrum::AlbedoPSpectrum(), CrElectron::CrElectron(), CrProton::CrProton(), GalElSpectrum::GalElSpectrum(), HeSpectrum::HeSpectrum(), and CHIMESpectrum::init(). |
|
|
subclasses need to specify correct particle type.
Reimplemented in AlbedoPSpectrum, AlbedoSpectrum, CHIMESpectrum, GalElSpectrum, HeSpectrum, ProtonSpectrum, SimpleSpectrum, TrappedProtonSpectrum, CrElectron, CrElectronPrimary, CrElectronReentrant, CrElectronSplash, CrProton, CrProtonPrimary, CrProtonReentrant, CrProtonSplash, and FILESpectrum. Definition at line 74 of file Spectrum.cxx. |
|
|
for forward compatibility with position base spectra.
Reimplemented in CrSpectrum. Definition at line 53 of file Spectrum.cxx. |
|
|
calcualte effective solid angle (default zero).
Reimplemented in AlbedoPSpectrum, CHIMESpectrum, GalElSpectrum, HeSpectrum, CrElectron, CrElectronPrimary, CrElectronReentrant, CrElectronSplash, CrProton, CrProtonPrimary, CrProtonReentrant, and CrProtonSplash. Definition at line 48 of file Spectrum.cxx. Referenced by FluxSource::setAcceptance(). |
|
|
return a title describing the spectrum.
Reimplemented in AlbedoPSpectrum, AlbedoSpectrum, CHIMESpectrum, GalElSpectrum, HeSpectrum, ProtonSpectrum, SimpleSpectrum, TrappedProtonSpectrum, CrElectron, CrElectronPrimary, CrElectronReentrant, CrElectronSplash, CrProton, CrProtonPrimary, CrProtonReentrant, CrProtonSplash, and FILESpectrum. |
|
|
Definition at line 82 of file Spectrum.h. |
|
|
Definition at line 82 of file Spectrum.h. |
|
|
Reimplemented in CrSpectrum. Definition at line 83 of file Spectrum.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000