1 #ifndef OPAL_Aperture_HH
2 #define OPAL_Aperture_HH
89 double getBETXMAX(
const A_row &,
int i1 = 0,
int i2 = 0)
const;
90 double getBETYMAX(
const A_row &,
int i1 = 0,
int i2 = 0)
const;
92 double getAPERTMIN(
const A_row &row,
int i1 = 0,
int i2 = 0)
const;
94 std::vector<Aperture::coord>
getShape(std::vector<double>
vec);
101 virtual double getCell(
const PlaceRep &place,
const std::string &colName);
110 std::vector<std::string> &cols);
118 A_Tline::const_iterator
begin()
const;
120 A_Tline::const_iterator
end()
const;
179 #endif //OPAL_Aperture_HH
virtual std::vector< double > getRow(const PlaceRep &pos, const std::vector< std::string > &cols)
Return a table row.
std::vector< Cell > CellArray
An array of cell descriptors.
void calcul_Apert(A_row &a, int slice, Twiss *tp)
double getBeta_y(int ind)
double getDisp_y_prim(int ind)
virtual Expressions::PtrToScalar< double > makeColumnExpression(const std::string &colname) const
Interface for basic beam line object.
double getDisp_x_prim(int ind)
virtual void visitSBend(const SBend &)
Apply the algorithm to a sector bend.
A_row & findRow(const PlaceRep &row)
Interface for a Cyclotron.
std::string getType_elm()
const A_row & getCurrent() const
void execute()
Apply the algorithm to the top-level beamline.
virtual bool isDependent(const std::string &name) const
Find out if table depends on the object identified by [b]name[/b].
Interface for general multipole.
A_Tline::const_iterator begin() const
Representation of a place within a beam line or sequence.
double getBETXMAX(const A_row &, int i1=0, int i2=0) const
virtual double getLength()
Return the length of the table.
FVector< double, 3 > Euler_x
A_Tline::const_iterator current
virtual std::vector< double > getColumn(const RangeRep &rng, const std::string &colName)
Return column [b]col[/b] of this table, limited by [b]range[/b].
virtual void visitCyclotron(const Cyclotron &)
Apply the algorithm to an cyclotron.
virtual const Beamline * getLine() const
Return embedded CLASSIC beamline.
struct Aperture::Data data
FMatrix< double, 6, 6 > Transf_mat
A_row(ElementBase *elem, int occur)
void setCounter(int) const
Set clone counter.
std::vector< Aperture::coord > getShape(std::vector< double > vec)
A_Tline::const_iterator end() const
TBeamline< A_row > A_Tline
double getDisp_x(int ind)
std::vector< coord > ShapeHalo
virtual void fill()
Refill the buffer.
Representation of a range within a beam line or sequence.
An abstract sequence of beam line components.
FVector< double, 2 > Dispx
virtual void visitMultipole(const Multipole &)
Apply the algorithm to a multipole.
double getDisp_y(int ind)
std::vector< pt_interpol > Interpol
virtual void applyDefault(const ElementBase &)
virtual Object * clone(const std::string &name)
Return a clone.
The base class for all OPAL objects.
A_row(const FlaggedElmPtr &rhs, int order)
double getBETYMAX(const A_row &, int i1=0, int i2=0) const
virtual double getCell(const PlaceRep &place, const std::string &colName)
Return value in selected table cell.
std::vector< coord > ShapeBeamScreen
double getBeta_x(int ind)
std::string::iterator iterator
double getAPERTMIN(const A_row &row, int i1=0, int i2=0) const
FVector< double, 2 > Dispy
virtual CellArray getDefault() const
Return the default print columns.
virtual bool matches(Table *rhs) const
Check that [b]rhs[/b] is of same type as [b]this[/b].
The base class for all OPAL tables.
FVector< double, 3 > Euler_y
virtual void printTable(std::ostream &, const CellArray &) const
Print list for the table.
void calcul(Twiss::TLine::iterator i, A_row &a, int order, Twiss *tp)
virtual void visitRBend(const RBend &)
Apply the algorithm to a rectangular bend.
A section of a beam line.