00001 // $Id: ProtonSpectrum.h,v 1.5 2001/10/20 07:20:34 srobinsn Exp $ 00002 /* $History: ProtonSpectrum.h $ 00003 * 00004 * ***************** Version 2 ***************** 00005 * User: Burnett Date: 29-03-98 Time: 15:54 00006 * Updated in $/glastsim/flux 00007 * Change Flux definition so that subclasses must implement a descriptive 00008 * title 00009 */ 00010 00011 // 00012 // return the cosmic ray proton spectrum appropriate for low 00013 // inclination Earth orbit 00014 // 00015 00016 #ifndef PROTON_SPECTRUM_H 00017 #define PROTON_SPECTRUM_H 00018 00019 #include "flux/Spectrum.h" 00020 00021 00024 class ProtonSpectrum : public Spectrum 00025 { 00026 public: 00027 ProtonSpectrum(){}; 00028 00029 virtual float operator()(float)const; 00030 virtual double calculate_rate(double old_rate); 00031 virtual const char* particleName()const; 00032 virtual std::string title()const; 00033 00034 private: 00035 static int ProtonSpectrum::prolocate(struct tbl *data, int n, double x); 00036 static double protonenergy(float r); 00037 00038 }; 00039 00040 #endif
1.2.3 written by Dimitri van Heesch,
© 1997-2000