24#include "BeamlineCore/VacuumRep.h"
25#include "Structure/ParticleMatterInteraction.h"
30 "The \"VACUUM\" element defines the vacuum conditions "
31 "for beam stripping interactions."),
32 parmatint_m(nullptr) {
34 "GAS",
"The composition of residual gas", {
"AIR",
"H2"});
46 "STOP",
"Option whether stop tracking after beam stripping. Default: true",
true);
65 VacuumRep* vac =
dynamic_cast<VacuumRep*
>(
getElement());
75 vac->setElementLength(length);
76 vac->setResidualGas(gas);
77 vac->setPressure(pressure);
78 vac->setPressureMapFN(pmap);
79 vac->setPScale(pscale);
80 vac->setTemperature(temperature);
ElementBase * getElement() const
Return the embedded OPALX element.
void setElement(ElementBase *)
Assign new OPALX element.
std::vector< Attribute > itsAttr
The object attributes.
virtual void updateUnknown(ElementBase *)
Transmit the `‘unknown’' (not known to OPALX) attributes to OPALX.
virtual void update()
Update the embedded OPALX element.
void registerOwnership() const
OpalVacuum()
Exemplar constructor.
ParticleMatterInteraction * parmatint_m
virtual OpalVacuum * clone(const std::string &name)
Make clone.
virtual void update()
Update the embedded OPALX vacuum.
Attribute makeBool(const std::string &name, const std::string &help)
Make logical attribute.
double getReal(const Attribute &attr)
Return real value.
Attribute makePredefinedString(const std::string &name, const std::string &help, const std::initializer_list< std::string > &predefinedStrings)
Make predefined string attribute.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
bool getBool(const Attribute &attr)
Return logical value.
std::string getString(const Attribute &attr)
Get string value.
Attribute makeString(const std::string &name, const std::string &help)
Make string attribute.