|
OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
The TWISS command. More...
#include <Period.h>


Public Member Functions | |
| Period () | |
| Exemplar constructor. More... | |
| virtual | ~Period () |
| virtual Period * | clone (const std::string &name) |
| Make clone. More... | |
| virtual void | fill () |
| Fill the buffer using the defined algorithm. More... | |
| virtual void | printTable (std::ostream &, const CellArray &) const |
| Print the table on an ASCII stream. More... | |
Public Member Functions inherited from Twiss | |
| virtual | ~Twiss () |
| TLine::const_iterator | begin () const |
| Access to first row. More... | |
| TLine::iterator | begin () |
| Access to first row. More... | |
| TLine::const_iterator | end () const |
| Access to last row. More... | |
| TLine::iterator | end () |
| Access to last row. More... | |
| virtual void | execute () |
| Check validity of the table definition. More... | |
| virtual double | getCell (const PlaceRep &row, const std::string &col) |
| Return a selected value in a selected row. More... | |
| virtual CellArray | getDefault () const |
| Return the default print columns. More... | |
| virtual std::vector< double > | getColumn (const RangeRep &range, const std::string &col) |
| Return column [b]col[/b] of this table, limited by [b]range[/b]. More... | |
| const Row & | getCurrent () const |
| Return current table row in iteration. More... | |
| double | getEX () const |
| Return emittance for mode 1. More... | |
| double | getEY () const |
| Return emittance for mode 2. More... | |
| double | getET () const |
| Return emittance for mode 3. More... | |
| virtual double | getLength () |
| Return the length of the table. More... | |
| virtual const Beamline * | getLine () const |
| Return embedded CLASSIC beamline. More... | |
| virtual std::vector< double > | getRow (const PlaceRep &, const std::vector< std::string > &) |
| Return a table row, possible user-defined. More... | |
| virtual bool | isDependent (const std::string &name) const |
| Check dependency. More... | |
| virtual Expressions::PtrToScalar < double > | makeColumnExpression (const std::string &colName) const |
| Return column expression. More... | |
| virtual bool | matches (Table *rhs) const |
| Check compatibility. More... | |
| void | printTableBody (std::ostream &, const CellArray &) const |
| Print the body to this TWISS table. More... | |
| void | printTableTitle (std::ostream &, const char *title) const |
| Print standard information about the TWISS table. More... | |
| FMatrix< double, 6, 6 > | getCurlyA () const |
| Return initial curly A matrix. More... | |
| FMatrix< double, 6, 6 > | getCurlyA (const Row &) const |
| Curly A map for given row. More... | |
| FMatrix< double, 6, 6 > | getMatrix (const Row &) const |
| Accumulated transfer map. More... | |
| FVector< double, 6 > | getOrbit () const |
| Return initial closed orbit. More... | |
| FVector< double, 6 > | getOrbit (const Row &) const |
| Get orbit in given row. More... | |
| FMatrix< double, 6, 6 > | getSigma () const |
| Initial envelope (Sigma) matrix. More... | |
| FMatrix< double, 6, 6 > | getSigma (const Row &) const |
| Envelope (Sigma) matrix for given row. More... | |
| double | getS (const Row &, int=0, int=0) const |
| Arc length for given row. More... | |
| double | getMUi (const Row &, int i1, int=0) const |
| Three modes, "naive" Twiss functions. More... | |
| double | getBETi (const Row &, int i1, int=0) const |
| double | getALFi (const Row &, int i1, int=0) const |
| double | getBETik (const Row &, int i1, int i2) const |
| Mais-Ripken beta functions. More... | |
| double | getALFik (const Row &, int i1, int i2) const |
| Mais-Ripken alpha functions. More... | |
| double | getGAMik (const Row &, int i1, int i2) const |
| Mais-Ripken gamma functions. More... | |
| double | getCO (const Row &, int i1, int=0) const |
| Closed orbit. More... | |
| double | getDisp (const Row &, int i1, int=0) const |
| Dispersion. More... | |
| double | getEigen (const Row &, int i1, int i2) const |
| Eigenvectors. More... | |
| double | getSigma (const Row &, int i1, int i2) const |
| Sigma matrix. More... | |
| double | getMatrix (const Row &, int i1, int i2) const |
| Transfer matrix. More... | |
Public Member Functions inherited from Table | |
| virtual | ~Table () |
| virtual bool | canReplaceBy (Object *newObject) |
| Test if object can be replaced. More... | |
| virtual const std::string | getCategory () const |
| Return the object category as a string. More... | |
| virtual bool | shouldTrace () const |
| Trace flag. More... | |
| virtual bool | shouldUpdate () const |
| Update flag. More... | |
| virtual void | invalidate () |
| Mark this table as invalid, if it is dynamic. More... | |
Public Member Functions inherited from Object | |
| virtual | ~Object () |
| void | copyAttributes (const Object &) |
| Copy attributes from another object. More... | |
| virtual Attribute * | findAttribute (const std::string &name) |
| Find an attribute by name. More... | |
| virtual const Attribute * | findAttribute (const std::string &name) const |
| Find an attribute by name. More... | |
| virtual Object * | makeTemplate (const std::string &, TokenStream &, Statement &) |
| Macro handler function. More... | |
| virtual Object * | makeInstance (const std::string &name, Statement &, const Parser *) |
| Macro handler function. More... | |
| virtual void | parse (Statement &) |
| Parse the object. More... | |
| virtual void | parseShortcut (Statement &) |
| Parser for single-attribute commands. More... | |
| virtual void | print (std::ostream &) const |
| Print the object. More... | |
| virtual void | printValue (std::ostream &) const |
| virtual void | printHelp (std::ostream &) const |
| Print help. More... | |
| virtual void | replace (Object *oldObject, Object *newObject) |
| Replace references. More... | |
| virtual void | update () |
| Update this object. More... | |
| bool | isBuiltin () const |
| True, if [b]this[/b] is a built-in object. More... | |
| virtual bool | isShared () const |
| Shared flag. More... | |
| virtual void | setShared (bool) |
| Set/reset shared flag. More... | |
| void | setDirty (bool) |
| Set/reset the [b]modified[/b] flag. More... | |
| bool | isDirty () const |
| True, if the [b]modified[/b] flag is set. More... | |
| void | setFlag (bool) |
| Flag/unflag this object, e. g. to control output of objects for. More... | |
| bool | isFlagged () const |
| True, if [b]this[/b] is flagged by setFlag(true). More... | |
| const Object * | getBaseObject () const |
| Return the object's base type object. More... | |
| const std::string & | getOpalName () const |
| Return object name. More... | |
| Object * | getParent () const |
| Return parent pointer. More... | |
| bool | isTreeMember (const Object *subTree) const |
| Test for tree membership. More... | |
| void | setOpalName (const std::string &name) |
| Set object name. More... | |
| void | setParent (Object *) |
| Set parent object. More... | |
| void | clear () |
| Clear the occurrence counter. More... | |
| int | increment () |
| Increment and return the occurrence counter. More... | |
| int | occurrenceCount () |
| Return the occurrence counter. More... | |
| void | registerReference (Invalidator *a) |
| Register a reference to this object. More... | |
| void | unregisterReference (Invalidator *a) |
| Unegister a reference to this object. More... | |
| void | registerOwnership (const AttributeHandler::OwnerType &itsClass) 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... | |
Private Types | |
| enum | { MICADO = Twiss::SIZE, CORRECTORS, THREAD, TOLQ, TOLP, CIRCUM, Q1, Q2, Q3, FREQ, U0, J1, J2, J3, DELTAP, SIZE } |
Private Member Functions | |
| Period (const Period &) | |
| void | operator= (const Period &) |
| Period (const std::string &name, Period *parent) | |
| void | findClosedOrbit () |
Private Attributes | |
| FVector< double, 6 > | fixPoint |
Additional Inherited Members | |
Public Types inherited from Twiss | |
| typedef TBeamline< Row > | TLine |
Public Types inherited from Table | |
| typedef std::vector< Cell > | CellArray |
| An array of cell descriptors. More... | |
Static Public Member Functions inherited from Table | |
| static Table * | find (const std::string &name) |
| Find named Table. More... | |
Public Attributes inherited from Object | |
| std::vector< Attribute > | itsAttr |
| The object attributes (see Attribute.hh). More... | |
Protected Types inherited from Twiss | |
| enum | { LINE, BEAM, RANGE, ORDER, STATIC, METHOD, REVBEAM, REVTRACK, BETXMAX, BETYMAX, XCMAX, YCMAX, XCRMS, YCRMS, DXMAX, DYMAX, DXRMS, DYRMS, SIZE } |
| The common attributes for all objects having the "TWISS" interface. More... | |
Protected Member Functions inherited from Twiss | |
| Twiss (int size, const char *name, const char *help) | |
| Exemplar constructor. More... | |
| Twiss (const std::string &name, Twiss *parent) | |
| Clone constructor. More... | |
Protected Member Functions inherited from Table | |
| Table (int size, const char *name, const char *help) | |
| Constructor for exemplars. More... | |
| Table (const std::string &name, Table *parent) | |
| Constructor for clones. More... | |
Protected Member Functions inherited from Object | |
| Object (int size, const char *name, const char *help) | |
| Constructor for exemplars. More... | |
| Object (const std::string &name, Object *parent) | |
| Constructor for clones. More... | |
Protected Member Functions inherited from RCObject | |
| RCObject () | |
| Default constructor. More... | |
| RCObject (const RCObject &) | |
| Copy constructor. More... | |
| virtual | ~RCObject ()=0 |
| RCObject & | operator= (const RCObject &right) |
Protected Attributes inherited from Twiss | |
| FVector< double, 6 > | orbit |
| The initial closed orbit. More... | |
| FMatrix< double, 6, 6 > | curly_A |
| The initial curly A matrix. More... | |
Protected Attributes inherited from Table | |
| bool | dynamic |
| Flag dynamic table. More... | |
| bool | refill |
| Refill flag. More... | |
Protected Attributes inherited from Object | |
| bool | builtin |
| Built-in flag. More... | |
| bool | modified |
| Dirty flag. More... | |
| bool | flagged |
| Object flag. More... | |
Static Protected Attributes inherited from Twiss | |
| static const int | numColumns = 11 |
| Number of table columns. More... | |
|
private |
| Period::Period | ( | ) |
Exemplar constructor.
Definition at line 46 of file Period.cpp.
References CIRCUM, AttributeHandler::COMMAND, CORRECTORS, DELTAP, Physics::e, FREQ, Object::itsAttr, J1, J2, J3, Attributes::makeReal(), Attributes::makeString(), MICADO, Q1, Q2, Q3, Object::registerOwnership(), THREAD, TOLP, TOLQ, and U0.
Referenced by clone().

|
virtual |
Definition at line 111 of file Period.cpp.
|
private |
|
private |
Definition at line 106 of file Period.cpp.
|
virtual |
Make clone.
Implements Object.
Definition at line 115 of file Period.cpp.
References Period().

|
virtual |
Fill the buffer using the defined algorithm.
Implements Table.
Definition at line 120 of file Period.cpp.
References Physics::c, CIRCUM, FVps< T, N >::constantTerm(), Twiss::curly_A, FNormalForm< N >::eigenVectors(), endl(), ExpMap(), FTps< T, N >::filter(), findClosedOrbit(), fixPoint, FREQ, PartData::getBeta(), FStaticFP< N >::getFixedPoint(), FStaticFP< N >::getFixedPointMap(), AbstractMapper::getMap(), Twiss::getMUi(), Twiss::getS(), Object::itsAttr, Twiss::itsMapper, Twiss::itsTable, FVps< T, N >::linearTerms(), FNormalForm< N >::normalisingMap(), Twiss::orbit, Twiss::order, Twiss::put(), Q1, Q2, Q3, Twiss::reference, Table::refill, AbstractMapper::setMap(), Attributes::setReal(), FVps< T, N >::substitute(), and Options::warn.

|
private |
Definition at line 245 of file Period.cpp.
References abs(), FLUMatrix< T, N >::backSubstitute(), LinearMap< T, N >::constantTerm(), DELTAP, DefaultVisitor::execute(), fixPoint, AbstractMapper::getMap(), Attributes::getReal(), Object::itsAttr, Twiss::itsMapper, LinearMap< T, N >::linearTerms(), LinearFun< T, N >::makeVariable(), and AbstractMapper::setMap().
Referenced by fill().

|
private |
|
virtual |
Print the table on an ASCII stream.
Implements Table.
Definition at line 194 of file Period.cpp.
References Twiss::BETXMAX, Twiss::BETYMAX, CIRCUM, DELTAP, Twiss::DXMAX, Twiss::DXRMS, Twiss::DYMAX, Twiss::DYRMS, Twiss::getMUi(), Attributes::getReal(), Object::itsAttr, Twiss::itsTable, Twiss::printTableBody(), Twiss::printTableTitle(), Twiss::XCMAX, Twiss::XCRMS, Twiss::YCMAX, and Twiss::YCRMS.

|
private |
Definition at line 59 of file Period.h.
Referenced by fill(), and findClosedOrbit().
1.8.5