34 "The \"REAL CONSTANT\" statement defines a global "
36 "\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-129 (fully-stripped) rest mass in GeV.
constexpr double m_alpha
The alpha particle rest mass in GeV.
constexpr double m_u
The uranium-238 (fully-stripped) rest mass in GeV.
constexpr double amu
The atomic mass unit energy equivalent in GeV.
constexpr double two_pi
The value of.
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-12 (fully-stripped) rest mass in GeV.
constexpr double m_d
The deuteron rest mass in GeV.
constexpr double pi
The value of.
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.