Changeset 607 in Sophya for trunk/SophyaLib/SkyT/radspec.cc
- Timestamp:
- Nov 20, 1999, 10:00:54 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyT/radspec.cc
r601 r607 1 1 //-------------------------------------------------------------------------- 2 2 // File and Version Information: 3 // $Id: radspec.cc,v 1. 1.1.1 1999-11-19 16:34:32ansari Exp $3 // $Id: radspec.cc,v 1.2 1999-11-20 21:00:50 ansari Exp $ 4 4 // 5 5 // Description: … … 106 106 _raypourfinteg = const_cast<RadSpectra *>(this); 107 107 TrpzInteg I(RadSpectra_fluxFunction , f1, f2); 108 _raypourfinteg = NULL; 109 return((double)I); 108 double val = (double)I; 109 _raypourfinteg = NULL; // On ne peut pas faire ca avant la destruction de I 110 return(val); 110 111 } 111 112 double … … 160 161 _raypourfinteg = const_cast<RadSpectra *>(this); 161 162 _filter = const_cast<SpectralResponse *>(&filter); 162 TrpzInteg I(RadSpectra_filteredFlux,f1,f2); 163 TrpzInteg I(RadSpectra_filteredFlux,f1,f2); 164 double val = (double)I; 163 165 _raypourfinteg = NULL; 164 166 _filter = NULL; 165 return( (double)I);167 return(val); 166 168 } 167 169 … … 210 212 _filter = const_cast<SpectralResponse *>(&filter); 211 213 TrpzInteg I(RadSpectra_logFilteredFlux,f1Log,f2Log); 214 double val = (double)I; 212 215 _raypourfinteg = NULL; 213 216 _filter = NULL; 214 return( (double)I* log(10.));217 return(val* log(10.)); 215 218 } 216 219
Note:
See TracChangeset
for help on using the changeset viewer.