[601] | 1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
| 2 | //--------------------------------------------------------------------------
|
---|
| 3 | // File and Version Information:
|
---|
| 4 | //
|
---|
| 5 | // Description:
|
---|
| 6 | //
|
---|
| 7 | // History (add to end):
|
---|
| 8 | // Sophie Oct, 1999 - creation
|
---|
| 9 | //
|
---|
| 10 | //------------------------------------------------------------------------
|
---|
| 11 |
|
---|
| 12 | #ifndef RADSPECTRAVEC_H_SEEN
|
---|
| 13 | #define RADSPECTRAVEC_H_SEEN
|
---|
| 14 | #include "machdefs.h"
|
---|
| 15 | #include <iostream.h>
|
---|
| 16 |
|
---|
| 17 | #include "radspec.h"
|
---|
| 18 | #include "tvector.h"
|
---|
| 19 |
|
---|
| 20 | // ---------------------
|
---|
| 21 | // -- Class Interface --
|
---|
| 22 | // ---------------------
|
---|
| 23 |
|
---|
| 24 | // ***IMPORTANT*** All frequencies are expressed in GHz (10^9 Hz)
|
---|
| 25 | // and flux in Watt/m^2/sr
|
---|
| 26 |
|
---|
| 27 | class RadSpectraVec : public RadSpectra
|
---|
| 28 | {
|
---|
| 29 |
|
---|
| 30 | public:
|
---|
| 31 | //Constructor
|
---|
[668] | 32 | RadSpectraVec ();
|
---|
[601] | 33 | RadSpectraVec (Vector const & nu, Vector const & fdenu, double numin=0., double numax=9.e49);
|
---|
| 34 |
|
---|
| 35 | // destructor
|
---|
| 36 | virtual ~RadSpectraVec();
|
---|
| 37 |
|
---|
| 38 | //
|
---|
| 39 | // Member Functions
|
---|
| 40 | //
|
---|
| 41 |
|
---|
| 42 | // The flux() function is virtual:
|
---|
| 43 | // It computes the flux per units of W/m^2/Hz/st
|
---|
| 44 | // implemented in the subclasses
|
---|
| 45 | virtual double flux(double nu) const;
|
---|
| 46 |
|
---|
[607] | 47 | // Acces to Nu and F(nu) vectors
|
---|
| 48 | inline Vector& getNuVec() { return _vecOfNu; }
|
---|
| 49 | inline Vector& getFNuVec() { return _vecOfFDeNu; }
|
---|
[668] | 50 | inline double getNuVec(int i) const { return _vecOfNu(i); }
|
---|
| 51 | inline double getFNuVec(int i) const { return _vecOfFDeNu(i); }
|
---|
| 52 | inline int NbElts() const { return _size;}
|
---|
| 53 | virtual void ReadSelf(PInPersist& s);
|
---|
| 54 | virtual void WriteSelf(POutPersist& s);
|
---|
[607] | 55 |
|
---|
[601] | 56 | virtual void Print(ostream& os) const;
|
---|
| 57 |
|
---|
| 58 | protected:
|
---|
| 59 | Vector _vecOfNu;
|
---|
| 60 | Vector _vecOfFDeNu;
|
---|
[668] | 61 | int _size;
|
---|
[601] | 62 | };
|
---|
| 63 |
|
---|
| 64 | #endif
|
---|