Exemple #1
0
void VESPERSBeamline::setupExperimentStatus()
{
	experimentConfiguration_ = new VESPERSExperimentConfiguration(synchronizedDwellTime_, pseudoSampleStage_, (XRFDetector *)vortex1E_, (XRFDetector *)vortex4E_, this);
	connect(experimentConfiguration_, SIGNAL(beamDumped()), this, SIGNAL(beamDumped()));

	endstationConfiguration_ = new VESPERSEndstationConfiguration(this);
}
Exemple #2
0
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();
	}
}