|
phaser-server
0.0.5
|
Get BEM energy estimate for a region. More...
#include <energyMonitor.h>
Public Member Functions | |
| EnergyMonitor (unsigned, Type::Region) | |
| Construct an instance. More... | |
| double | GetRegionEnergy (PhaseInterface &) |
| Measure a region's energy. More... | |
Get BEM energy estimate for a region.
Monitor EPICS for BEM updates. Gather a set of values and average them for an accurate estimate.
| EnergyMonitor::EnergyMonitor | ( | unsigned | samples, |
| Type::Region | region | ||
| ) |
Construct an instance.
Connect to EPICS BEM channels for the region associated with the RF cavity.
| samples | - Number of BEM samples to collect |
| region | - Accelerator dispersive region used for measurement |
| double EnergyMonitor::GetRegionEnergy | ( | PhaseInterface & | pi | ) |
Measure a region's energy.
The Beam Energy Monitor (BEM) EPICS updates are gathered and averaged to ascertain an accurate region energy estimate. This function throws any time energy estimates are unavailable or interrupted.