Class for emittance conversion from (r,r') to (x,x') More...
#include <trajectorydiagnostics.hpp>
Public Member Functions | |
EmittanceConv (int n, int m, const std::vector< double > &r, const std::vector< double > &rp, const std::vector< double > &ap, const std::vector< double > &I) | |
Constructor for (x,x') emittance data and statistics from (r,r') data. | |
~EmittanceConv () | |
Destructor for emittance converter. | |
const Histogram2D & | histogram (void) const |
Get a const reference to histogram built. | |
void | free_histogram (void) |
Free emittance histogram. | |
![]() | |
Emittance () | |
Default constructor for emittance statistics. | |
Emittance (const std::vector< double > &x, const std::vector< double > &xp, const std::vector< double > &I) | |
Constructor for emittance statistics from trajectory diagnostic data columns x, xp and current I. | |
Emittance (const std::vector< double > &x, const std::vector< double > &xp) | |
Constructor for emittance statistics from trajectory diagnostic data columns x, xp, assuming even weights. | |
Emittance (size_t xsize, size_t xpsize, const double range[4], const std::vector< double > &I) | |
Constructor for emittance statistics from trajectory diagnostic data in mesh form. | |
double | xave (void) const |
Return average position (center location) of emittance distribution. | |
double | xpave (void) const |
Return average angle (center location) of emittance distribution. | |
double | alpha (void) const |
Return ![]() | |
double | beta (void) const |
Return ![]() | |
double | gamma (void) const |
Return ![]() | |
double | epsilon (void) const |
Return rms emittance. | |
double | angle (void) const |
Return angle of fitted rms ellipse. | |
double | rmajor (void) const |
Return major radius of fitted rms ellipse. | |
double | rminor (void) const |
Return minor radius of fitted rms ellipse. | |
void | debug_print (std::ostream &os) const |
Print debugging information to os. | |
Additional Inherited Members | |
![]() | |
double | _Isum |
double | _xave |
double | _xpave |
double | _x2 |
double | _xp2 |
double | _xxp |
double | _alpha |
double | _beta |
double | _gamma |
double | _epsilon |
double | _angle |
double | _rmajor |
double | _rminor |
Class for emittance conversion from (r,r') to (x,x')
The emittance converted takes the
EmittanceConv::EmittanceConv | ( | int | n, |
int | m, | ||
const std::vector< double > & | r, | ||
const std::vector< double > & | rp, | ||
const std::vector< double > & | ap, | ||
const std::vector< double > & | I | ||
) |
Constructor for (x,x') emittance data and statistics from (r,r') data.
Reads particle diagnostic data arrays for \a r (radius), \a rp (radial angle), \a ap (skew angle) and \a I (current) and builds \a (x,x') data in a grid array of size \a n by \a m. Here the skew angle is \form#68, where
is the velocity to the direction of beam propagation. The conversion is based on rotating each trajectory diagnostic points around the axis in 100 steps (to be made adjustable?).
The emittance statistics is built using original data and not the gridded data for maximized precision.
EmittanceConv::~EmittanceConv | ( | ) |
Destructor for emittance converter.
|
inline |
Free emittance histogram.
|
inline |
Get a const reference to histogram built.