void VESPERSEnergyDacqScanController::cleanup() { buildCleanupAction(true); connect(cleanupAction_, SIGNAL(succeeded()), this, SLOT(onCleanupFinished())); connect(cleanupAction_, SIGNAL(failed(int)), this, SLOT(onCleanupFinished())); cleanupAction_->start(); }
AMAction3* VESPERSEnergyScanActionController::createCleanupActions() { AMListAction3 *cleanupAction = qobject_cast<AMListAction3 *>(buildCleanupAction()); cleanupAction->addSubAction(VESPERSBeamline::vespers()->mono()->createEaAction(originalEnergy_)); return cleanupAction;}