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

AlbedoSpectrum.h

Go to the documentation of this file.
00001 // $Header: /nfs/slac/g/glast/ground/cvs/flux/flux/AlbedoSpectrum.h,v 1.6 2001/10/18 03:30:16 srobinsn Exp $
00002 //
00003 // Simulate the Earth albedo neutron and photon spectra.
00004 // Choose origins uniformly in a plane, and isotropic angles
00005 //
00006 #ifndef ALBEDO_SPECTRUM_H
00007 #define ALBEDO_SPECTRUM_H
00008 
00009 #include "flux/Spectrum.h"
00010 
00011 namespace xml {
00012   class Element;
00013 }
00014 
00017 class AlbedoSpectrum : public Spectrum
00018 {
00019 public:
00020     AlbedoSpectrum(){
00021                 std::string str="gamma";
00022                 AlbedoSpectrum("gamma");
00023         }
00024 
00026     AlbedoSpectrum(const xml::Element& xelem);
00027 
00029     AlbedoSpectrum(const std::string& name);
00030 
00031     virtual double calculate_rate(double old_rate);
00032 
00033 
00035     virtual float operator()(float r)const;
00036     
00037     virtual const char* particleName()const;
00038     virtual std::string title()const;
00039     
00040     enum Type{photon, neutron};
00041     
00042     void setPosition ( float lat, float lon ){}
00043     
00044 private:
00045 
00047     Type type_; 
00048     
00049 };
00050 
00051 #endif     

Generated at Wed Nov 21 12:20:33 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000