13 chordLength_m(right.chordLength_m),
14 angle_m(right.angle_m),
15 entranceAngle_m(right.entranceAngle_m),
16 fieldmap_m(right.fieldmap_m),
18 designEnergy_m(right.designEnergy_m),
19 designEnergyChangeable_m(true),
20 refTrajMap_m(right.refTrajMap_m),
21 fieldAmplitudeX_m(right.fieldAmplitudeX_m),
22 fieldAmplitudeY_m(right.fieldAmplitudeY_m),
23 fieldAmplitude_m(right.fieldAmplitude_m),
24 fileName_m(right.fileName_m)
35 designEnergyChangeable_m(true),
36 fieldAmplitudeX_m(0.0),
37 fieldAmplitudeY_m(0.0),
38 fieldAmplitude_m(0.0),
45 std::vector<Vector_t> designPath(size);
48 for (
unsigned int i = 0; i < size; ++ i) {
50 designPath[i] = currentPosition;
76 return betaGamma * mass / (
Physics::c * radius * charge);
81 return 2.0 *
std::asin(chordLength / (2.0 * radius));
86 return chordLength / (2.0 *
std::sin(angle / 2.0));
Tps< T > sqrt(const Tps< T > &x)
Square root.
constexpr double c
The velocity of light in m/s.
void setFieldAmplitude(double k0, double k0s)
item[EANGLE] Entrance edge angle(radians).\item[ROTATION] Rotation of the magnet about its central axis(radians
PETE_TUTree< FnAbs, typename T::PETE_Expr_t > abs(const PETE_Expr< T > &l)
double calcGamma() const
Calculate gamma from design energy.
double calcBetaGamma() const
Calculate beta*gamma from design energy.
double calcBendAngle(double chordLength, double radius) const
Calculate bend angle from chord length and design radius.
PartBunchBase< double, 3 > * RefPartBunch_m
double getQ() const
Access to reference data.
double calcDesignRadius(double fieldAmplitude) const
Calculate design radius from design energy and field amplitude.
std::vector< Vector_t > getDesignPath() const
double designEnergy_m
Bend design energy (eV).
PETE_TUTree< FnArcSin, typename T::PETE_Expr_t > asin(const PETE_Expr< T > &l)
Interface for a single beam element.
Tps< T > pow(const Tps< T > &x, int y)
Integer power.
std::vector< Vector_t > refTrajMap_m
Map of reference particle trajectory.
Tps< T > sin(const Tps< T > &x)
Sine.
double calcFieldAmplitude(double radius) const
Calculate field amplitude from design energy and radius.