71 double getMUi(
int i)
const;
95 TLine::const_iterator
begin()
const;
103 TLine::const_iterator
end()
const;
119 virtual std::vector<double>
126 double getEX()
const;
129 double getEY()
const;
132 double getET()
const;
141 virtual std::vector<double>
189 double getS(
const Row &,
int = 0,
int = 0)
const;
193 double getMUi(
const Row &,
int i1,
int = 0)
const;
194 double getBETi(
const Row &,
int i1,
int = 0)
const;
195 double getALFi(
const Row &,
int i1,
int = 0)
const;
199 double getBETik(
const Row &,
int i1,
int i2)
const;
203 double getALFik(
const Row &,
int i1,
int i2)
const;
207 double getGAMik(
const Row &,
int i1,
int i2)
const;
211 double getCO(
const Row &,
int i1,
int = 0)
const;
215 double getDisp(
const Row &,
int i1,
int = 0)
const;
219 double getEigen(
const Row &,
int i1,
int i2)
const;
223 double getSigma(
const Row &,
int i1,
int i2)
const;
259 Twiss(
int size,
const char *
name,
const char *help);
313 #endif // OPAL_Twiss_HH
static const int numColumns
Number of table columns.
std::vector< Cell > CellArray
An array of cell descriptors.
virtual bool matches(Table *rhs) const
Check compatibility.
virtual bool isDependent(const std::string &name) const
Check dependency.
virtual Expressions::PtrToScalar< double > makeColumnExpression(const std::string &colName) const
Return column expression.
TLine::const_iterator current
double arc
The accumulated arc length.
Interface for basic beam line object.
double getET() const
Return emittance for mode 3.
TLine::const_iterator end() const
Access to last row.
double getEY() const
Return emittance for mode 2.
FMatrix< double, 6, 6 > getSigma() const
Initial envelope (Sigma) matrix.
double getGAMik(const Row &, int i1, int i2) const
Mais-Ripken gamma functions.
FVector< double, 6 > orbit
The closed orbit after the element.
TLine::const_iterator begin() const
Access to first row.
double mu[3]
Phases for the three modes.
virtual std::vector< double > getRow(const PlaceRep &, const std::vector< std::string > &)
Return a table row, possible user-defined.
double getBETik(const Row &, int i1, int i2) const
Mais-Ripken beta functions.
const FVector< double, 6 > & getCO() const
Closed orbit.
Row & findRow(const PlaceRep &row)
double getEigen(const Row &, int i1, int i2) const
Eigenvectors.
const Row & getCurrent() const
Return current table row in iteration.
void printTableBody(std::ostream &, const CellArray &) const
Print the body to this TWISS table.
Representation of a place within a beam line or sequence.
FMatrix< double, 6, 6 > curly_A
The initial curly A matrix.
Twiss(int size, const char *name, const char *help)
Exemplar constructor.
double getMUi(const Row &, int i1, int=0) const
Three modes, "naive" Twiss functions.
void operator=(const Twiss &)
FMatrix< double, 6, 6 > matrix
The transfer matrix up to and including the element.
virtual CellArray getDefault() const
Return the default print columns.
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].
virtual double getLength()
Return the length of the table.
virtual double getCell(const PlaceRep &row, const std::string &col)
Return a selected value in a selected row.
virtual void execute()
Check validity of the table definition.
double getBETi(const Row &, int i1, int=0) const
FVector< double, 6 > orbit
The initial closed orbit.
Representation of a range within a beam line or sequence.
An abstract sequence of beam line components.
double getDisp(const Row &, int i1, int=0) const
Dispersion.
const FMatrix< double, 6, 6 > & getMatrix() const
Transfer matrix.
Structure for a row of the Twiss table.
double getEX() const
Return emittance for mode 1.
const PartData * reference
AbstractMapper * itsMapper
double getCO(const Row &, int i1, int=0) const
Closed orbit.
double getS() const
Arc length.
void printTableTitle(std::ostream &, const char *title) const
Print standard information about the TWISS table.
FMatrix< double, 6, 6 > getMatrix(const Row &) const
Accumulated transfer map.
FMatrix< double, 6, 6 > getCurlyA() const
Return initial curly A matrix.
virtual const Beamline * getLine() const
Return embedded CLASSIC beamline.
std::string::iterator iterator
double getALFik(const Row &, int i1, int i2) const
Mais-Ripken alpha functions.
FVector< double, 6 > getOrbit() const
Return initial closed orbit.
The base class for all OPAL tables.
double getALFi(const Row &, int i1, int=0) const
double getS(const Row &, int=0, int=0) const
Arc length for given row.
A section of a beam line.
double getMUi(int i) const
Phase for mode i.