Changeset 2923 for trunk/src/CalibrationManager.cpp
- Timestamp:
- 04/08/14 11:28:23 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/CalibrationManager.cpp
r2922 r2923 37 37 calmode_(""), 38 38 spwlist_(0), 39 spwlist_withrange_() 39 spwlist_withrange_(), 40 do_average_(false) 40 41 { 41 42 applicator_ = new STApplyCal(); … … 155 156 os_ << LogIO::DEBUGGING << ((average) ? "with averaging" : "without averaging") << LogIO::POST; 156 157 spwlist_withrange_ = spwlist; 158 do_average_ = average; 157 159 } 158 160 … … 165 167 spwlist_.clear(); 166 168 spwlist_withrange_ = Record(); 169 do_average_ = false; 167 170 } 168 171 … … 175 178 spwlist_.clear(); 176 179 spwlist_withrange_ = Record(); 180 do_average_ = false; 177 181 } 178 182 … … 192 196 } 193 197 else { 194 uInt nfield = spwlist_withrange_.nfields(); 195 vector<int> spwlist(nfield); 196 for (uInt i = 0; i < nfield; ++i) { 197 spwlist[i] = std::atoi(spwlist_withrange_.name(i).c_str()); 198 } 199 STCalTsys cal(target_, spwlist); 198 STCalTsys cal(target_, spwlist_withrange_, do_average_); 200 199 cal.calibrate(); 201 200 tsystables_.push_back(cal.applytable());
Note: See TracChangeset
for help on using the changeset viewer.