java.lang.Object
simpa.acc.api.utils.EllipseBeamSampler
- All Implemented Interfaces:
- BeamSampler
This class can be used to generate the phase space coordinates for the
 particles in a beam such that the particles are distributed on an ellipse.
- 
Constructor SummaryConstructorsConstructorDescriptionThis constructor creates an instance of the EllipseBeamSampler class.
- 
Method SummaryModifier and TypeMethodDescriptionsample(int n) This method can be used to generate the phase space coordinated for the particles in a beam such that the particles are distributed in a ellipse.
- 
Constructor Details- 
EllipseBeamSamplerThis constructor creates an instance of the EllipseBeamSampler class.- Parameters:
- tp- Twiss parameters describing the phase space ellipse.
 
 
- 
- 
Method Details- 
sampleThis method can be used to generate the phase space coordinated for the particles in a beam such that the particles are distributed in a ellipse. The particles are distributed both in the H and V plane on an ellipse with the given emittance. If you want to discard the effect of coupling two ellipse should be generated for tracking. Once the H emittance should be zero, then the V emittance should be zero. The particles are distributed in the longitudinal plane with a normal distribution with the given dpOp (1 sigma). The time delay of the particles is set to zero.- Specified by:
- samplein interface- BeamSampler
- Parameters:
- n- number of particles
- Returns:
- list of phase space coordinates
 
- 
getTwissParameters- Returns:
- The Twiss parameters describing the phase space ellipse.
 
 
-