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

CrElectron Class Reference

The class that calls each cosmic-ray electron components based on their flux. More...

#include <CrElectron.h>

Inheritance diagram for CrElectron:

Spectrum List of all members.

Public Methods

 CrElectron (const std::string& params)
 ~CrElectron ()
CrSpectrumselectComponent (HepRandomEngine* engine)
virtual double energySrc (HepRandomEngine* engine)
 new interface for Hirosima classes. More...

virtual std::pair<double,double> dir (double energy, HepRandomEngine* engine)
CrSpectrumcomponent () const
virtual double flux ( ) const
 calculate the flux, particles/m^2/sr. 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...

virtual double solidAngle ( ) const
 calcualte effective solid angle (default zero). More...


Private Attributes

std::vector<CrSpectrum*> m_subComponents
CrSpectrumm_component

Detailed Description

The class that calls each cosmic-ray electron components based on their flux.

Definition at line 14 of file CrElectron.h.


Constructor & Destructor Documentation

CrElectron::CrElectron ( const std::string & paramstring )
 

Definition at line 38 of file CrElectron.cxx.

CrElectron::~CrElectron ( )
 

Definition at line 55 of file CrElectron.cxx.


Member Function Documentation

CrSpectrum * CrElectron::component ( ) const
 

Definition at line 103 of file CrElectron.cxx.

std::pair< double,double > CrElectron::dir ( double energy,
HepRandomEngine * engine ) [virtual]
 

Reimplemented from Spectrum.

Definition at line 94 of file CrElectron.cxx.

Referenced by main().

double CrElectron::energySrc ( HepRandomEngine * engine ) [virtual]
 

new interface for Hirosima classes.

Reimplemented from Spectrum.

Definition at line 85 of file CrElectron.cxx.

Referenced by main().

double CrElectron::flux ( ) const [virtual]
 

calculate the flux, particles/m^2/sr.

Reimplemented from Spectrum.

Definition at line 108 of file CrElectron.cxx.

const char * CrElectron::particleName ( ) const [inline, virtual]
 

subclasses need to specify correct particle type.

Reimplemented from Spectrum.

Definition at line 30 of file CrElectron.h.

CrSpectrum * CrElectron::selectComponent ( HepRandomEngine * engine )
 

Definition at line 64 of file CrElectron.cxx.

Referenced by energySrc(), and main().

double CrElectron::solidAngle ( ) const [virtual]
 

calcualte effective solid angle (default zero).

Reimplemented from Spectrum.

Definition at line 118 of file CrElectron.cxx.

std::string CrElectron::title ( ) const [inline, virtual]
 

return a title describing the spectrum.

Reimplemented from Spectrum.

Definition at line 31 of file CrElectron.h.


Member Data Documentation

CrSpectrum * CrElectron::m_component [private]
 

Definition at line 36 of file CrElectron.h.

std::vector< CrSpectrum *> CrElectron::m_subComponents [private]
 

Definition at line 35 of file CrElectron.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