Changeset 668 in Sophya for trunk/SophyaLib/SkyT/nupower.cc
- Timestamp:
- Nov 29, 1999, 3:16:10 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyT/nupower.cc
r610 r668 1 1 //-------------------------------------------------------------------------- 2 2 // File and Version Information: 3 // $Id: nupower.cc,v 1. 3 1999-11-21 23:25:45 ansari Exp $3 // $Id: nupower.cc,v 1.4 1999-11-29 14:16:05 ansari Exp $ 4 4 // 5 5 // Description: … … 24 24 // Constructor -- 25 25 //---------------- 26 PowerLawSpectra::PowerLawSpectra() 27 { 28 } 29 26 30 PowerLawSpectra::PowerLawSpectra(double a, double b, double nu0, double dnu, double numin, double numax) 27 31 : RadSpectra(numin, numax) … … 47 51 } 48 52 53 54 void 55 PowerLawSpectra::WriteSelf(POutPersist& s) 56 { 57 s.PutR8(this->giveNorm()); 58 s.PutR8(this->giveNu0()); 59 s.PutR8(this->giveDNu()); 60 s.PutR8(this->giveExp()); 61 s.PutR8(this->minFreq()); 62 s.PutR8(this->maxFreq()); 63 } 64 65 void 66 PowerLawSpectra::ReadSelf(PInPersist& s) 67 { 68 s.GetR8(_a); 69 s.GetR8(_nu0); 70 s.GetR8(_dnu); 71 s.GetR8(_b); 72 s.GetR8(_numin); 73 s.GetR8(_numax); 74 cout << " Norm - Nu0 - DNu - Exp - minFreq - maxFreq " << endl; 75 cout << _a << "-" << _nu0 << "-" << _dnu << "-" << _b << "-" << _numin << "-" << _numax << endl; 76 } 77 78 49 79 void 50 80 PowerLawSpectra::Print(ostream& os) const
Note:
See TracChangeset
for help on using the changeset viewer.