55 static Beam *
find(
const std::string &name);
108 void print(std::ostream &os)
const;
117 Beam(
const std::string &name,
Beam *parent);
132 #endif // OPAL_Beam_HH
void setEX(double)
Store emittance for mode 1.
std::ostream & operator<<(std::ostream &os, const Attribute &attr)
virtual bool canReplaceBy(Object *object)
Test if replacement is allowed.
void setET(double)
Store emittance for mode 3.
std::string getParticleName() const
Return Particle's name.
The base class for all OPAL definitions.
double getMass() const
Return Particle's rest mass in GeV.
size_t getNumberOfSlices()
Return the number of slices.
double getCurrent() const
Return the beam current in A.
virtual void execute()
Check the BEAM data.
double getET() const
Return emittance for mode 3.
double getEY() const
Return emittance for mode 2.
virtual void update()
Update the BEAM data.
static const double energy_scale
size_t getNumberOfParticles()
Return the number of (macro)particles.
double getCharge() const
Return the charge number in elementary charge.
void print(std::ostream &os) const
Print the object.
static Beam * find(const std::string &name)
Find named BEAM.
double getFrequency() const
Return the beam frequency in MHz.
double getEX() const
Return emittance for mode 1.
virtual Beam * clone(const std::string &name)
Make clone.
void operator=(const Beam &)
const PartData & getReference() const
Return the embedded CLASSIC PartData.
The base class for all OPAL objects.
void setEY(double)
Store emittance for mode 2.
Beam()
Exemplar constructor.