OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
Interface for basic beam line object. More...
#include <ElementBase.h>
Public Types | |
enum | ApertureType { RECTANGULAR, ELLIPTICAL, CONIC_RECTANGULAR, CONIC_ELLIPTICAL } |
enum | ElementType { ALIGNWRAPPER, BEAMBEAM, BEAMBEAM3D, BEAMLINE, BEAMSTRIPPING, CCOLLIMATOR, CORRECTOR, CORRECTORWRAPPER, CYCLOTRON, CYCLOTRONWRAPPER, CYCLOTRONVALLEY, DEGRADER, DIAGNOSTIC, DRIFT, FLEXIBLECOLLIMATOR, INTEGRATOR, LAMBERTSON, MARKER, MONITOR, MPSPLITINTEGRATOR, MULTIPOLE, MULTIPOLET, MULTIPOLEWRAPPER, OFFSET, PARALLELPLATE, PATCH, PROBE, RBEND, RBEND3D, RBENDWRAPPER, RFCAVITY, RFQUADRUPOLE, RING, SBEND3D, SBEND, SBENDWRAPPER, SEPARATOR, SEPTUM, SOLENOID, SOURCE, STRIPPER, TRAVELINGWAVE, VARIABLERFCAVITY, ANY } |
Public Member Functions | |
ElementBase (const std::string &name) | |
Constructor with given name. More... | |
ElementBase () | |
ElementBase (const ElementBase &) | |
virtual | ~ElementBase () |
virtual const std::string & | getName () const |
Get element name. More... | |
virtual void | setName (const std::string &name) |
Set element name. More... | |
virtual ElementType | getType () const =0 |
Get element type std::string. More... | |
std::string | getTypeString () const |
virtual BGeometryBase & | getGeometry ()=0 |
Get geometry. More... | |
virtual const BGeometryBase & | getGeometry () const =0 |
Get geometry. More... | |
virtual double | getArcLength () const |
Get arc length. More... | |
virtual double | getElementLength () const |
Get design length. More... | |
virtual void | setElementLength (double length) |
Set design length. More... | |
virtual void | getElementDimensions (double &begin, double &end) const |
virtual double | getOrigin () const |
Get origin position. More... | |
virtual double | getEntrance () const |
Get entrance position. More... | |
virtual double | getExit () const |
Get exit position. More... | |
virtual Euclid3D | getTransform (double fromS, double toS) const |
Get transform. More... | |
virtual Euclid3D | getTransform (double s) const |
Get transform. More... | |
virtual Euclid3D | getTotalTransform () const |
Get transform. More... | |
virtual Euclid3D | getEntranceFrame () const |
Get transform. More... | |
virtual Euclid3D | getExitFrame () const |
Get transform. More... | |
virtual Euclid3D | getEntrancePatch () const |
Get patch. More... | |
virtual Euclid3D | getExitPatch () const |
Get patch. More... | |
virtual double | getAttribute (const std::string &aKey) const |
Get attribute value. More... | |
virtual bool | hasAttribute (const std::string &aKey) const |
Test for existence of an attribute. More... | |
virtual void | removeAttribute (const std::string &aKey) |
Remove an existing attribute. More... | |
virtual void | setAttribute (const std::string &aKey, double val) |
Set value of an attribute. More... | |
virtual Channel * | getChannel (const std::string &aKey, bool create=false) |
Construct a read/write channel. More... | |
virtual const ConstChannel * | getConstChannel (const std::string &aKey) const |
Construct a read-only channel. More... | |
virtual ElementImage * | getImage () const |
Construct an image. More... | |
virtual void | accept (BeamlineVisitor &visitor) const =0 |
Apply visitor. More... | |
virtual ElementBase * | clone () const =0 |
Return clone. More... | |
virtual ElementBase * | copyStructure () |
Make a structural copy. More... | |
bool | isSharable () const |
Test if the element can be shared. More... | |
virtual void | makeSharable () |
Set sharable flag. More... | |
virtual ElementBase * | makeAlignWrapper () |
Allow misalignment. More... | |
virtual ElementBase * | makeFieldWrapper () |
Allow field errors. More... | |
virtual ElementBase * | makeWrappers () |
Allow errors. More... | |
virtual ElementBase * | removeAlignWrapper () |
Remove align wrapper. More... | |
virtual const ElementBase * | removeAlignWrapper () const |
Remove align wrapper. More... | |
virtual ElementBase * | removeFieldWrapper () |
Remove field wrapper. More... | |
virtual const ElementBase * | removeFieldWrapper () const |
Remove field wrapper. More... | |
virtual ElementBase * | removeWrappers () |
Return the design element. More... | |
virtual const ElementBase * | removeWrappers () const |
Return the design element. More... | |
bool | update (const AttributeSet &) |
Update element. More... | |
virtual void | setBoundaryGeometry (BoundaryGeometry *geo) |
virtual BoundaryGeometry * | getBoundaryGeometry () const |
return the attached boundary geometrt object if there is any More... | |
virtual bool | hasBoundaryGeometry () const |
virtual void | setWake (WakeFunction *wf) |
attach a wake field to the element More... | |
virtual WakeFunction * | getWake () const |
return the attached wake object if there is any More... | |
virtual bool | hasWake () const |
virtual void | setParticleMatterInteraction (ParticleMatterInteractionHandler *spys) |
virtual ParticleMatterInteractionHandler * | getParticleMatterInteraction () const |
virtual bool | hasParticleMatterInteraction () const |
ElemType | getElType () const |
returns element type as enumeration needed in the envelope tracker More... | |
void | setElType (ElemType elt) |
set the element type as enumeration needed in the envelope tracker More... | |
void | setCSTrafoGlobal2Local (const CoordinateSystemTrafo &ori) |
CoordinateSystemTrafo | getCSTrafoGlobal2Local () const |
void | releasePosition () |
void | fixPosition () |
bool | isPositioned () const |
virtual CoordinateSystemTrafo | getEdgeToBegin () const |
virtual CoordinateSystemTrafo | getEdgeToEnd () const |
void | setAperture (const ApertureType &type, const std::vector< double > &args) |
std::pair < ElementBase::ApertureType, std::vector< double > > | getAperture () const |
virtual bool | isInside (const Vector_t &r) const |
void | setMisalignment (double x, double y, double s) |
void | setMisalignment (const CoordinateSystemTrafo &cst) |
void | getMisalignment (double &x, double &y, double &s) const |
CoordinateSystemTrafo | getMisalignment () const |
void | setActionRange (const std::queue< std::pair< double, double > > &range) |
void | setCurrentSCoordinate (double s) |
void | setRotationAboutZ (double rotation) |
Set rotation about z axis in bend frame. More... | |
double | getRotationAboutZ () const |
void | setElementPosition (double elemedge) |
Access to ELEMEDGE attribute. More... | |
double | getElementPosition () const |
bool | isElementPositionSet () const |
![]() | |
int | addReference () const |
Increment reference count. More... | |
int | removeReference () const |
Decrement the reference count. More... | |
bool | isShared () const |
Test for sharing. More... | |
Static Public Member Functions | |
static std::string | getTypeString (ElementType type) |
Protected Member Functions | |
bool | isInsideTransverse (const Vector_t &r, double f=1) const |
![]() | |
RCObject () | |
Default constructor. More... | |
RCObject (const RCObject &) | |
Copy constructor. More... | |
virtual | ~RCObject ()=0 |
RCObject & | operator= (const RCObject &right) |
Protected Attributes | |
bool | shareFlag |
CoordinateSystemTrafo | csTrafoGlobal2Local_m |
CoordinateSystemTrafo | misalignment_m |
std::pair< ApertureType, std::vector< double > > | aperture_m |
double | elementEdge_m |
double | rotationZAxis_m |
Private Member Functions | |
void | operator= (const ElementBase &) |
Private Attributes | |
std::string | elementID |
AttributeSet | userAttribs |
WakeFunction * | wake_m |
BoundaryGeometry * | bgeometry_m |
ParticleMatterInteractionHandler * | parmatint_m |
ElemType | elType_m |
bool | positionIsFixed |
std::queue< std::pair< double, double > > | actionRange_m |
double | elementPosition_m |
ELEMEDGE attribute. More... | |
bool | elemedgeSet_m |
Interface for basic beam line object.
Definition at line 128 of file ElementBase.h.
Enumerator | |
---|---|
RECTANGULAR | |
ELLIPTICAL | |
CONIC_RECTANGULAR | |
CONIC_ELLIPTICAL |
Definition at line 145 of file ElementBase.h.
Definition at line 151 of file ElementBase.h.
|
explicit |
Constructor with given name.
Definition at line 71 of file ElementBase.cpp.
ElementBase::ElementBase | ( | ) |
Definition at line 39 of file ElementBase.cpp.
ElementBase::ElementBase | ( | const ElementBase & | right | ) |
Definition at line 44 of file ElementBase.cpp.
References bgeometry_m, parmatint_m, ParticleMatterInteractionHandler::updateElement(), and BoundaryGeometry::updateElement().
|
virtual |
Definition at line 90 of file ElementBase.cpp.
|
pure virtual |
Apply visitor.
Implemented in Offset, Ring, MultipoleT, ScalingFFAMagnet, SBend3D, VerticalFFAMagnet, Cyclotron, MultipoleTCurvedVarRadius, MultipoleTCurvedConstRadius, MultipoleTStraight, RBend, SBend, VariableRFCavityFringeField, BeamStripping, Monitor, VariableRFCavity, RBend3D, Bend2D, Degrader, Corrector, Multipole, TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, TBeamline< Member >, MapIntegrator, TrackIntegrator, CorrectorWrapper, CyclotronWrapper, RBendWrapper, SBendWrapper, RFCavity, TravelingWave, BeamBeam, CyclotronValley, ParallelPlate, MultipoleWrapper, Solenoid, AlignWrapper, Patch, Drift, Lambertson, Separator, Diagnostic, Marker, RFQuadrupole, FlexibleCollimator, Probe, CCollimator, Source, Septum, and Stripper.
Referenced by ElmPtr::accept(), DefaultVisitor::execute(), ParallelCyclotronTracker::execute(), ParallelSliceTracker::prepareSections(), ThickTracker::prepareSections(), ParallelTTracker::prepareSections(), IdealMapper::visitAlignWrapper(), Tracker::visitAlignWrapper(), Mapper::visitAlignWrapper(), OrbitTracker::visitAlignWrapper(), LinearMapper::visitAlignWrapper(), TransportMapper::visitAlignWrapper(), DefaultVisitor::visitAlignWrapper(), SpecificElementVisitor< ELEM >::visitAlignWrapper(), DefaultVisitor::visitFlaggedElmPtr(), SpecificElementVisitor< ELEM >::visitFlaggedElmPtr(), DefaultVisitor::visitIntegrator(), DefaultVisitor::visitMapIntegrator(), and DefaultVisitor::visitTrackIntegrator().
|
pure virtual |
Return clone.
Implemented in Ring, Offset, MultipoleT, MultipoleTCurvedVarRadius, MultipoleTCurvedConstRadius, MultipoleTStraight, SingleMultipole< order >, VariableRFCavityFringeField, MPSplitIntegrator, VariableRFCavity, SBend3D, TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, TBeamline< Member >, BeamBeamRep, MapIntegrator, TrackIntegrator, CorrectorWrapper, CyclotronWrapper, RBendWrapper, SBendWrapper, MultipoleWrapper, RBend3D, ScalingFFAMagnet, AlignWrapper, RBendRep, SBendRep, CorrectorRep, PatchRep, CCollimatorRep, CyclotronRep, CyclotronValleyRep, DegraderRep, DriftRep, FlexibleCollimatorRep, MarkerRep, MonitorRep, ParallelPlateRep, RFCavityRep, SeparatorRep, SolenoidRep, SourceRep, TravelingWaveRep, MultipoleRep, ProbeRep, SeptumRep, StripperRep, XCorrectorRep, XMonitorRep, YCorrectorRep, YMonitorRep, BeamStrippingRep, and VerticalFFAMagnet.
Referenced by Ring::appendElement(), MultipoleWrapper::clone(), CorrectorWrapper::clone(), CyclotronWrapper::clone(), RBendWrapper::clone(), SBendWrapper::clone(), Sequence::copy(), copyStructure(), ElementFactory::makeElement(), RingSection::operator=(), ParallelCyclotronTracker::ParallelCyclotronTracker(), ParallelCyclotronTracker::visitBeamStripping(), ParallelCyclotronTracker::visitCCollimator(), ParallelCyclotronTracker::visitCorrector(), ParallelCyclotronTracker::visitCyclotron(), ParallelCyclotronTracker::visitDegrader(), ParallelCyclotronTracker::visitDiagnostic(), ParallelCyclotronTracker::visitDrift(), ParallelCyclotronTracker::visitLambertson(), ParallelCyclotronTracker::visitMarker(), ParallelCyclotronTracker::visitMonitor(), ParallelCyclotronTracker::visitMultipole(), ParallelCyclotronTracker::visitProbe(), ParallelCyclotronTracker::visitRBend(), ParallelCyclotronTracker::visitRFCavity(), ParallelCyclotronTracker::visitRFQuadrupole(), ParallelCyclotronTracker::visitSBend(), ParallelCyclotronTracker::visitSeparator(), ParallelCyclotronTracker::visitSeptum(), ParallelCyclotronTracker::visitSolenoid(), and ParallelCyclotronTracker::visitStripper().
|
virtual |
Make a structural copy.
Reimplemented in TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, TBeamline< Member >, CorrectorWrapper, CyclotronWrapper, RBendWrapper, SBendWrapper, MultipoleWrapper, and AlignWrapper.
Definition at line 248 of file ElementBase.cpp.
References clone(), and isSharable().
Referenced by Sequence::copy(), AlignWrapper::copyStructure(), MultipoleWrapper::copyStructure(), CorrectorWrapper::copyStructure(), RBendWrapper::copyStructure(), CyclotronWrapper::copyStructure(), SBendWrapper::copyStructure(), Edit::install(), Line::parse(), SequenceParser::parseMember(), and Replacer::visitFlaggedElmPtr().
|
inline |
Definition at line 677 of file ElementBase.h.
References positionIsFixed.
Referenced by OpalSBend::update(), OpalRBend::update(), OpalRBend3D::update(), and OpalElement::update().
|
inline |
Definition at line 632 of file ElementBase.h.
References aperture_m.
Referenced by MeshGenerator::add(), and Offset::operator=().
|
inlinevirtual |
Get arc length.
Reimplemented in TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, TBeamline< Member >, and MarkerRep.
Definition at line 507 of file ElementBase.h.
References BGeometryBase::getArcLength(), and getGeometry().
Referenced by BeamlineGeometry::getArcLength(), and TBeamline< T >::getTransform().
|
virtual |
Get attribute value.
Definition at line 107 of file ElementBase.cpp.
References getConstChannel().
|
inlinevirtual |
return the attached boundary geometrt object if there is any
Definition at line 571 of file ElementBase.h.
References bgeometry_m.
|
virtual |
Construct a read/write channel.
Reimplemented in SingleMultipole< order >, BeamBeamRep, RBendRep, SBendRep, CorrectorRep, PatchRep, CCollimatorRep, CyclotronRep, CyclotronValleyRep, DegraderRep, DriftRep, FlexibleCollimatorRep, MonitorRep, ParallelPlateRep, RFCavityRep, SeparatorRep, SolenoidRep, SourceRep, TravelingWaveRep, MultipoleRep, ProbeRep, SeptumRep, StripperRep, XCorrectorRep, XMonitorRep, YCorrectorRep, YMonitorRep, and BeamStrippingRep.
Definition at line 148 of file ElementBase.cpp.
References AttributeSet::getChannel(), and userAttribs.
Referenced by BeamStrippingRep::getChannel(), ProbeRep::getChannel(), SeptumRep::getChannel(), MultipoleRep::getChannel(), StripperRep::getChannel(), XCorrectorRep::getChannel(), XMonitorRep::getChannel(), YCorrectorRep::getChannel(), YMonitorRep::getChannel(), ParallelPlateRep::getChannel(), CCollimatorRep::getChannel(), CyclotronValleyRep::getChannel(), DegraderRep::getChannel(), RFCavityRep::getChannel(), DriftRep::getChannel(), SeparatorRep::getChannel(), FlexibleCollimatorRep::getChannel(), SolenoidRep::getChannel(), TravelingWaveRep::getChannel(), MonitorRep::getChannel(), CyclotronRep::getChannel(), SourceRep::getChannel(), PatchRep::getChannel(), CorrectorRep::getChannel(), SBendRep::getChannel(), RBendRep::getChannel(), BeamBeamRep::getChannel(), SingleMultipole< order >::getChannel(), getConstChannel(), and setAttribute().
|
virtual |
Construct a read-only channel.
Definition at line 153 of file ElementBase.cpp.
References getChannel().
Referenced by getAttribute(), and hasAttribute().
|
inline |
Definition at line 603 of file ElementBase.h.
References csTrafoGlobal2Local_m.
Referenced by MeshGenerator::add(), ParallelTTracker::computeParticleMatterInteraction(), OpalElement::fillRegisteredAttributes(), OpalSBend::update(), OpalRBend::update(), and OpalRBend3D::update().
|
inlinevirtual |
Reimplemented in RFCavity, TravelingWave, and Solenoid.
Definition at line 607 of file ElementBase.h.
|
inlinevirtual |
Reimplemented in RFCavity, Bend2D, TravelingWave, and Solenoid.
Definition at line 616 of file ElementBase.h.
References getElementLength().
|
inlinevirtual |
Reimplemented in RFCavity, TravelingWave, and Solenoid.
Definition at line 226 of file ElementBase.h.
References getElementLength().
Referenced by MeshGenerator::add().
|
inlinevirtual |
Get design length.
Reimplemented in RFCavity, TravelingWave, Solenoid, TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, TBeamline< Member >, and MarkerRep.
Definition at line 511 of file ElementBase.h.
References BGeometryBase::getElementLength(), and getGeometry().
Referenced by CollimatorPhysics::addBackToBunch(), Source::apply(), Monitor::apply(), Corrector::apply(), Component::apply(), Multipole::apply(), FlatWriter::applyDefault(), MSplit::applyDefault(), Aperture::applyDefault(), Monitor::applyToReferenceParticle(), Component::applyToReferenceParticle(), Multipole::applyToReferenceParticle(), CollimatorPhysics::copyFromBunch(), Survey::fill(), OpalSeparator::fillRegisteredAttributes(), OpalParallelPlate::fillRegisteredAttributes(), OpalElement::fillRegisteredAttributes(), CCollimator::getDimensions(), FlexibleCollimator::getDimensions(), Drift::getDimensions(), Degrader::getDimensions(), Corrector::getDimensions(), Multipole::getDimensions(), getEdgeToEnd(), getElementDimensions(), BeamlineGeometry::getElementLength(), RFCavity::getElementLength(), Source::initialise(), FlexibleCollimator::initialise(), Drift::initialise(), Degrader::initialise(), ParallelPlate::initialise(), BeamStripping::initialise(), Corrector::initialise(), Multipole::initialise(), Degrader::isInMaterial(), Multipole::isInside(), isInside(), FlexibleCollimator::isStopped(), Twiss::put(), CollimatorPhysics::setTimeStepForLeavingParticles(), CorrectionBase::setupTables(), MPSplitIntegrator::trackBunch(), MPSplitIntegrator::trackMap(), MPSplitIntegrator::trackParticle(), ThinMapper::visitCCollimator(), OrbitTracker::visitCCollimator(), ThinTracker::visitCCollimator(), LieMapper::visitCCollimator(), LinearMapper::visitCCollimator(), ThickMapper::visitCCollimator(), TransportMapper::visitCCollimator(), ThinMapper::visitCorrector(), OrbitTracker::visitCorrector(), ThinTracker::visitCorrector(), IdealMapper::visitCorrector(), ParallelCyclotronTracker::visitCorrector(), LieMapper::visitCorrector(), ThickMapper::visitCorrector(), LinearMapper::visitCorrector(), TransportMapper::visitCorrector(), ThinMapper::visitDegrader(), OrbitTracker::visitDegrader(), ThinTracker::visitDegrader(), ParallelCyclotronTracker::visitDegrader(), LieMapper::visitDegrader(), ThickMapper::visitDegrader(), LinearMapper::visitDegrader(), TransportMapper::visitDegrader(), ThinMapper::visitDiagnostic(), OrbitTracker::visitDiagnostic(), ThinTracker::visitDiagnostic(), ParallelCyclotronTracker::visitDiagnostic(), LieMapper::visitDiagnostic(), ThickMapper::visitDiagnostic(), LinearMapper::visitDiagnostic(), TransportMapper::visitDiagnostic(), FlatWriter::visitDrift(), ThinMapper::visitDrift(), OrbitTracker::visitDrift(), ThinTracker::visitDrift(), MakeSequenceNS::SequenceWriter::visitDrift(), ParallelCyclotronTracker::visitDrift(), LieMapper::visitDrift(), ThickMapper::visitDrift(), LinearMapper::visitDrift(), TransportMapper::visitDrift(), ThickTracker::visitDrift(), AttWriter::visitFlaggedElmPtr(), ThinMapper::visitFlexibleCollimator(), OrbitTracker::visitFlexibleCollimator(), ThinTracker::visitFlexibleCollimator(), LieMapper::visitFlexibleCollimator(), ThickMapper::visitFlexibleCollimator(), LinearMapper::visitFlexibleCollimator(), TransportMapper::visitFlexibleCollimator(), ThinMapper::visitLambertson(), OrbitTracker::visitLambertson(), ThinTracker::visitLambertson(), ParallelCyclotronTracker::visitLambertson(), LieMapper::visitLambertson(), ThickMapper::visitLambertson(), LinearMapper::visitLambertson(), TransportMapper::visitLambertson(), FlatWriter::visitMapIntegrator(), ThinMapper::visitMonitor(), OrbitTracker::visitMonitor(), ThinTracker::visitMonitor(), LieMapper::visitMonitor(), ThickMapper::visitMonitor(), LinearMapper::visitMonitor(), TransportMapper::visitMonitor(), ThinMapper::visitMultipole(), OrbitTracker::visitMultipole(), MSplit::visitMultipole(), ThinTracker::visitMultipole(), ParallelCyclotronTracker::visitMultipole(), Aperture::visitMultipole(), LieMapper::visitMultipole(), ThickMapper::visitMultipole(), LinearMapper::visitMultipole(), TransportMapper::visitMultipole(), ThickTracker::visitMultipole(), ParallelCyclotronTracker::visitRBend(), ThinMapper::visitRFQuadrupole(), OrbitTracker::visitRFQuadrupole(), ThinTracker::visitRFQuadrupole(), ThickMapper::visitRFQuadrupole(), LieMapper::visitRFQuadrupole(), LinearMapper::visitRFQuadrupole(), ParallelCyclotronTracker::visitRFQuadrupole(), TransportMapper::visitRFQuadrupole(), ParallelCyclotronTracker::visitSBend(), ThickTracker::visitSBend(), IdealMapper::visitSeparator(), ThinMapper::visitSeparator(), OrbitTracker::visitSeparator(), ThinTracker::visitSeparator(), ThickMapper::visitSeparator(), LieMapper::visitSeparator(), LinearMapper::visitSeparator(), ParallelCyclotronTracker::visitSeparator(), TransportMapper::visitSeparator(), ThinMapper::visitSeptum(), OrbitTracker::visitSeptum(), ThinTracker::visitSeptum(), ThickMapper::visitSeptum(), LieMapper::visitSeptum(), LinearMapper::visitSeptum(), and TransportMapper::visitSeptum().
|
inline |
Definition at line 715 of file ElementBase.h.
References elemedgeSet_m, elementPosition_m, and getName().
|
inline |
returns element type as enumeration needed in the envelope tracker
Definition at line 587 of file ElementBase.h.
References elType_m.
Referenced by Offset::operator=().
|
inlinevirtual |
Get entrance position.
Reimplemented in TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, and TBeamline< Member >.
Definition at line 523 of file ElementBase.h.
References BGeometryBase::getEntrance(), and getGeometry().
Referenced by BeamlineGeometry::getEntrance().
|
inlinevirtual |
Get transform.
Reimplemented in TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, and TBeamline< Member >.
Definition at line 543 of file ElementBase.h.
References BGeometryBase::getEntranceFrame(), and getGeometry().
Referenced by BeamlineGeometry::getEntranceFrame(), and AlignWrapper::getEntranceTransform().
|
inlinevirtual |
Get patch.
Definition at line 551 of file ElementBase.h.
References BGeometryBase::getEntrancePatch(), and getGeometry().
|
inlinevirtual |
Get exit position.
Reimplemented in TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, and TBeamline< Member >.
Definition at line 527 of file ElementBase.h.
References BGeometryBase::getExit(), and getGeometry().
Referenced by BeamlineGeometry::getExit().
|
inlinevirtual |
Get transform.
Reimplemented in TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, and TBeamline< Member >.
Definition at line 547 of file ElementBase.h.
References BGeometryBase::getExitFrame(), and getGeometry().
Referenced by BeamlineGeometry::getExitFrame(), and AlignWrapper::getExitTransform().
|
inlinevirtual |
Get patch.
Definition at line 555 of file ElementBase.h.
References BGeometryBase::getExitPatch(), and getGeometry().
|
pure virtual |
Get geometry.
Implemented in VariableRFCavity, Ring, Offset, MultipoleT, ScalingFFAMagnet, Multipole, SBend3D, VerticalFFAMagnet, MultipoleTStraight, MultipoleTCurvedVarRadius, MultipoleTCurvedConstRadius, RBend, CyclotronRep, SBend, BeamBeamRep, MPSplitIntegrator, AlignWrapper, CyclotronWrapper, RBendWrapper, SBendWrapper, CorrectorWrapper, MultipoleWrapper, SingleMultipole< order >, TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, TBeamline< Member >, Monitor, Corrector, ProbeRep, SeptumRep, StripperRep, RBendRep, SBendRep, BeamStrippingRep, CyclotronValleyRep, MonitorRep, ParallelPlateRep, PatchRep, RFCavityRep, TravelingWaveRep, CCollimatorRep, DegraderRep, DriftRep, FlexibleCollimatorRep, MultipoleRep, SeparatorRep, SolenoidRep, SourceRep, MarkerRep, CorrectorRep, and RBend3D.
Referenced by Ring::appendElement(), Surveyor::applyDefault(), getArcLength(), getElementLength(), getEntrance(), getEntranceFrame(), getEntrancePatch(), getExit(), getExitFrame(), getExitPatch(), CyclotronWrapper::getGeometry(), AlignWrapper::getGeometry(), MPSplitIntegrator::getGeometry(), getOrigin(), getTotalTransform(), getTransform(), and setElementLength().
|
pure virtual |
Get geometry.
Implemented in VariableRFCavity, Ring, Offset, MultipoleT, ScalingFFAMagnet, Multipole, SBend3D, VerticalFFAMagnet, MultipoleTStraight, MultipoleTCurvedVarRadius, RBend, MultipoleTCurvedConstRadius, CyclotronRep, SBend, BeamBeamRep, MPSplitIntegrator, AlignWrapper, CyclotronWrapper, RBendWrapper, SBendWrapper, CorrectorWrapper, MultipoleWrapper, SingleMultipole< order >, TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, TBeamline< Member >, Monitor, Corrector, ProbeRep, SeptumRep, StripperRep, CyclotronValleyRep, MonitorRep, ParallelPlateRep, RBendRep, RFCavityRep, SBendRep, TravelingWaveRep, BeamStrippingRep, MultipoleRep, PatchRep, CCollimatorRep, DegraderRep, DriftRep, FlexibleCollimatorRep, SeparatorRep, SolenoidRep, SourceRep, MarkerRep, CorrectorRep, and RBend3D.
|
virtual |
Construct an image.
Reimplemented in TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, TBeamline< Member >, SingleMultipole< order >, BeamBeamRep, PatchRep, ProbeRep, SeptumRep, StripperRep, CyclotronValleyRep, MonitorRep, ParallelPlateRep, RBendRep, RFCavityRep, SBendRep, TravelingWaveRep, BeamStrippingRep, MultipoleRep, CCollimatorRep, DegraderRep, DriftRep, FlexibleCollimatorRep, SeparatorRep, SolenoidRep, SourceRep, CorrectorRep, XCorrectorRep, XMonitorRep, YCorrectorRep, and YMonitorRep.
Definition at line 242 of file ElementBase.cpp.
References getName(), getTypeString(), and userAttribs.
Referenced by XCorrectorRep::getImage(), XMonitorRep::getImage(), YCorrectorRep::getImage(), YMonitorRep::getImage(), CorrectorRep::getImage(), CCollimatorRep::getImage(), FlexibleCollimatorRep::getImage(), SeparatorRep::getImage(), SolenoidRep::getImage(), SourceRep::getImage(), DegraderRep::getImage(), DriftRep::getImage(), MultipoleRep::getImage(), BeamStrippingRep::getImage(), TravelingWaveRep::getImage(), SBendRep::getImage(), MonitorRep::getImage(), CyclotronValleyRep::getImage(), ParallelPlateRep::getImage(), RFCavityRep::getImage(), RBendRep::getImage(), ProbeRep::getImage(), SeptumRep::getImage(), StripperRep::getImage(), PatchRep::getImage(), BeamBeamRep::getImage(), and SingleMultipole< order >::getImage().
void ElementBase::getMisalignment | ( | double & | x, |
double & | y, | ||
double & | s | ||
) | const |
|
inline |
Definition at line 667 of file ElementBase.h.
References misalignment_m.
|
virtual |
Get element name.
Definition at line 95 of file ElementBase.cpp.
References elementID.
Referenced by CorrectionBase::addKick(), Ring::appendElement(), Ring::apply(), Cyclotron::apply(), TableTester::applyDefault(), FlatWriter::applyDefault(), MakeSequenceNS::SequenceWriter::applyDefault(), BeamStrippingPhysics::BeamStrippingPhysics(), Aperture::calcul(), Bend2D::calculateRefTrajectory(), ElementFactory::define(), Stripper::doCheck(), Stripper::doFinalise(), CCollimator::doFinalise(), Probe::doGoOffline(), PlaceRep::enter(), EditInstall::execute(), FlexibleCollimator::finalise(), getElementPosition(), getImage(), RFCavity::getMomentaKick(), BeamStrippingPhysics::getName(), CollimatorPhysics::getName(), Bend2D::getOutline(), PluginElement::getOutputFN(), Degrader::getOutputFN(), CavityAutophaser::getPhaseAtMaxEnergy(), Flatten< Member >::handleBeamline(), Selector::handleElement(), Flatten< Member >::handleElement(), Source::initialise(), FlexibleCollimator::initialise(), Solenoid::initialise(), CyclotronValley::initialise(), Degrader::initialise(), RBend3D::initialise(), TravelingWave::initialise(), Monitor::initialise(), Bend2D::initialise(), RFCavity::initialise(), Ring::initialise(), Cyclotron::initialise(), CSRIGFWakeFunction::initialize(), CSRWakeFunction::initialize(), OpalWake::initWakefunction(), Edit::install(), PlaceRep::leave(), CorrectionBase::listCorrectors(), makeAlignWrapper(), CyclotronRep::makeFieldWrapper(), MultipoleRep::makeFieldWrapper(), SBendRep::makeFieldWrapper(), RBendRep::makeFieldWrapper(), CorrectorRep::makeFieldWrapper(), AlignWrapper::makeFieldWrapper(), MultipoleWrapper::MultipoleWrapper(), operator<<(), VariableRFCavity::operator=(), Offset::operator=(), operator==(), Line::parse(), Sequence::print(), CollimatorPhysics::print(), Bend2D::readFieldMap(), Edit::reflect(), Edit::replaceMultiple(), Edit::replaceSingle(), RFCavity::setComponentType(), ElementFactory::storeElement(), Component::trackBunch(), Component::trackMap(), RBend3D::trackRefParticleThrough(), OpalSBend::update(), OpalRBend::update(), OpalRBend3D::update(), Sequence::updateList(), ParallelTTracker::updateRFElement(), Replacer::visitFlaggedElmPtr(), AttWriter::visitFlaggedElmPtr(), FlatWriter::visitMapIntegrator(), ParallelCyclotronTracker::visitProbe(), ParallelCyclotronTracker::visitStripper(), ParallelTTracker::writePhaseSpace(), and AttList::writeTable().
|
inlinevirtual |
Get origin position.
Reimplemented in TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, and TBeamline< Member >.
Definition at line 519 of file ElementBase.h.
References getGeometry(), and BGeometryBase::getOrigin().
Referenced by BeamlineGeometry::getOrigin().
|
inlinevirtual |
Definition at line 579 of file ElementBase.h.
References parmatint_m.
Referenced by Degrader::applyToReferenceParticle(), CCollimator::doInitialise(), FlexibleCollimator::initialise(), and BeamStripping::initialise().
|
inline |
Definition at line 700 of file ElementBase.h.
References rotationZAxis_m.
Referenced by OpalBeamline::compute3DLattice(), and Bend2D::setFieldCalcParam().
|
inlinevirtual |
Get transform.
Reimplemented in TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, and TBeamline< Member >.
Definition at line 535 of file ElementBase.h.
References getGeometry(), and BGeometryBase::getTotalTransform().
Referenced by BeamlineGeometry::getTotalTransform().
|
inlinevirtual |
Get transform.
Reimplemented in TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, and TBeamline< Member >.
Definition at line 531 of file ElementBase.h.
References getGeometry(), and BGeometryBase::getTransform().
Referenced by BeamlineGeometry::getTransform(), and TBeamline< T >::getTransform().
|
inlinevirtual |
Get transform.
Reimplemented in TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, and TBeamline< Member >.
Definition at line 539 of file ElementBase.h.
References getGeometry(), and BGeometryBase::getTransform().
|
pure virtual |
Get element type std::string.
Implemented in RFCavity, RBend, Component, SBend, TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, TBeamline< Member >, Multipole, Cyclotron, RBendWrapper, SBendWrapper, Bend2D, Monitor, AlignWrapper, Corrector, TravelingWave, RBend3D, CyclotronWrapper, MPSplitIntegrator, BeamStripping, CorrectorWrapper, MultipoleWrapper, Degrader, Solenoid, BeamBeam, CyclotronValley, Separator, Patch, ParallelPlate, Drift, Lambertson, Diagnostic, Marker, RFQuadrupole, FlexibleCollimator, Source, Probe, CCollimator, Septum, and Stripper.
Referenced by MeshGenerator::add(), BeamStrippingPhysics::BeamStrippingPhysics(), CollimatorPhysics::CollimatorPhysics(), AlignWrapper::getType(), getTypeString(), CSRIGFWakeFunction::initialize(), and CSRWakeFunction::initialize().
|
inline |
Definition at line 705 of file ElementBase.h.
References getType().
Referenced by ParallelCyclotronTracker::execute(), and getImage().
|
static |
Definition at line 160 of file ElementBase.cpp.
References ALIGNWRAPPER, ANY, BEAMBEAM, BEAMLINE, BEAMSTRIPPING, CCOLLIMATOR, CORRECTOR, CORRECTORWRAPPER, CYCLOTRON, CYCLOTRONVALLEY, CYCLOTRONWRAPPER, DEGRADER, DIAGNOSTIC, DRIFT, INTEGRATOR, LAMBERTSON, MARKER, MONITOR, MULTIPOLE, MULTIPOLEWRAPPER, OFFSET, PARALLELPLATE, PATCH, PROBE, RBEND, RBENDWRAPPER, RFCAVITY, RFQUADRUPOLE, RING, SBEND, SBEND3D, SBENDWRAPPER, SEPARATOR, SEPTUM, SOLENOID, STRIPPER, TRAVELINGWAVE, and VARIABLERFCAVITY.
|
inlinevirtual |
return the attached wake object if there is any
Definition at line 563 of file ElementBase.h.
References wake_m.
|
virtual |
Test for existence of an attribute.
Definition at line 120 of file ElementBase.cpp.
References getConstChannel().
Referenced by ParallelCyclotronTracker::visitSolenoid().
|
inlinevirtual |
Definition at line 575 of file ElementBase.h.
References bgeometry_m.
|
inlinevirtual |
Definition at line 583 of file ElementBase.h.
References parmatint_m.
|
inlinevirtual |
Definition at line 567 of file ElementBase.h.
References wake_m.
|
inline |
Definition at line 724 of file ElementBase.h.
References elemedgeSet_m.
|
inlinevirtual |
Reimplemented in RFCavity, Multipole, Bend2D, TravelingWave, RBend3D, and Solenoid.
Definition at line 638 of file ElementBase.h.
References aperture_m, getElementLength(), and isInsideTransverse().
|
inlineprotected |
Definition at line 645 of file ElementBase.h.
References abs(), aperture_m, CONIC_ELLIPTICAL, CONIC_RECTANGULAR, ELLIPTICAL, pow(), and RECTANGULAR.
Referenced by Corrector::apply(), Component::apply(), Multipole::apply(), Component::applyToReferenceParticle(), Multipole::applyToReferenceParticle(), Solenoid::isInside(), TravelingWave::isInside(), Multipole::isInside(), RFCavity::isInside(), isInside(), and FlexibleCollimator::isStopped().
|
inline |
Definition at line 682 of file ElementBase.h.
References positionIsFixed.
Referenced by OpalSBend::update(), OpalRBend::update(), and OpalRBend3D::update().
|
inline |
Test if the element can be shared.
Definition at line 559 of file ElementBase.h.
References shareFlag.
Referenced by AlignWrapper::copyStructure(), MultipoleWrapper::copyStructure(), CyclotronWrapper::copyStructure(), CorrectorWrapper::copyStructure(), RBendWrapper::copyStructure(), SBendWrapper::copyStructure(), copyStructure(), Edit::installMultiple(), Edit::installSingle(), Edit::moveMultiple(), Edit::moveSingleAbs(), Edit::moveSingleRel(), Edit::removeMultiple(), Edit::removeSingle(), Edit::replaceMultiple(), Edit::replaceSingle(), and Sequence::updateList().
|
virtual |
Allow misalignment.
Reimplemented in AlignWrapper.
Definition at line 262 of file ElementBase.cpp.
References getName(), and setName().
Referenced by Flatten< Member >::handleBeamline(), makeWrappers(), OpalScalingFFAMagnet::OpalScalingFFAMagnet(), OpalVerticalFFAMagnet::OpalVerticalFFAMagnet(), OpalVerticalFFAMagnet::update(), OpalSBend3D::update(), OpalOffset::OpalGlobalCylindricalOffset::update(), OpalOffset::OpalLocalCylindricalOffset::update(), OpalOffset::OpalGlobalCartesianOffset::update(), OpalOffset::OpalLocalCartesianOffset::update(), OpalScalingFFAMagnet::update(), OpalVariableRFCavity::update(), and OpalVariableRFCavityFringeField::update().
|
virtual |
Allow field errors.
Reimplemented in RBendWrapper, SBendWrapper, AlignWrapper, CyclotronWrapper, CorrectorWrapper, MultipoleWrapper, CorrectorRep, RBendRep, SBendRep, MultipoleRep, and CyclotronRep.
Definition at line 269 of file ElementBase.cpp.
Referenced by AlignWrapper::makeFieldWrapper(), and makeWrappers().
|
virtual |
Set sharable flag.
Reimplemented in TBeamline< T >, TBeamline< Row >, TBeamline< A_row >, TBeamline< Member >, CorrectorWrapper, CyclotronWrapper, RBendWrapper, SBendWrapper, MultipoleWrapper, AlignWrapper, and Integrator.
Definition at line 257 of file ElementBase.cpp.
References shareFlag.
Referenced by Integrator::makeSharable(), AlignWrapper::makeSharable(), MultipoleWrapper::makeSharable(), CorrectorWrapper::makeSharable(), SBendWrapper::makeSharable(), CyclotronWrapper::makeSharable(), RBendWrapper::makeSharable(), OpalMarker::OpalMarker(), and Element::setShared().
|
virtual |
Allow errors.
Definition at line 274 of file ElementBase.cpp.
References makeAlignWrapper(), and makeFieldWrapper().
Referenced by OpalMultipoleTStraight::update(), OpalRingDefinition::update(), OpalMultipoleTCurvedConstRadius::update(), OpalMultipoleTCurvedVarRadius::update(), and OpalMultipoleT::update().
|
private |
|
inline |
Definition at line 672 of file ElementBase.h.
References positionIsFixed.
Referenced by OpalSBend::update(), OpalRBend::update(), and OpalRBend3D::update().
|
virtual |
Remove align wrapper.
Reimplemented in AlignWrapper.
Definition at line 279 of file ElementBase.cpp.
Referenced by OpalSBend::fillRegisteredAttributes(), OpalRBend::fillRegisteredAttributes(), OpalHKicker::fillRegisteredAttributes(), OpalOctupole::fillRegisteredAttributes(), OpalMultipole::fillRegisteredAttributes(), OpalSextupole::fillRegisteredAttributes(), OpalQuadrupole::fillRegisteredAttributes(), OpalVKicker::fillRegisteredAttributes(), OpalKicker::fillRegisteredAttributes(), OpalMultipoleTStraight::fillRegisteredAttributes(), OpalMultipoleTCurvedVarRadius::fillRegisteredAttributes(), OpalMultipoleT::fillRegisteredAttributes(), and OpalMultipoleTCurvedConstRadius::fillRegisteredAttributes().
|
virtual |
Remove align wrapper.
Reimplemented in AlignWrapper.
Definition at line 284 of file ElementBase.cpp.
|
virtual |
Remove an existing attribute.
Definition at line 132 of file ElementBase.cpp.
References AttributeSet::removeAttribute(), and userAttribs.
|
virtual |
Remove field wrapper.
Reimplemented in RBendWrapper, SBendWrapper, AlignWrapper, CyclotronWrapper, CorrectorWrapper, and MultipoleWrapper.
Definition at line 289 of file ElementBase.cpp.
Referenced by AlignWrapper::removeFieldWrapper().
|
virtual |
Remove field wrapper.
Reimplemented in RBendWrapper, SBendWrapper, AlignWrapper, CyclotronWrapper, CorrectorWrapper, and MultipoleWrapper.
Definition at line 294 of file ElementBase.cpp.
|
virtual |
Return the design element.
Reimplemented in RBendWrapper, SBendWrapper, AlignWrapper, CyclotronWrapper, CorrectorWrapper, and MultipoleWrapper.
Definition at line 299 of file ElementBase.cpp.
Referenced by BeamStrippingPhysics::BeamStrippingPhysics(), Line::fetchLine(), Sequence::fetchLine(), OpalSeparator::fillRegisteredAttributes(), OpalCyclotronValley::fillRegisteredAttributes(), OpalECollimator::fillRegisteredAttributes(), OpalRCollimator::fillRegisteredAttributes(), OpalSlit::fillRegisteredAttributes(), OpalSolenoid::fillRegisteredAttributes(), OpalWire::fillRegisteredAttributes(), OpalFlexibleCollimator::fillRegisteredAttributes(), OpalParallelPlate::fillRegisteredAttributes(), OpalTravelingWave::fillRegisteredAttributes(), OpalCavity::fillRegisteredAttributes(), Edit::installMultiple(), Edit::installSingle(), CorrectionBase::listCorrectors(), Edit::moveMultiple(), Edit::moveSingleAbs(), Edit::moveSingleRel(), OpalVariableRFCavity::OpalVariableRFCavity(), OpalVariableRFCavityFringeField::OpalVariableRFCavityFringeField(), Edit::removeMultiple(), Edit::removeSingle(), AlignWrapper::removeWrappers(), Edit::replaceMultiple(), Edit::replaceSingle(), CorrectionBase::test(), OpalSource::update(), OpalVMonitor::update(), OpalHMonitor::update(), OpalSBend::update(), OpalMonitor::update(), OpalRBend::update(), OpalBeamStripping::update(), OpalVerticalFFAMagnet::update(), OpalSeparator::update(), OpalCyclotronValley::update(), OpalDegrader::update(), OpalECollimator::update(), OpalRCollimator::update(), OpalSlit::update(), OpalSolenoid::update(), OpalHKicker::update(), OpalWire::update(), OpalFlexibleCollimator::update(), OpalSeptum::update(), OpalPepperPot::update(), OpalProbe::update(), OpalOctupole::update(), OpalSextupole::update(), OpalParallelPlate::update(), OpalMultipole::update(), OpalCCollimator::update(), OpalStripper::update(), OpalRBend3D::update(), OpalQuadrupole::update(), OpalVKicker::update(), OpalSBend3D::update(), OpalKicker::update(), OpalTravelingWave::update(), OpalOffset::OpalLocalCartesianOffset::update(), OpalScalingFFAMagnet::update(), OpalMultipoleTStraight::update(), OpalRingDefinition::update(), OpalVariableRFCavity::update(), OpalCavity::update(), OpalMultipoleTCurvedVarRadius::update(), OpalMultipoleTCurvedConstRadius::update(), OpalMultipoleT::update(), OpalVariableRFCavityFringeField::update(), OpalCyclotron::update(), OpalElement::update(), Sequence::updateList(), RangeSelector::visitFlaggedElmPtr(), and AttWriter::visitFlaggedElmPtr().
|
virtual |
Return the design element.
Reimplemented in RBendWrapper, SBendWrapper, AlignWrapper, CyclotronWrapper, CorrectorWrapper, and MultipoleWrapper.
Definition at line 304 of file ElementBase.cpp.
|
inline |
Definition at line 687 of file ElementBase.h.
References actionRange_m, and elementEdge_m.
|
inline |
Definition at line 625 of file ElementBase.h.
References aperture_m.
Referenced by Component::Component(), Offset::operator=(), OpalSBend::update(), OpalRBend::update(), OpalSlit::update(), OpalRBend3D::update(), and OpalElement::update().
|
virtual |
Set value of an attribute.
Definition at line 137 of file ElementBase.cpp.
References endl(), getChannel(), and Channel::isSettable().
Referenced by update(), and OpalElement::updateUnknown().
|
virtual |
attach a boundary geometry field to the element
Definition at line 321 of file ElementBase.cpp.
References bgeometry_m.
Referenced by OpalDrift::update(), OpalParallelPlate::update(), OpalCavity::update(), and OpalCyclotron::update().
|
inline |
Definition at line 595 of file ElementBase.h.
References csTrafoGlobal2Local_m, and positionIsFixed.
Referenced by OrbitThreader::computeMaximalImplicitDrift(), OpalSBend::update(), OpalRBend::update(), OpalRBend3D::update(), and OpalElement::update().
void ElementBase::setCurrentSCoordinate | ( | double | s | ) |
Definition at line 329 of file ElementBase.cpp.
References actionRange_m, and elementEdge_m.
|
inlinevirtual |
Set design length.
Definition at line 515 of file ElementBase.h.
References getGeometry(), and BGeometryBase::setElementLength().
Referenced by OrbitThreader::computeMaximalImplicitDrift(), SequenceMember::setLength(), OpalSource::update(), OpalHMonitor::update(), OpalVMonitor::update(), OpalInstrument::update(), OpalMonitor::update(), OpalSeparator::update(), OpalDegrader::update(), OpalRCollimator::update(), OpalECollimator::update(), OpalSlit::update(), OpalSolenoid::update(), OpalWire::update(), OpalHKicker::update(), OpalDrift::update(), OpalFlexibleCollimator::update(), OpalSeptum::update(), OpalMultipole::update(), OpalOctupole::update(), OpalParallelPlate::update(), OpalPepperPot::update(), OpalProbe::update(), OpalCCollimator::update(), OpalSextupole::update(), OpalStripper::update(), OpalQuadrupole::update(), OpalVKicker::update(), OpalKicker::update(), OpalTravelingWave::update(), OpalMultipoleTStraight::update(), OpalCavity::update(), OpalMultipoleTCurvedVarRadius::update(), OpalMultipoleT::update(), and OpalMultipoleTCurvedConstRadius::update().
|
inline |
Access to ELEMEDGE attribute.
Definition at line 709 of file ElementBase.h.
References elemedgeSet_m, and elementPosition_m.
Referenced by OpalElement::update().
|
inline |
set the element type as enumeration needed in the envelope tracker
Definition at line 591 of file ElementBase.h.
References elType_m.
Referenced by Bend2D::Bend2D(), BendBase::BendBase(), CyclotronValley::CyclotronValley(), Multipole::Multipole(), Offset::Offset(), Offset::operator=(), ParallelPlate::ParallelPlate(), RBend3D::RBend3D(), RFCavity::RFCavity(), SBend3D::SBend3D(), ScalingFFAMagnet::ScalingFFAMagnet(), Solenoid::Solenoid(), Source::Source(), and VerticalFFAMagnet::VerticalFFAMagnet().
void ElementBase::setMisalignment | ( | double | x, |
double | y, | ||
double | s | ||
) |
Referenced by OpalElement::update().
|
inline |
Definition at line 662 of file ElementBase.h.
References misalignment_m.
|
virtual |
Set element name.
Definition at line 102 of file ElementBase.cpp.
References elementID, and name.
Referenced by Sequence::insertDrifts(), Edit::install(), makeAlignWrapper(), ElementFactory::makeElement(), CyclotronRep::makeFieldWrapper(), MultipoleRep::makeFieldWrapper(), RBendRep::makeFieldWrapper(), SBendRep::makeFieldWrapper(), CorrectorRep::makeFieldWrapper(), AlignWrapper::makeFieldWrapper(), MultipoleWrapper::MultipoleWrapper(), Offset::Offset(), VariableRFCavity::operator=(), and Offset::operator=().
|
virtual |
Definition at line 325 of file ElementBase.cpp.
References parmatint_m.
Referenced by OpalSBend::update(), OpalRBend::update(), OpalBeamStripping::update(), OpalECollimator::update(), OpalRCollimator::update(), OpalSlit::update(), OpalDegrader::update(), OpalDrift::update(), OpalFlexibleCollimator::update(), OpalWire::update(), OpalCCollimator::update(), OpalPepperPot::update(), OpalRBend3D::update(), and OpalQuadrupole::update().
|
inline |
Set rotation about z axis in bend frame.
Definition at line 695 of file ElementBase.h.
References rotationZAxis_m.
Referenced by OpalElement::update().
|
virtual |
attach a wake field to the element
Definition at line 317 of file ElementBase.cpp.
References wake_m.
Referenced by OpalSBend::update(), OpalRBend::update(), OpalDrift::update(), OpalSeptum::update(), OpalProbe::update(), OpalRBend3D::update(), OpalTravelingWave::update(), and OpalCavity::update().
bool ElementBase::update | ( | const AttributeSet & | set | ) |
Update element.
Definition at line 309 of file ElementBase.cpp.
References AttributeSet::begin(), AttributeSet::end(), and setAttribute().
Referenced by ElementFactory::makeElement().
|
private |
Definition at line 499 of file ElementBase.h.
Referenced by setActionRange(), and setCurrentSCoordinate().
|
protected |
Definition at line 469 of file ElementBase.h.
Referenced by getAperture(), Bend2D::getOutline(), Bend2D::getSurfaceMesh(), Bend2D::inMagnetCentralRegion(), Bend2D::inMagnetEntranceRegion(), Bend2D::inMagnetExitRegion(), isInside(), isInsideTransverse(), setAperture(), Bend2D::setFieldCalcParam(), Bend2D::setupBendGeometry(), and Bend2D::setupFringeWidths().
|
private |
Definition at line 488 of file ElementBase.h.
Referenced by ElementBase(), getBoundaryGeometry(), hasBoundaryGeometry(), and setBoundaryGeometry().
|
protected |
Definition at line 466 of file ElementBase.h.
Referenced by Monitor::applyToReferenceParticle(), getCSTrafoGlobal2Local(), and setCSTrafoGlobal2Local().
|
private |
Definition at line 497 of file ElementBase.h.
Referenced by getElementPosition(), isElementPositionSet(), and setElementPosition().
|
protected |
Definition at line 471 of file ElementBase.h.
Referenced by Bend2D::getEffectiveCenter(), Bend2D::getStartElement(), Bend2D::initialise(), Bend2D::print(), setActionRange(), setCurrentSCoordinate(), and Bend2D::setupBendGeometry().
|
private |
Definition at line 481 of file ElementBase.h.
|
private |
ELEMEDGE attribute.
Definition at line 496 of file ElementBase.h.
Referenced by getElementPosition(), and setElementPosition().
|
private |
Definition at line 492 of file ElementBase.h.
Referenced by getElType(), and setElType().
|
protected |
Definition at line 467 of file ElementBase.h.
Referenced by getMisalignment(), and setMisalignment().
|
private |
Definition at line 490 of file ElementBase.h.
Referenced by ElementBase(), getParticleMatterInteraction(), hasParticleMatterInteraction(), and setParticleMatterInteraction().
|
private |
Definition at line 494 of file ElementBase.h.
Referenced by fixPosition(), isPositioned(), releasePosition(), and setCSTrafoGlobal2Local().
|
protected |
Definition at line 473 of file ElementBase.h.
Referenced by Bend2D::calculateRefTrajectory(), Bend2D::findIdealBendParameters(), getRotationAboutZ(), RBend3D::initialise(), Bend2D::print(), and setRotationAboutZ().
|
mutableprotected |
Definition at line 464 of file ElementBase.h.
Referenced by AlignWrapper::AlignWrapper(), Beamline::Beamline(), CorrectorWrapper::CorrectorWrapper(), CyclotronWrapper::CyclotronWrapper(), isSharable(), Integrator::makeSharable(), AlignWrapper::makeSharable(), MultipoleWrapper::makeSharable(), CorrectorWrapper::makeSharable(), RBendWrapper::makeSharable(), CyclotronWrapper::makeSharable(), SBendWrapper::makeSharable(), makeSharable(), MultipoleWrapper::MultipoleWrapper(), RBendWrapper::RBendWrapper(), and SBendWrapper::SBendWrapper().
|
private |
Definition at line 484 of file ElementBase.h.
Referenced by getChannel(), getImage(), and removeAttribute().
|
private |
Definition at line 486 of file ElementBase.h.