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