| Last change
 on this file since 1171 was             901, checked in by ansari, 26 years ago | 
        
          | 
Sophie: adding the namespace SOPHYA in the .h files
 | 
        
          | File size:
            1.5 KB | 
      
      
| Line |  | 
|---|
| 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 | namespace SOPHYA { | 
|---|
| 27 | class RadSpectraVec : public RadSpectra | 
|---|
| 28 | { | 
|---|
| 29 |  | 
|---|
| 30 | public: | 
|---|
| 31 | //Constructor | 
|---|
| 32 | RadSpectraVec (); | 
|---|
| 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 |  | 
|---|
| 47 | // Acces to Nu and F(nu) vectors | 
|---|
| 48 | inline Vector& getNuVec() { return _vecOfNu; } | 
|---|
| 49 | inline Vector& getFNuVec() { return _vecOfFDeNu; } | 
|---|
| 50 | inline double getNuVec(int i) const { return _vecOfNu(i); } | 
|---|
| 51 | inline double getFNuVec(int i) const { return _vecOfFDeNu(i); } | 
|---|
| 52 |  | 
|---|
| 53 | virtual void   Print(ostream& os)  const; | 
|---|
| 54 |  | 
|---|
| 55 | protected: | 
|---|
| 56 | Vector _vecOfNu; | 
|---|
| 57 | Vector _vecOfFDeNu; | 
|---|
| 58 | }; | 
|---|
| 59 | } | 
|---|
| 60 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.