OPAL (Object Oriented Parallel Accelerator Library)  2024.1
OPAL
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ElementBase Class Referenceabstract

#include <ElementBase.h>

Inheritance diagram for ElementBase:
Inheritance graph
[legend]
Collaboration diagram for ElementBase:
Collaboration graph
[legend]

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 BGeometryBasegetGeometry ()=0
 Get geometry. More...
 
virtual const BGeometryBasegetGeometry () 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 ChannelgetChannel (const std::string &aKey, bool create=false)
 Construct a read/write channel. More...
 
virtual const ConstChannelgetConstChannel (const std::string &aKey) const
 Construct a read-only channel. More...
 
virtual void accept (BeamlineVisitor &visitor) const =0
 Apply visitor. More...
 
virtual ElementBaseclone () const =0
 Return clone. More...
 
virtual ElementBasecopyStructure ()
 Make a structural copy. More...
 
bool isSharable () const
 Test if the element can be shared. More...
 
virtual void makeSharable ()
 Set sharable flag. More...
 
bool update (const AttributeSet &)
 Update element. More...
 
virtual void setBoundaryGeometry (BoundaryGeometry *geo)
 
virtual BoundaryGeometrygetBoundaryGeometry () 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 WakeFunctiongetWake () 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
 
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< ApertureType,
std::vector< double > > 
getAperture () const
 
virtual bool isInside (const Vector_t &r) const
 
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
 
virtual BoundingBox getBoundingBoxInLabCoords () const
 
virtual int getRequiredNumberOfTimeSteps () const
 
void setOutputFN (std::string fn)
 Set output filename. More...
 
std::string getOutputFN () const
 Get output filename. More...
 
void setFlagDeleteOnTransverseExit (bool=true)
 
bool getFlagDeleteOnTransverseExit () const
 
void setElementPosition (double elemedge)
 Access to ELEMEDGE attribute. More...
 
double getElementPosition () const
 
bool isElementPositionSet () const
 
- Public Member Functions inherited from RCObject
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) const
 
- Protected Member Functions inherited from RCObject
 RCObject ()
 Default constructor. More...
 
 RCObject (const RCObject &)
 Copy constructor. More...
 
virtual ~RCObject ()=0
 
RCObjectoperator= (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
 
WakeFunctionwake_m
 
BoundaryGeometrybgeometry_m
 
ParticleMatterInteractionHandlerparmatint_m
 
bool positionIsFixed
 
std::queue< std::pair< double,
double > > 
actionRange_m
 
std::string outputfn_m
 
bool deleteOnTransverseExit_m = true
 
double elementPosition_m
 ELEMEDGE attribute. More...
 
bool elemedgeSet_m
 

Static Private Attributes

static const std::map
< ElementType, std::string > 
elementTypeToString_s
 

Detailed Description

Definition at line 128 of file ElementBase.h.

Constructor & Destructor Documentation

ElementBase::ElementBase ( const std::string &  name)
explicit

Constructor with given name.

Definition at line 138 of file ElementBase.cpp.

ElementBase::ElementBase ( )

Definition at line 104 of file ElementBase.cpp.

ElementBase::ElementBase ( const ElementBase right)

Definition at line 109 of file ElementBase.cpp.

References bgeometry_m, parmatint_m, ParticleMatterInteractionHandler::updateElement(), and BoundaryGeometry::updateElement().

Here is the call graph for this function:

ElementBase::~ElementBase ( )
virtual

Definition at line 157 of file ElementBase.cpp.

Member Function Documentation

virtual void ElementBase::accept ( BeamlineVisitor visitor) const
pure virtual
virtual ElementBase* ElementBase::clone ( ) const
pure virtual
ElementBase * ElementBase::copyStructure ( )
virtual

Make a structural copy.

Reimplemented in TBeamline< T >.

Definition at line 244 of file ElementBase.cpp.

References clone(), and isSharable().

Referenced by Sequence::copy(), Line::parse(), SequenceParser::parseMember(), and Replacer::visitFlaggedElmPtr().

Here is the call graph for this function:

void ElementBase::fixPosition ( )
inline
std::pair< ApertureType, std::vector< double > > ElementBase::getAperture ( ) const
inline

Definition at line 525 of file ElementBase.h.

References aperture_m.

Referenced by MeshGenerator::add(), and Offset::operator=().

double ElementBase::getArcLength ( ) const
inlinevirtual

Get arc length.

Reimplemented in TBeamline< T >, and MarkerRep.

Definition at line 411 of file ElementBase.h.

References BGeometryBase::getArcLength(), and getGeometry().

Referenced by BeamlineGeometry::getArcLength(), and TBeamline< T >::getTransform().

Here is the call graph for this function:

double ElementBase::getAttribute ( const std::string &  aKey) const
virtual

Get attribute value.

Definition at line 187 of file ElementBase.cpp.

References getConstChannel().

Here is the call graph for this function:

BoundaryGeometry * ElementBase::getBoundaryGeometry ( ) const
inlinevirtual

return the attached boundary geometrt object if there is any

Definition at line 475 of file ElementBase.h.

References bgeometry_m.

BoundingBox ElementBase::getBoundingBoxInLabCoords ( ) const
virtual

Reimplemented in Bend2D.

Definition at line 313 of file ElementBase.cpp.

References aperture_m, csTrafoGlobal2Local_m, BoundingBox::getBoundingBox(), getEdgeToBegin(), getEdgeToEnd(), and CoordinateSystemTrafo::transformFrom().

Here is the call graph for this function:

Channel * ElementBase::getChannel ( const std::string &  aKey,
bool  create = false 
)
virtual
const ConstChannel * ElementBase::getConstChannel ( const std::string &  aKey) const
virtual

Construct a read-only channel.

Definition at line 233 of file ElementBase.cpp.

References getChannel().

Referenced by getAttribute(), and hasAttribute().

Here is the call graph for this function:

CoordinateSystemTrafo ElementBase::getCSTrafoGlobal2Local ( ) const
inline
CoordinateSystemTrafo ElementBase::getEdgeToBegin ( ) const
inlinevirtual
CoordinateSystemTrafo ElementBase::getEdgeToEnd ( ) const
inlinevirtual

Reimplemented in RFCavity, Bend2D, Solenoid, and TravelingWave.

Definition at line 511 of file ElementBase.h.

References getElementLength().

Referenced by getBoundingBoxInLabCoords().

Here is the call graph for this function:

virtual void ElementBase::getElementDimensions ( double &  begin,
double &  end 
) const
inlinevirtual

Reimplemented in RFCavity, Solenoid, and TravelingWave.

Definition at line 174 of file ElementBase.h.

References getElementLength().

Referenced by MeshGenerator::add().

Here is the call graph for this function:

double ElementBase::getElementLength ( ) const
inlinevirtual

Get design length.

Reimplemented in RFCavity, TBeamline< T >, and MarkerRep.

Definition at line 415 of file ElementBase.h.

References BGeometryBase::getElementLength(), and getGeometry().

Referenced by ScatteringPhysics::addBackToBunch(), Solenoid::apply(), Corrector::apply(), Component::apply(), Multipole::apply(), Solenoid::applyToReferenceParticle(), Component::applyToReferenceParticle(), Multipole::applyToReferenceParticle(), Vacuum::checkPoint(), ScatteringPhysics::copyFromBunch(), RBend::findChordLength(), SBend::findChordLength(), CCollimator::getDimensions(), Drift::getDimensions(), FlexibleCollimator::getDimensions(), Degrader::getDimensions(), Solenoid::getDimensions(), RBend3D::getDimensions(), Vacuum::getDimensions(), Corrector::getDimensions(), Multipole::getDimensions(), Solenoid::getEdgeToEnd(), getEdgeToEnd(), Solenoid::getElementDimensions(), getElementDimensions(), BeamlineGeometry::getElementLength(), RFCavity::getElementLength(), Source::initialise(), Drift::initialise(), FlexibleCollimator::initialise(), Degrader::initialise(), Solenoid::initialise(), RBend3D::initialise(), Vacuum::initialise(), Corrector::initialise(), Multipole::initialise(), Degrader::isInside(), Monitor::isInside(), Multipole::isInside(), isInside(), isInsideTransverse(), FlexibleCollimator::isStopped(), ScatteringPhysics::setTimeStepForLeavingParticles(), Bend2D::setupDefaultFieldMap(), ParallelCyclotronTracker::visitCorrector(), ParallelCyclotronTracker::visitDegrader(), ParallelCyclotronTracker::visitDrift(), ThickTracker::visitDrift(), ParallelCyclotronTracker::visitMultipole(), ThickTracker::visitMultipole(), ParallelCyclotronTracker::visitRBend(), ParallelCyclotronTracker::visitSBend(), and ThickTracker::visitSBend().

Here is the call graph for this function:

double ElementBase::getElementPosition ( ) const
inline

Definition at line 589 of file ElementBase.h.

References elemedgeSet_m, elementPosition_m, and getName().

Here is the call graph for this function:

double ElementBase::getEntrance ( ) const
inlinevirtual

Get entrance position.

Reimplemented in TBeamline< T >.

Definition at line 427 of file ElementBase.h.

References BGeometryBase::getEntrance(), and getGeometry().

Referenced by BeamlineGeometry::getEntrance().

Here is the call graph for this function:

Euclid3D ElementBase::getEntranceFrame ( ) const
inlinevirtual

Get transform.

Reimplemented in TBeamline< T >.

Definition at line 447 of file ElementBase.h.

References BGeometryBase::getEntranceFrame(), and getGeometry().

Referenced by BeamlineGeometry::getEntranceFrame().

Here is the call graph for this function:

Euclid3D ElementBase::getEntrancePatch ( ) const
inlinevirtual

Get patch.

Definition at line 455 of file ElementBase.h.

References BGeometryBase::getEntrancePatch(), and getGeometry().

Here is the call graph for this function:

double ElementBase::getExit ( ) const
inlinevirtual

Get exit position.

Reimplemented in TBeamline< T >.

Definition at line 431 of file ElementBase.h.

References BGeometryBase::getExit(), and getGeometry().

Referenced by BeamlineGeometry::getExit().

Here is the call graph for this function:

Euclid3D ElementBase::getExitFrame ( ) const
inlinevirtual

Get transform.

Reimplemented in TBeamline< T >.

Definition at line 451 of file ElementBase.h.

References BGeometryBase::getExitFrame(), and getGeometry().

Referenced by BeamlineGeometry::getExitFrame().

Here is the call graph for this function:

Euclid3D ElementBase::getExitPatch ( ) const
inlinevirtual

Get patch.

Definition at line 459 of file ElementBase.h.

References BGeometryBase::getExitPatch(), and getGeometry().

Here is the call graph for this function:

bool ElementBase::getFlagDeleteOnTransverseExit ( ) const
inline
virtual BGeometryBase& ElementBase::getGeometry ( )
pure virtual
virtual const BGeometryBase& ElementBase::getGeometry ( ) const
pure virtual
void ElementBase::getMisalignment ( double &  x,
double &  y,
double &  s 
) const
CoordinateSystemTrafo ElementBase::getMisalignment ( ) const
inline

Definition at line 541 of file ElementBase.h.

References misalignment_m.

const std::string & ElementBase::getName ( ) const
virtual

Get element name.

Definition at line 162 of file ElementBase.cpp.

References elementID.

Referenced by Ring::appendElement(), Ring::apply(), Cyclotron::apply(), Bend2D::calculateRefTrajectory(), OutputPlane::checkOne(), Vacuum::checkPressure(), Stripper::doCheck(), Stripper::doFinalise(), CCollimator::doFinalise(), Probe::doGoOffline(), OutputPlane::doGoOffline(), OutputPlane::doInitialise(), PlaceRep::enter(), FlexibleCollimator::finalise(), Degrader::finalise(), Vacuum::finalise(), Cyclotron::finalise(), PyOpal::Field::getElementName(), getElementPosition(), RFCavity::getMomentaKick(), BeamStrippingPhysics::getName(), ScatteringPhysics::getName(), Bend2D::getOutline(), getOutputFN(), CavityAutophaser::getPhaseAtMaxEnergy(), Selector::handleElement(), Solenoid::initialise(), RBend3D::initialise(), Bend2D::initialise(), RFCavity::initialise(), Ring::initialise(), CSRIGFWakeFunction::initialize(), CSRWakeFunction::initialize(), OpalWake::initWakefunction(), PlaceRep::leave(), operator<<(), VariableRFCavity::operator=(), Offset::operator=(), operator==(), Line::parse(), ParticleMatterInteraction::print(), BeamStrippingPhysics::print(), ScatteringPhysics::print(), Sequence::print(), Vacuum::print(), Bend2D::readFieldMap(), PyOpal::PyLine_< C >::registerObject(), Component::trackBunch(), Component::trackMap(), RBend3D::trackRefParticleThrough(), OpalRBend::update(), OpalSBend::update(), OpalRBend3D::update(), Sequence::updateList(), ParallelTTracker::updateRFElement(), ParallelCyclotronTracker::visitCCollimator(), Replacer::visitFlaggedElmPtr(), ParallelCyclotronTracker::visitProbe(), ParallelCyclotronTracker::visitRFCavity(), ParallelCyclotronTracker::visitSeptum(), ParallelCyclotronTracker::visitStripper(), and ParallelTTracker::writePhaseSpace().

double ElementBase::getOrigin ( ) const
inlinevirtual

Get origin position.

Reimplemented in TBeamline< T >.

Definition at line 423 of file ElementBase.h.

References getGeometry(), and BGeometryBase::getOrigin().

Referenced by BeamlineGeometry::getOrigin().

Here is the call graph for this function:

std::string ElementBase::getOutputFN ( ) const

Get output filename.

Definition at line 177 of file ElementBase.cpp.

References getName(), and outputfn_m.

Referenced by Probe::doInitialise(), PluginElement::initialise(), Source::initialise(), FlexibleCollimator::initialise(), Monitor::initialise(), and Cyclotron::initialise().

Here is the call graph for this function:

ParticleMatterInteractionHandler * ElementBase::getParticleMatterInteraction ( ) const
inlinevirtual
int ElementBase::getRequiredNumberOfTimeSteps ( ) const
inlinevirtual

Reimplemented in Monitor, Drift, Source, Stripper, and Marker.

Definition at line 603 of file ElementBase.h.

double ElementBase::getRotationAboutZ ( ) const
inline

Definition at line 574 of file ElementBase.h.

References rotationZAxis_m.

Referenced by OpalBeamline::compute3DLattice(), and Bend2D::setFieldCalcParam().

Euclid3D ElementBase::getTotalTransform ( ) const
inlinevirtual

Get transform.

Reimplemented in TBeamline< T >.

Definition at line 439 of file ElementBase.h.

References getGeometry(), and BGeometryBase::getTotalTransform().

Referenced by BeamlineGeometry::getTotalTransform().

Here is the call graph for this function:

Euclid3D ElementBase::getTransform ( double  fromS,
double  toS 
) const
inlinevirtual

Get transform.

Reimplemented in TBeamline< T >.

Definition at line 435 of file ElementBase.h.

References getGeometry(), and BGeometryBase::getTransform().

Referenced by BeamlineGeometry::getTransform(), and TBeamline< T >::getTransform().

Here is the call graph for this function:

Euclid3D ElementBase::getTransform ( double  s) const
inlinevirtual

Get transform.

Reimplemented in TBeamline< T >.

Definition at line 443 of file ElementBase.h.

References getGeometry(), and BGeometryBase::getTransform().

Here is the call graph for this function:

virtual ElementType ElementBase::getType ( ) const
pure virtual
std::string ElementBase::getTypeString ( ) const
inline

Definition at line 579 of file ElementBase.h.

References getType().

Referenced by ParallelCyclotronTracker::execute(), and Vacuum::print().

Here is the call graph for this function:

std::string ElementBase::getTypeString ( ElementType  type)
static

Definition at line 240 of file ElementBase.cpp.

References elementTypeToString_s.

WakeFunction * ElementBase::getWake ( ) const
inlinevirtual

return the attached wake object if there is any

Definition at line 467 of file ElementBase.h.

References wake_m.

bool ElementBase::hasAttribute ( const std::string &  aKey) const
virtual

Test for existence of an attribute.

Definition at line 200 of file ElementBase.cpp.

References getConstChannel().

Referenced by ParallelCyclotronTracker::visitSolenoid().

Here is the call graph for this function:

bool ElementBase::hasBoundaryGeometry ( ) const
inlinevirtual

Definition at line 479 of file ElementBase.h.

References bgeometry_m.

bool ElementBase::hasParticleMatterInteraction ( ) const
inlinevirtual

Definition at line 487 of file ElementBase.h.

References parmatint_m.

bool ElementBase::hasWake ( ) const
inlinevirtual

Definition at line 471 of file ElementBase.h.

References wake_m.

bool ElementBase::isElementPositionSet ( ) const
inline

Definition at line 598 of file ElementBase.h.

References elemedgeSet_m.

bool ElementBase::isInside ( const Vector_t r) const
inlinevirtual

Reimplemented in RFCavity, Multipole, Bend2D, Monitor, RBend3D, Solenoid, TravelingWave, and Degrader.

Definition at line 530 of file ElementBase.h.

References getElementLength(), and isInsideTransverse().

Here is the call graph for this function:

bool ElementBase::isInsideTransverse ( const Vector_t r) const
protected
bool ElementBase::isPositioned ( ) const
inline

Definition at line 556 of file ElementBase.h.

References positionIsFixed.

Referenced by OpalRBend::update(), OpalSBend::update(), and OpalRBend3D::update().

bool ElementBase::isSharable ( ) const
inline

Test if the element can be shared.

Definition at line 463 of file ElementBase.h.

References shareFlag.

Referenced by copyStructure(), and Sequence::updateList().

void ElementBase::makeSharable ( )
virtual

Set sharable flag.

Reimplemented in TBeamline< T >.

Definition at line 253 of file ElementBase.cpp.

References shareFlag.

Referenced by OpalMarker::OpalMarker(), and Element::setShared().

void ElementBase::operator= ( const ElementBase )
private
void ElementBase::releasePosition ( )
inline

Definition at line 546 of file ElementBase.h.

References positionIsFixed.

Referenced by OpalRBend::update(), OpalSBend::update(), and OpalRBend3D::update().

void ElementBase::removeAttribute ( const std::string &  aKey)
virtual

Remove an existing attribute.

Definition at line 212 of file ElementBase.cpp.

References AttributeSet::removeAttribute(), and userAttribs.

Here is the call graph for this function:

void ElementBase::setActionRange ( const std::queue< std::pair< double, double > > &  range)
inline

Definition at line 561 of file ElementBase.h.

References actionRange_m, and elementEdge_m.

void ElementBase::setAperture ( const ApertureType type,
const std::vector< double > &  args 
)
inline
void ElementBase::setAttribute ( const std::string &  aKey,
double  val 
)
virtual

Set value of an attribute.

Definition at line 217 of file ElementBase.cpp.

References endl(), getChannel(), and Channel::isSettable().

Referenced by update(), and OpalElement::updateUnknown().

Here is the call graph for this function:

void ElementBase::setBoundaryGeometry ( BoundaryGeometry geo)
virtual

attach a boundary geometry field to the element

Definition at line 270 of file ElementBase.cpp.

References bgeometry_m.

Referenced by OpalDrift::update(), OpalCavity::update(), and OpalCyclotron::update().

void ElementBase::setCSTrafoGlobal2Local ( const CoordinateSystemTrafo ori)
inline
void ElementBase::setCurrentSCoordinate ( double  s)

Definition at line 278 of file ElementBase.cpp.

References actionRange_m, and elementEdge_m.

void ElementBase::setElementLength ( double  length)
inlinevirtual
void ElementBase::setElementPosition ( double  elemedge)
inline

Access to ELEMEDGE attribute.

Definition at line 583 of file ElementBase.h.

References elemedgeSet_m, and elementPosition_m.

Referenced by OpalElement::update().

void ElementBase::setFlagDeleteOnTransverseExit ( bool  flag = true)
inline

Definition at line 608 of file ElementBase.h.

References deleteOnTransverseExit_m.

Referenced by OpalElement::update().

void ElementBase::setMisalignment ( const CoordinateSystemTrafo cst)
inline

Definition at line 536 of file ElementBase.h.

References misalignment_m.

Referenced by OpalElement::update().

void ElementBase::setName ( const std::string &  name)
virtual

Set element name.

Definition at line 167 of file ElementBase.cpp.

References elementID, and name.

Referenced by Sequence::insertDrifts(), VariableRFCavity::operator=(), and Offset::operator=().

void ElementBase::setOutputFN ( std::string  fn)
void ElementBase::setParticleMatterInteraction ( ParticleMatterInteractionHandler spys)
virtual
void ElementBase::setRotationAboutZ ( double  rotation)
inline

Set rotation about z axis in bend frame.

Definition at line 569 of file ElementBase.h.

References rotationZAxis_m.

Referenced by OpalElement::update().

void ElementBase::setWake ( WakeFunction wf)
virtual
bool ElementBase::update ( const AttributeSet set)

Update element.

Definition at line 258 of file ElementBase.cpp.

References AttributeSet::begin(), AttributeSet::end(), and setAttribute().

Referenced by Monitor::driftToCorrectPositionAndSave().

Here is the call graph for this function:

Member Data Documentation

std::queue<std::pair<double, double> > ElementBase::actionRange_m
private

Definition at line 399 of file ElementBase.h.

Referenced by setActionRange(), and setCurrentSCoordinate().

std::pair<ApertureType, std::vector<double> > ElementBase::aperture_m
protected
BoundaryGeometry* ElementBase::bgeometry_m
private
CoordinateSystemTrafo ElementBase::csTrafoGlobal2Local_m
protected
bool ElementBase::deleteOnTransverseExit_m = true
private

Definition at line 403 of file ElementBase.h.

Referenced by getFlagDeleteOnTransverseExit(), and setFlagDeleteOnTransverseExit().

bool ElementBase::elemedgeSet_m
private

Definition at line 397 of file ElementBase.h.

Referenced by getElementPosition(), isElementPositionSet(), and setElementPosition().

double ElementBase::elementEdge_m
protected
std::string ElementBase::elementID
private

Definition at line 381 of file ElementBase.h.

Referenced by getName(), and setName().

double ElementBase::elementPosition_m
private

ELEMEDGE attribute.

Definition at line 396 of file ElementBase.h.

Referenced by getElementPosition(), and setElementPosition().

const std::map< ElementType, std::string > ElementBase::elementTypeToString_s
staticprivate

Definition at line 383 of file ElementBase.h.

Referenced by getTypeString().

CoordinateSystemTrafo ElementBase::misalignment_m
protected

Definition at line 367 of file ElementBase.h.

Referenced by getMisalignment(), and setMisalignment().

std::string ElementBase::outputfn_m
private

The name of the outputfile

Definition at line 401 of file ElementBase.h.

Referenced by getOutputFN(), and setOutputFN().

ParticleMatterInteractionHandler* ElementBase::parmatint_m
private
bool ElementBase::positionIsFixed
private

Definition at line 394 of file ElementBase.h.

Referenced by fixPosition(), isPositioned(), releasePosition(), and setCSTrafoGlobal2Local().

double ElementBase::rotationZAxis_m
protected
bool ElementBase::shareFlag
mutableprotected

Definition at line 364 of file ElementBase.h.

Referenced by Beamline::Beamline(), isSharable(), and makeSharable().

AttributeSet ElementBase::userAttribs
private

Definition at line 386 of file ElementBase.h.

Referenced by getChannel(), and removeAttribute().

WakeFunction* ElementBase::wake_m
private

Definition at line 388 of file ElementBase.h.

Referenced by getWake(), hasWake(), and setWake().


The documentation for this class was generated from the following files: