OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
SectorFieldMapComponent.h
Go to the documentation of this file.
1 
3 
4 public:
6  SectorFieldMapComponent(const std::string &name);
7 
11 
13  // The representation of the electro-magnetic field of the component
14  // (version for non-constant object).
15  virtual EMField &getField() = 0;
16 
18  // The representation of the electro-magnetic field of the component
19  // (version for constant object).
20  virtual const EMField &getField() const = 0;
21 
22  virtual bool apply(const double &t, Vector_t &E, Vector_t &B) = 0;
23 
24  virtual bool apply(const size_t &i, const double &t, Vector_t &E, Vector_t &B) = 0;
25 
26  virtual bool apply(const Vector_t &R, const Vector_t &centroid, const double &t, Vector_t &E, Vector_t &B) = 0;
27 
28  virtual void initialise(PartBunchBase<double, 3> *bunch, double &startField, double &endField) = 0;
29 
30  virtual void finalise() = 0;
31 
32  virtual bool bends() const = 0;
33 
34  virtual void getDimensions(double &zBegin, double &zEnd) const = 0;
35 
36 private:
37 
38 };
39 
40 
virtual void finalise()=0
virtual void getDimensions(double &zBegin, double &zEnd) const =0
Definition: SBend.h:68
Abstract base class for electromagnetic fields.
Definition: EMField.h:188
virtual bool apply(const double &t, Vector_t &E, Vector_t &B)=0
const std::string name
virtual EMField & getField()=0
Return field.
virtual void initialise(PartBunchBase< double, 3 > *bunch, double &startField, double &endField)=0
virtual bool bends() const =0
Indicates that element bends the beam.