OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Private Member Functions | List of all members
ThickMapper Class Reference

Build a map using a finite-length lens for each element. More...

#include <ThickMapper.h>

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

Public Member Functions

 ThickMapper (const Beamline &bl, const PartData &data, bool backBeam, bool backTrack)
 Constructor. More...
 
virtual ~ThickMapper ()
 
virtual void visitBeamBeam (const BeamBeam &)
 Apply the algorithm to a BeamBeam. More...
 
virtual void visitBeamStripping (const BeamStripping &)
 Apply the algorithm to a BeamStripping. More...
 
virtual void visitCCollimator (const CCollimator &)
 Apply the algorithm to a collimator. More...
 
virtual void visitCorrector (const Corrector &)
 Apply the algorithm to a Corrector. More...
 
virtual void visitDegrader (const Degrader &)
 Apply the algorithm to a Degrader. More...
 
virtual void visitDiagnostic (const Diagnostic &)
 Apply the algorithm to a Diagnostic. More...
 
virtual void visitDrift (const Drift &)
 Apply the algorithm to a Drift. More...
 
virtual void visitFlexibleCollimator (const FlexibleCollimator &)
 Apply the algorithm to a flexible collimator. More...
 
virtual void visitLambertson (const Lambertson &)
 Apply the algorithm to a Lambertson. More...
 
virtual void visitMarker (const Marker &)
 Apply the algorithm to a Marker. More...
 
virtual void visitMonitor (const Monitor &)
 Apply the algorithm to a Monitor. More...
 
virtual void visitMultipole (const Multipole &)
 Apply the algorithm to a Multipole. More...
 
virtual void visitProbe (const Probe &)
 Apply the algorithm to a Probe. More...
 
virtual void visitRBend (const RBend &)
 Apply the algorithm to a RBend. More...
 
virtual void visitRFCavity (const RFCavity &)
 Apply the algorithm to a RFCavity. More...
 
virtual void visitRFQuadrupole (const RFQuadrupole &)
 Apply the algorithm to a RFQuadrupole. More...
 
virtual void visitSBend (const SBend &)
 Apply the algorithm to a SBend. More...
 
virtual void visitSeparator (const Separator &)
 Apply the algorithm to a Separator. More...
 
virtual void visitSeptum (const Septum &)
 Apply the algorithm to a Septum. More...
 
virtual void visitSolenoid (const Solenoid &)
 Apply the algorithm to a Solenoid. More...
 
virtual void visitParallelPlate (const ParallelPlate &)
 Apply the algorithm to a ParallelPlate. More...
 
virtual void visitCyclotronValley (const CyclotronValley &)
 Apply the algorithm to a CyclotronValley. More...
 
- Public Member Functions inherited from Mapper
 Mapper (const Beamline &bl, const PartData &data, bool revBeam, bool revTrack)
 Constructor. More...
 
virtual ~Mapper ()
 
virtual void getMap (LinearMap< double, 6 > &) const
 Return the linear part of the accumulated map. More...
 
virtual void getMap (TransportMap< double, 6 > &) const
 Return the second-order part of the accumulated map. More...
 
virtual void getMap (FVps< double, 6 > &) const
 Return the full map accumulated so far. More...
 
virtual void setMap (const LinearMap< double, 6 > &)
 Reset the linear part of the accumulated map for restart. More...
 
virtual void setMap (const TransportMap< double, 6 > &)
 Reset the second-order part of the accumulated map for restart. More...
 
virtual void setMap (const FVps< double, 6 > &)
 Reset the full map for restart. More...
 
virtual void visitComponent (const Component &)
 Apply the algorithm to an arbitrary component. More...
 
virtual void visitPatch (const Patch &pat)
 Apply the algorithm to a patch. More...
 
virtual void visitAlignWrapper (const AlignWrapper &)
 Apply the algorithm to an align wrapper. More...
 
virtual void visitMapIntegrator (const MapIntegrator &)
 Apply the algorithm to an integrator capable of mapping. More...
 
- Public Member Functions inherited from AbstractMapper
 AbstractMapper (const Beamline &bl, const PartData &data, bool revBeam, bool revTrack)
 Constructor. More...
 
virtual ~AbstractMapper ()
 
- Public Member Functions inherited from DefaultVisitor
 DefaultVisitor (const Beamline &beamline, bool backBeam, bool backTrack)
 Constructor. More...
 
virtual ~DefaultVisitor ()=0
 
virtual void execute ()
 Apply the algorithm to the top-level beamline. More...
 
virtual void visitCyclotron (const Cyclotron &)
 Apply the algorithm to an cyclotron. More...
 
virtual void visitRing (const Ring &)
 Apply the algorithm to an opal ring.. More...
 
virtual void visitMultipoleT (const MultipoleT &)
 Apply the algorithm to a multipoleT. More...
 
virtual void visitMultipoleTStraight (const MultipoleTStraight &)
 Apply the algorithm to a multipoleTStraight. More...
 
virtual void visitMultipoleTCurvedConstRadius (const MultipoleTCurvedConstRadius &)
 Apply the algorithm to a multipoleTCurvedConstRadius. More...
 
virtual void visitMultipoleTCurvedVarRadius (const MultipoleTCurvedVarRadius &)
 Apply the algorithm to a multipoleTCurvedVarRadius. More...
 
virtual void visitOffset (const Offset &)
 Apply the algorithm to an Offset. More...
 
virtual void visitRBend3D (const RBend3D &)
 Apply the algorithm to a rectangular bend. More...
 
virtual void visitVariableRFCavity (const VariableRFCavity &vcav)
 Apply the algorithm to a RF cavity. More...
 
virtual void visitVariableRFCavityFringeField (const VariableRFCavityFringeField &vcav)
 Apply the algorithm to a RF cavity. More...
 
virtual void visitTravelingWave (const TravelingWave &)
 Apply the algorithm to a RF cavity. More...
 
virtual void visitSBend3D (const SBend3D &)
 Apply the algorithm to a sector bend. More...
 
virtual void visitScalingFFAMagnet (const ScalingFFAMagnet &)
 Apply the algorithm to a scaling FFA magnet. More...
 
virtual void visitVerticalFFAMagnet (const VerticalFFAMagnet &)
 Apply the algorithm to a RF cavity. More...
 
virtual void visitSource (const Source &)
 Apply the algorithm to a source. More...
 
virtual void visitStripper (const Stripper &)
 Apply the algorithm to a charge stripper. More...
 
virtual void visitBeamline (const Beamline &)
 Apply the algorithm to a beam line. More...
 
virtual void visitFlaggedElmPtr (const FlaggedElmPtr &)
 Apply the algorithm to a FlaggedElmPtr. More...
 
virtual void visitCorrectorWrapper (const CorrectorWrapper &)
 Apply the algorithm to an corrector wrapper.. More...
 
virtual void visitCyclotronWrapper (const CyclotronWrapper &)
 Apply the algorithm to an cyclotron wrapper.. More...
 
virtual void visitMultipoleWrapper (const MultipoleWrapper &)
 Apply the algorithm to an multipole wrapper.. More...
 
virtual void visitRBendWrapper (const RBendWrapper &)
 Apply the algorithm to an RBend wrapper.. More...
 
virtual void visitSBendWrapper (const SBendWrapper &)
 Apply the algorithm to an SBend wrapper.. More...
 
virtual void visitIntegrator (const Integrator &)
 Apply the algorithm to a generic integrator. More...
 
virtual void visitTrackIntegrator (const TrackIntegrator &)
 Apply the algorithm to an integrator capable of tracking. More...
 
- Public Member Functions inherited from BeamlineVisitor
 BeamlineVisitor ()
 
virtual ~BeamlineVisitor ()
 

Private Member Functions

 ThickMapper ()
 
 ThickMapper (const ThickMapper &)
 
void operator= (const ThickMapper &)
 
void applyDrift (double length)
 
void applyEntranceFringe (double edge, double curve, const BMultipoleField &field, double scale)
 
void applyExitFringe (double edge, double curve, const BMultipoleField &field, double scale)
 

Additional Inherited Members

- Public Types inherited from AbstractMapper
enum  {
  X, PX, Y, PY,
  T, PT
}
 
- Protected Member Functions inherited from Mapper
void applyDrift (double length)
 Apply drift length. More...
 
void applyThinMultipole (const BMultipoleField &field, double factor)
 Thin multipole kick. More...
 
void applyThinSBend (const BMultipoleField &field, double scale, double h)
 Thin SBend kick. More...
 
void applyTransform (const Euclid3D &, double refLength=0.0)
 Apply transform. More...
 
- Protected Member Functions inherited from AbstractMapper
FTps< double, 6 > buildMultipoleVectorPotential (const BMultipoleField &)
 Construct the vector potential for a Multipole. More...
 
FTps< double, 6 > buildSBendVectorPotential (const BMultipoleField &, double h)
 Construct the vector potential for an SBend. More...
 
- Protected Attributes inherited from Mapper
FVps< double, 6 > itsMap
 The transfer map being built. More...
 
- Protected Attributes inherited from AbstractMapper
const PartData itsReference
 The reference information. More...
 
- Protected Attributes inherited from DefaultVisitor
const BeamlineitsLine
 
bool back_beam
 
bool back_track
 
bool back_path
 
double flip_B
 
double flip_s
 

Detailed Description

Build a map using a finite-length lens for each element.

Definition at line 84 of file ThickMapper.h.

Constructor & Destructor Documentation

ThickMapper::ThickMapper ( const Beamline bl,
const PartData data,
bool  backBeam,
bool  backTrack 
)
explicit

Constructor.

Definition at line 80 of file ThickMapper.cpp.

ThickMapper::~ThickMapper ( )
virtual

Definition at line 87 of file ThickMapper.cpp.

ThickMapper::ThickMapper ( )
private
ThickMapper::ThickMapper ( const ThickMapper )
private

Member Function Documentation

void ThickMapper::applyDrift ( double  length)
private
void ThickMapper::applyEntranceFringe ( double  edge,
double  curve,
const BMultipoleField field,
double  scale 
)
private
void ThickMapper::applyExitFringe ( double  edge,
double  curve,
const BMultipoleField field,
double  scale 
)
private
void ThickMapper::operator= ( const ThickMapper )
private
void ThickMapper::visitBeamBeam ( const BeamBeam )
virtual

Apply the algorithm to a BeamBeam.

Reimplemented from DefaultVisitor.

Definition at line 91 of file ThickMapper.cpp.

void ThickMapper::visitBeamStripping ( const BeamStripping )
virtual

Apply the algorithm to a BeamStripping.

Reimplemented from DefaultVisitor.

Definition at line 95 of file ThickMapper.cpp.

void ThickMapper::visitCCollimator ( const CCollimator coll)
virtual

Apply the algorithm to a collimator.

Reimplemented from DefaultVisitor.

Definition at line 99 of file ThickMapper.cpp.

References applyDrift(), DefaultVisitor::flip_s, and ElementBase::getElementLength().

Here is the call graph for this function:

void ThickMapper::visitCorrector ( const Corrector corr)
virtual
void ThickMapper::visitCyclotronValley ( const CyclotronValley cv)
virtual

Apply the algorithm to a CyclotronValley.

Reimplemented from DefaultVisitor.

Definition at line 221 of file ThickMapper.cpp.

void ThickMapper::visitDegrader ( const Degrader deg)
virtual

Apply the algorithm to a Degrader.

Reimplemented from DefaultVisitor.

Definition at line 121 of file ThickMapper.cpp.

References applyDrift(), DefaultVisitor::flip_s, and ElementBase::getElementLength().

Here is the call graph for this function:

void ThickMapper::visitDiagnostic ( const Diagnostic diag)
virtual

Apply the algorithm to a Diagnostic.

Reimplemented from DefaultVisitor.

Definition at line 125 of file ThickMapper.cpp.

References applyDrift(), DefaultVisitor::flip_s, and ElementBase::getElementLength().

Here is the call graph for this function:

void ThickMapper::visitDrift ( const Drift drift)
virtual

Apply the algorithm to a Drift.

Reimplemented from DefaultVisitor.

Definition at line 131 of file ThickMapper.cpp.

References applyDrift(), DefaultVisitor::flip_s, and ElementBase::getElementLength().

Here is the call graph for this function:

void ThickMapper::visitFlexibleCollimator ( const FlexibleCollimator coll)
virtual

Apply the algorithm to a flexible collimator.

Reimplemented from DefaultVisitor.

Definition at line 135 of file ThickMapper.cpp.

References applyDrift(), DefaultVisitor::flip_s, and ElementBase::getElementLength().

Here is the call graph for this function:

void ThickMapper::visitLambertson ( const Lambertson lamb)
virtual

Apply the algorithm to a Lambertson.

Reimplemented from DefaultVisitor.

Definition at line 139 of file ThickMapper.cpp.

References applyDrift(), DefaultVisitor::flip_s, and ElementBase::getElementLength().

Here is the call graph for this function:

void ThickMapper::visitMarker ( const Marker marker)
virtual

Apply the algorithm to a Marker.

Reimplemented from DefaultVisitor.

Definition at line 145 of file ThickMapper.cpp.

void ThickMapper::visitMonitor ( const Monitor corr)
virtual

Apply the algorithm to a Monitor.

Reimplemented from DefaultVisitor.

Definition at line 150 of file ThickMapper.cpp.

References applyDrift(), DefaultVisitor::flip_s, and ElementBase::getElementLength().

Here is the call graph for this function:

void ThickMapper::visitMultipole ( const Multipole mult)
virtual
void ThickMapper::visitParallelPlate ( const ParallelPlate pplate)
virtual

Apply the algorithm to a ParallelPlate.

Reimplemented from DefaultVisitor.

Definition at line 524 of file ThickMapper.cpp.

void ThickMapper::visitProbe ( const Probe prob)
virtual

Apply the algorithm to a Probe.

Reimplemented from DefaultVisitor.

Definition at line 217 of file ThickMapper.cpp.

void ThickMapper::visitRBend ( const RBend bend)
virtual
void ThickMapper::visitRFCavity ( const RFCavity as)
virtual
void ThickMapper::visitRFQuadrupole ( const RFQuadrupole rfq)
virtual

Apply the algorithm to a RFQuadrupole.

Reimplemented from DefaultVisitor.

Definition at line 355 of file ThickMapper.cpp.

References applyDrift(), DefaultVisitor::flip_s, and ElementBase::getElementLength().

Here is the call graph for this function:

void ThickMapper::visitSBend ( const SBend bend)
virtual
void ThickMapper::visitSeparator ( const Separator sep)
virtual
void ThickMapper::visitSeptum ( const Septum sept)
virtual

Apply the algorithm to a Septum.

Reimplemented from DefaultVisitor.

Definition at line 480 of file ThickMapper.cpp.

References applyDrift(), DefaultVisitor::flip_s, and ElementBase::getElementLength().

Here is the call graph for this function:

void ThickMapper::visitSolenoid ( const Solenoid solenoid)
virtual

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