OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Public Member Functions | Protected Attributes | List of all members
TBeamline< T > Class Template Reference

#include <TBeamline.h>

Inheritance diagram for TBeamline< T >:
Inheritance graph
[legend]
Collaboration diagram for TBeamline< T >:
Collaboration graph
[legend]

Public Member Functions

 TBeamline ()
 Default constructor. More...
 
 TBeamline (const std::string &name)
 Constructor with given name. More...
 
 TBeamline (const TBeamline< T > &right)
 
virtual ~TBeamline ()
 
virtual void accept (BeamlineVisitor &) const
 Apply BeamlineVisitor to this line. More...
 
virtual void iterate (BeamlineVisitor &, bool r2l) const
 Apply visitor to all elements of the line. More...
 
virtual TBeamline< T > * clone () const
 Make clone. More...
 
virtual TBeamline< T > * copyStructure ()
 Make structure copy. More...
 
virtual void makeSharable ()
 Set sharable flag. More...
 
virtual BeamlineGeometrygetGeometry ()
 Get geometry. More...
 
virtual const BeamlineGeometrygetGeometry () const
 Get geometry. More...
 
virtual double getArcLength () const
 Get arc length. More...
 
virtual double getElementLength () const
 Get design length. More...
 
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 ElementType getType () const
 Get beamline type. More...
 
virtual void append (const T &)
 Append a T object. More...
 
virtual void prepend (const T &)
 Prepend a T object. More...
 
void setOrigin3D (const Vector_t &ori)
 
Vector_t getOrigin3D () const
 
void setInitialDirection (const Quaternion &rot)
 
Quaternion getInitialDirection () const
 
void setRelativeFlag (bool flag)
 
bool getRelativeFlag () const
 
size_t size () const
 Get the number of elements in the TBeamline. More...
 
- Public Member Functions inherited from Beamline
 Beamline (const std::string &name)
 Constructor with given name. More...
 
 Beamline ()
 
 Beamline (const Beamline &)
 
virtual ~Beamline ()
 
virtual void iterate (BeamlineVisitor &, bool reverse) const =0
 Apply visitor to all elements of the line. More...
 
virtual Vector_t getOrigin3D () const
 
virtual Quaternion getInitialDirection () const
 
virtual bool getRelativeFlag () const
 
- Public Member Functions inherited from ElementBase
 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 ParticleMatterInteractionHandlergetParticleMatterInteraction () 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...
 

Protected Attributes

BeamlineGeometry itsGeometry
 The beamline geometry. More...
 
Vector_t itsOrigin_m
 
Quaternion itsCoordTrafoTo_m
 
bool relativePositions_m
 
- Protected Attributes inherited from ElementBase
bool shareFlag
 
CoordinateSystemTrafo csTrafoGlobal2Local_m
 
CoordinateSystemTrafo misalignment_m
 
std::pair< ApertureType, std::vector< double > > aperture_m
 
double elementEdge_m
 
double rotationZAxis_m
 

Additional Inherited Members

- Static Public Member Functions inherited from ElementBase
static std::string getTypeString (ElementType type)
 
- Protected Member Functions inherited from ElementBase
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)
 

Detailed Description

template<class T>
class TBeamline< T >

Definition at line 33 of file TBeamline.h.

Constructor & Destructor Documentation

◆ TBeamline() [1/3]

template<class T >
TBeamline< T >::TBeamline

Default constructor.

Definition at line 161 of file TBeamline.h.

◆ TBeamline() [2/3]

template<class T >
TBeamline< T >::TBeamline ( const std::string &  name)
explicit

Constructor with given name.

Definition at line 172 of file TBeamline.h.

◆ TBeamline() [3/3]

template<class T >
TBeamline< T >::TBeamline ( const TBeamline< T > &  right)

Definition at line 183 of file TBeamline.h.

◆ ~TBeamline()

template<class T >
TBeamline< T >::~TBeamline
virtual

Definition at line 194 of file TBeamline.h.

Member Function Documentation

◆ accept()

template<class T >
void TBeamline< T >::accept ( BeamlineVisitor visitor) const
virtual

Apply BeamlineVisitor to this line.

Implements ElementBase.

Definition at line 199 of file TBeamline.h.

References BeamlineVisitor::visitBeamline().

Here is the call graph for this function:

◆ append()

template<class T >
void TBeamline< T >::append ( const T &  obj)
inlinevirtual

Append a T object.

Definition at line 417 of file TBeamline.h.

Referenced by TBeamline< T >::clone(), and TBeamline< T >::copyStructure().

◆ clone()

template<class T >
TBeamline< T > * TBeamline< T >::clone
virtual

Make clone.

Implements ElementBase.

Definition at line 221 of file TBeamline.h.

References TBeamline< T >::append(), begin(), end(), TBeamline< T >::itsCoordTrafoTo_m, TBeamline< T >::itsOrigin_m, TBeamline< T >::relativePositions_m, and Attrib::Legacy::Distribution::T.

Here is the call graph for this function:

◆ copyStructure()

template<class T >
TBeamline< T > * TBeamline< T >::copyStructure
virtual

Make structure copy.

Reimplemented from ElementBase.

Definition at line 241 of file TBeamline.h.

References TBeamline< T >::append(), begin(), end(), TBeamline< T >::itsCoordTrafoTo_m, TBeamline< T >::itsOrigin_m, TBeamline< T >::relativePositions_m, and Attrib::Legacy::Distribution::T.

Here is the call graph for this function:

◆ getArcLength()

template<class T >
double TBeamline< T >::getArcLength
virtual

Get arc length.

Reimplemented from ElementBase.

Definition at line 288 of file TBeamline.h.

References begin(), and end().

Here is the call graph for this function:

◆ getElementLength()

template<class T >
double TBeamline< T >::getElementLength
virtual

Get design length.

Reimplemented from ElementBase.

Definition at line 301 of file TBeamline.h.

References begin(), and end().

Here is the call graph for this function:

◆ getEntrance()

template<class T >
double TBeamline< T >::getEntrance
virtual

Get entrance position.

Reimplemented from ElementBase.

Definition at line 320 of file TBeamline.h.

◆ getEntranceFrame()

template<class T >
Euclid3D TBeamline< T >::getEntranceFrame
virtual

Get transform.

Reimplemented from ElementBase.

Definition at line 399 of file TBeamline.h.

◆ getExit()

template<class T >
double TBeamline< T >::getExit
virtual

Get exit position.

Reimplemented from ElementBase.

Definition at line 326 of file TBeamline.h.

◆ getExitFrame()

template<class T >
Euclid3D TBeamline< T >::getExitFrame
virtual

Get transform.

Reimplemented from ElementBase.

Definition at line 405 of file TBeamline.h.

◆ getGeometry() [1/2]

template<class T >
BeamlineGeometry & TBeamline< T >::getGeometry
inlinevirtual

Get geometry.

Implements ElementBase.

Definition at line 276 of file TBeamline.h.

◆ getGeometry() [2/2]

template<class T >
const BeamlineGeometry & TBeamline< T >::getGeometry
inlinevirtual

Get geometry.

Implements ElementBase.

Definition at line 282 of file TBeamline.h.

◆ getInitialDirection()

template<class T >
Quaternion TBeamline< T >::getInitialDirection
inlinevirtual

Reimplemented from Beamline.

Definition at line 443 of file TBeamline.h.

Referenced by ParallelTTracker::visitBeamline(), and ThickTracker::visitBeamline().

◆ getOrigin()

template<class T >
double TBeamline< T >::getOrigin
virtual

Get origin position.

Reimplemented from ElementBase.

Definition at line 314 of file TBeamline.h.

◆ getOrigin3D()

template<class T >
Vector_t TBeamline< T >::getOrigin3D
inlinevirtual

Reimplemented from Beamline.

Definition at line 433 of file TBeamline.h.

Referenced by ParallelTTracker::visitBeamline(), and ThickTracker::visitBeamline().

◆ getRelativeFlag()

template<class T >
bool TBeamline< T >::getRelativeFlag
inlinevirtual

Reimplemented from Beamline.

Definition at line 453 of file TBeamline.h.

Referenced by ParallelTTracker::visitBeamline(), and ThickTracker::visitBeamline().

◆ getTotalTransform()

template<class T >
Euclid3D TBeamline< T >::getTotalTransform
virtual

Get transform.

Reimplemented from ElementBase.

Definition at line 380 of file TBeamline.h.

References begin(), Euclid3D::dotBy(), and end().

Here is the call graph for this function:

◆ getTransform() [1/2]

template<class T >
Euclid3D TBeamline< T >::getTransform ( double  fromS,
double  toS 
) const
virtual

Get transform.

Reimplemented from ElementBase.

Definition at line 332 of file TBeamline.h.

References begin(), end(), ElementBase::getArcLength(), ElementBase::getTransform(), max(), and min().

Here is the call graph for this function:

◆ getTransform() [2/2]

template<class T >
Euclid3D TBeamline< T >::getTransform ( double  s) const
virtual

Get transform.

Reimplemented from ElementBase.

Definition at line 393 of file TBeamline.h.

◆ getType()

template<class T >
ElementType TBeamline< T >::getType
inlinevirtual

Get beamline type.

Implements ElementBase.

Definition at line 411 of file TBeamline.h.

References BEAMLINE.

◆ iterate()

template<class T >
void TBeamline< T >::iterate ( BeamlineVisitor visitor,
bool  r2l 
) const
virtual

Apply visitor to all elements of the line.

Implements Beamline.

Definition at line 205 of file TBeamline.h.

References begin(), and end().

Referenced by ParallelCyclotronTracker::visitBeamline(), ParallelTTracker::visitBeamline(), and ThickTracker::visitBeamline().

Here is the call graph for this function:

◆ makeSharable()

template<class T >
void TBeamline< T >::makeSharable
inlinevirtual

Set sharable flag.

Reimplemented from ElementBase.

Definition at line 265 of file TBeamline.h.

References begin(), and end().

Here is the call graph for this function:

◆ prepend()

template<class T >
void TBeamline< T >::prepend ( const T &  obj)
inlinevirtual

Prepend a T object.

Definition at line 423 of file TBeamline.h.

◆ setInitialDirection()

template<class T >
void TBeamline< T >::setInitialDirection ( const Quaternion rot)
inline

Definition at line 438 of file TBeamline.h.

◆ setOrigin3D()

template<class T >
void TBeamline< T >::setOrigin3D ( const Vector_t ori)
inline

Definition at line 428 of file TBeamline.h.

◆ setRelativeFlag()

template<class T >
void TBeamline< T >::setRelativeFlag ( bool  flag)
inline

Definition at line 448 of file TBeamline.h.

◆ size()

template<class T >
size_t TBeamline< T >::size

Get the number of elements in the TBeamline.

Definition at line 458 of file TBeamline.h.

References begin(), and end().

Here is the call graph for this function:

Member Data Documentation

◆ itsCoordTrafoTo_m

template<class T >
Quaternion TBeamline< T >::itsCoordTrafoTo_m
protected

Definition at line 152 of file TBeamline.h.

Referenced by TBeamline< T >::clone(), and TBeamline< T >::copyStructure().

◆ itsGeometry

template<class T >
BeamlineGeometry TBeamline< T >::itsGeometry
protected

The beamline geometry.

Definition at line 149 of file TBeamline.h.

◆ itsOrigin_m

template<class T >
Vector_t TBeamline< T >::itsOrigin_m
protected

Definition at line 151 of file TBeamline.h.

Referenced by TBeamline< T >::clone(), and TBeamline< T >::copyStructure().

◆ relativePositions_m

template<class T >
bool TBeamline< T >::relativePositions_m
protected

Definition at line 153 of file TBeamline.h.

Referenced by TBeamline< T >::clone(), and TBeamline< T >::copyStructure().


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