33 "The \"REAL CONSTANT\" statement defines a global "
35 "\tREAL CONSTANT <name> = <real-expression>;\n") {
#define OPAL_VERSION_PATCH
#define OPAL_VERSION_MINOR
#define OPAL_VERSION_MAJOR
Inform & endl(Inform &inf)
double getReal(const Attribute &attr)
Return real value.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
void setReal(Attribute &attr, double val)
Set real value.
constexpr double m_xe
The xenon rest mass in GeV.
constexpr double m_alpha
The alpha particle rest mass in GeV.
constexpr double m_u
The uranium rest mass in GeV.
constexpr double amu
The atomic mass unit energy equivalent in GeV.
constexpr double two_pi
The value of.
constexpr double deg2rad
The conversion factor from degrees to radians.
constexpr double m_p
The proton rest mass in GeV.
constexpr double m_h2p
The H2+ rest mass in GeV.
constexpr double m_e
The electron rest mass in GeV.
constexpr double m_hm
The H- rest mass in GeV.
constexpr double m_mu
The muon rest mass in GeV.
constexpr double e
The value of.
constexpr double c
The velocity of light in m/s.
constexpr double m_c
The carbon rest mass in GeV.
constexpr double m_d
The deuteron rest mass in GeV.
constexpr double pi
The value of.
constexpr double rad2deg
The conversion factor from radians to degrees.
The base class for all OPAL objects.
void registerOwnership(const AttributeHandler::OwnerType &itsClass) const
const std::string & getOpalName() const
Return object name.
std::vector< Attribute > itsAttr
The object attributes.
bool builtin
Built-in flag.
The global OPAL structure.
void create(Object *newObject)
Create new object.
static OpalData * getInstance()
The base class for all OPAL value definitions.
Attribute & value()
Return the attribute representing the value of the definition.
virtual void print(std::ostream &) const
Print the constant.
RealConstant()
Exemplar constructor.
virtual double getReal() const
Return value.
virtual void printValue(std::ostream &os) const
Print its value.
virtual bool canReplaceBy(Object *object)
Test if object can be replaced.
virtual RealConstant * clone(const std::string &name)
Make clone.