void Calibration::SignalPath::set_min_step (Scalar* function, double step) { Steps* steps = dynamic_cast<Steps*> (function); if (!steps) return; if (!steps->get_nstep()) { #ifdef _DEBUG cerr << "Calibration::SignalPath::set_min_step add step[0]=" << step << endl; #endif steps->add_step( step ); } else if (step < steps->get_step(0)) { #ifdef _DEBUG cerr << "Calibration::SignalPath::set_min_step set step[0]=" << step << endl; #endif if (step_after_cal) steps->add_step( step); else steps->set_step( 0, step ); } }
void Calibration::SignalPath::add_step (Scalar* function, double step) { Steps* steps = dynamic_cast<Steps*> (function); if (steps) { #ifdef _DEBUG cerr << "Calibration::SignalPath::add_step step=" << step << endl; #endif steps->add_step (step); } }
void Calibration::SignalPath::add_step (Scalar* function, const MJD& mjd) { Steps* steps = dynamic_cast<Steps*> (function); if (!steps) throw Error (InvalidState, "Calibration::SignalPath::add_step", "function is not a Steps"); MJD zero; if (convert.get_reference_epoch() == zero) convert.set_reference_epoch ( mjd ); time.set_value (mjd); double step = convert.get_value(); steps->add_step (step); }