source: Sophya/trunk/SophyaLib/SkyT/nupower.h@ 603

Last change on this file since 603 was 601, checked in by ansari, 26 years ago

Creation module SkyT (provisoire) - Outils pour simulation du ciel

Reza 19/11/99

File size: 898 bytes
Line 
1// This may look like C code, but it is really -*- C++ -*-
2//--------------------------------------------------------------------------
3// File and Version Information:
4// $Id: nupower.h,v 1.1.1.1 1999-11-19 16:34:32 ansari Exp $
5//
6// Description:
7//
8// History (add to end):
9// Sophie Oct, 1999 - creation
10//
11//------------------------------------------------------------------------
12
13#ifndef NUPOWER_H_SEEN
14#define NUPOWER_H_SEEN
15
16#include "radspec.h"
17#include "convtools.h"
18
19// Power law spectra f = a (nu-nu0)^b
20class PowerLawSpectra : public RadSpectra
21{
22public: //Constructor
23
24 PowerLawSpectra(double a, double b, double nu0, double numin=0., double numax=9.e49);
25
26 virtual ~PowerLawSpectra();
27
28 virtual double flux(double nu) const;
29
30 // Redefintion of the Print function
31 virtual void Print(ostream& os) const;
32
33protected:
34 double _a, _b, _nu0;
35};
36
37#endif
Note: See TracBrowser for help on using the repository browser.