phaser-server  0.0.7
Public Member Functions | List of all members
CavityMeter Class Reference

A class to measure RF cavity phase error. More...

#include <cavityMeter.h>

Public Member Functions

 CavityMeter (RfCavity &, double, unsigned, double, std::ofstream &)
 Create an instance. More...
 
double Measure (PhaseInterface &)
 Measure region energy via BEM and optionally estimate phase error. More...
 

Detailed Description

A class to measure RF cavity phase error.

Phase error is measured by 'kicking' the cavity phase setting and measuring the impact in energy produced by the cavity.

Constructor & Destructor Documentation

◆ CavityMeter()

CavityMeter::CavityMeter ( RfCavity cavity,
double  maxPhaseErr,
unsigned  samples,
double  maxDpp,
std::ofstream &  out 
)

Create an instance.

Parameters
cavity- RF cavity to be 'kicked'.
maxPhaseErr- Largest expected phase error (degrees).
samples- Number of BEM region energy samples to take.
maxDpp- Maximum tolerable momentum error.
out- Calculation data output file.

Member Function Documentation

◆ Measure()

double CavityMeter::Measure ( PhaseInterface pi)

Measure region energy via BEM and optionally estimate phase error.

The passed argument 'kickIt' will be false when the user of the software only want to to testing of this software without being invasive to the accelerator beam energy. This works in conjunction with the RfCavity object, which knows to ignore phase kick requests.


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