82 void print(std::ostream& os)
const;
std::ostream & operator<<(std::ostream &os, const Beam &b)
The base class for all OPAL definitions.
The base class for all OPAL objects.
std::string getParticleName() const
Return Particle's name.
double getCurrent() const
Return the beam current in A.
void operator=(const Beam &)
double getChargePerParticle() const
Charge per macro particle in C.
virtual void execute()
Check the BEAM data.
static Beam * find(const std::string &name)
Find named BEAM.
double getCharge() const
Return the charge number in elementary charge.
virtual Beam * clone(const std::string &name)
Make clone.
double getFrequency() const
Return the beam frequency in MHz.
size_t getNumberOfParticles() const
Return the number of (macro)particles.
double getMassPerParticle() const
Mass per macro particle in GeV/c^2.
double getMass() const
Return Particle's rest mass in GeV.
virtual void update()
Update the BEAM data.
void print(std::ostream &os) const
Print the object.
Beam()
Exemplar constructor.
const PartData & getReference() const
Return the embedded CLASSIC PartData.
virtual bool canReplaceBy(Object *object)
Test if replacement is allowed.
static const double energy_scale