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

CrProton Class Reference

#include <CrProton.h>

Inheritance diagram for CrProton:

Spectrum List of all members.

Public Methods

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

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

Constructor & Destructor Documentation

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

Definition at line 32 of file CrProton.cxx.

CrProton::~CrProton ( )
 

Definition at line 48 of file CrProton.cxx.


Member Function Documentation

CrSpectrum * CrProton::component ( ) const
 

Definition at line 95 of file CrProton.cxx.

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

Reimplemented from Spectrum.

Definition at line 86 of file CrProton.cxx.

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

new interface for Hirosima classes.

Reimplemented from Spectrum.

Definition at line 78 of file CrProton.cxx.

double CrProton::flux ( ) const [virtual]
 

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

Reimplemented from Spectrum.

Definition at line 100 of file CrProton.cxx.

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

subclasses need to specify correct particle type.

Reimplemented from Spectrum.

Definition at line 36 of file CrProton.h.

CrSpectrum * CrProton::selectComponent ( HepRandomEngine * engine )
 

Definition at line 57 of file CrProton.cxx.

Referenced by energySrc().

double CrProton::solidAngle ( ) const [virtual]
 

calcualte effective solid angle (default zero).

Reimplemented from Spectrum.

Definition at line 110 of file CrProton.cxx.

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

return a title describing the spectrum.

Reimplemented from Spectrum.

Definition at line 37 of file CrProton.h.


Member Data Documentation

CrSpectrum * CrProton::m_component [private]
 

Definition at line 42 of file CrProton.h.

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

Definition at line 41 of file CrProton.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