Changeset 3029 for trunk/src/STLineFinder.h
- Timestamp:
- 03/03/15 18:26:31 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STLineFinder.h
r2943 r3029 62 62 // the new line 63 63 static void addNewSearchResult(const std::list<std::pair<int, int> > 64 &newlines, std::list<std::pair<int, int> > &lines_list) 65 throw(casa::AipsError); 64 &newlines, std::list<std::pair<int, int> > &lines_list); 66 65 67 66 // extend all line ranges to the point where a value stored in the … … 73 72 const casa::Vector<casa::Int> &signs, 74 73 const casa::Vector<casa::Bool> &mask, 75 const std::pair<int,int> &edge) 76 throw(casa::AipsError); 74 const std::pair<int,int> &edge); 77 75 protected: 78 76 … … 86 84 // return true if line2 intersects with line1 with at least one 87 85 // common channel, and false otherwise 88 bool operator()(const std::pair<int,int> &line2) const throw();86 bool operator()(const std::pair<int,int> &line2) const; 89 87 }; 90 88 … … 98 96 // update temp_line with a union of temp_line and new_line 99 97 // provided there is no gap between the lines 100 void operator()(const std::pair<int,int> &new_line) throw();98 void operator()(const std::pair<int,int> &new_line); 101 99 // return the result (temp_line) 102 const std::pair<int,int>& result() const throw();100 const std::pair<int,int>& result() const; 103 101 }; 104 102 … … 113 111 // return true if line2 should be placed later than line1 114 112 // in the ordered list (so, it is at greater channel numbers) 115 bool operator()(const std::pair<int,int> &line2) const throw();113 bool operator()(const std::pair<int,int> &line2) const; 116 114 }; 117 115 … … 129 127 130 128 struct STLineFinder : protected LFLineListOperations { 131 STLineFinder() throw();132 virtual ~STLineFinder() throw(casa::AipsError);129 STLineFinder(); 130 virtual ~STLineFinder(); 133 131 134 132 // set the parameters controlling algorithm … … 160 158 const casa::Float &in_box_size=0.2, 161 159 const casa::Float &in_noise_box=-1., 162 const casa::Bool &in_median = casa::False) throw();160 const casa::Bool &in_median = casa::False); 163 161 164 162 void setDetailedOptions( const casa::Int &order=9 ) ; 165 163 166 164 // set the scan to work with (in_scan parameter) 167 void setScan(const ScantableWrapper &in_scan) throw(casa::AipsError);165 void setScan(const ScantableWrapper &in_scan); 168 166 169 167 // set spectrum data to work with. this is a method to allow linefinder work … … 182 180 int findLines(const std::vector<bool> &in_mask, 183 181 const std::vector<int> &in_edge = std::vector<int>(), 184 const casa::uInt &whichRow = 0) throw(casa::AipsError);182 const casa::uInt &whichRow = 0); 185 183 186 184 // get the mask to mask out all lines that have been found (default) … … 189 187 // in setScan) or dropped out by the edge parameter (in_edge 190 188 // in setScan) are still excluded regardless on the invert option 191 std::vector<bool> getMask(bool invert=false) const throw(casa::AipsError);189 std::vector<bool> getMask(bool invert=false) const; 192 190 193 191 // get range for all lines found. The same units as used in the scan 194 192 // will be returned (e.g. velocity instead of channels). 195 std::vector<double> getLineRanges() const throw(casa::AipsError);193 std::vector<double> getLineRanges() const; 196 194 // The same as getLineRanges, but channels are always used to specify 197 195 // the range 198 std::vector<int> getLineRangesInChannels() const throw(casa::AipsError);196 std::vector<int> getLineRangesInChannels() const; 199 197 protected: 200 198 // auxiliary function to average adjacent channels and update the mask … … 205 203 // boxsize - a number of adjacent channels to average 206 204 void averageAdjacentChannels(casa::Vector<casa::Bool> &mask2update, 207 const casa::Int &boxsize) 208 throw(casa::AipsError); 205 const casa::Int &boxsize); 209 206 210 207 // auxiliary function to fit and subtract a polynomial from the current … … 212 209 // reducing the spectral resolution if the baseline shape is bad 213 210 void subtractBaseline(const casa::Vector<casa::Bool> &temp_mask, 214 const casa::Int &order) throw(casa::AipsError);211 const casa::Int &order); 215 212 216 213 // an auxiliary function to remove all lines from the list, except the … … 229 226 void keepStrongestOnly(const casa::Vector<casa::Bool> &temp_mask, 230 227 std::list<std::pair<int, int> > &lines2update, 231 int max_box_nchan) 232 throw (casa::AipsError); 228 int max_box_nchan); 233 229 private: 234 230 casa::CountedPtr<Scantable> scan; // the scan to work with
Note: See TracChangeset
for help on using the changeset viewer.