Public Member Functions
EmittanceConv Class Reference

Class for emittance conversion from (r,r') to (x,x') More...

#include <trajectorydiagnostics.hpp>

Inheritance diagram for EmittanceConv:
Emittance

List of all members.

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 Histogram2Dhistogram (void) const
 Get a const reference to histogram built.
void free_histogram (void)
 Free emittance histogram.

Detailed Description

Class for emittance conversion from (r,r') to (x,x')

The emittance converted takes the


Constructor & Destructor Documentation

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 r (radius), rp (radial angle), ap (skew angle) and I (current) and builds (x,x') data in a grid array of size n by m. Here the skew angle is $ \frac{r\omega}{v_z} $, where $ v_z $ 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.

Destructor for emittance converter.


Member Function Documentation

void EmittanceConv::free_histogram ( void  ) [inline]

Free emittance histogram.

const Histogram2D& EmittanceConv::histogram ( void  ) const [inline]

Get a const reference to histogram built.


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