phaser-server  0.0.4
Public Member Functions | List of all members
EnergyMonitor Class Reference

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...
 

Detailed Description

Get BEM energy estimate for a region.

Monitor EPICS for BEM updates. Gather a set of values and average them for an accurate estimate.

Constructor & Destructor Documentation

◆ EnergyMonitor()

EnergyMonitor::EnergyMonitor ( unsigned  samples,
Type::Region  region 
)

Construct an instance.

Connect to EPICS BEM channels for the region associated with the RF cavity.

Parameters
samples- Number of BEM samples to collect
region- Accelerator dispersive region used for measurement

Member Function Documentation

◆ GetRegionEnergy()

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.


The documentation for this class was generated from the following files: