void VESPERSBeamline::setupExperimentStatus() { experimentConfiguration_ = new VESPERSExperimentConfiguration(synchronizedDwellTime_, pseudoSampleStage_, (XRFDetector *)vortex1E_, (XRFDetector *)vortex4E_, this); connect(experimentConfiguration_, SIGNAL(beamDumped()), this, SIGNAL(beamDumped())); endstationConfiguration_ = new VESPERSEndstationConfiguration(this); }
void CLSStorageRing::determineBeamAvailability() { bool beamDump = (ringCurrent_->value() < 1.0 || int(srStatus_->value()) == 0); if (beamAvailable_ == beamDump){ beamAvailable_ = !beamDump; emit beamAvaliability(beamAvailable_); if (beamAvailable_) emit beamRestored(); else emit beamDumped(); } }