OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Lambertson.cpp
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // $RCSfile: Lambertson.cpp,v $
3 // ------------------------------------------------------------------------
4 // $Revision: 1.1.1.1 $
5 // ------------------------------------------------------------------------
6 // Copyright: see Copyright.readme
7 // ------------------------------------------------------------------------
8 //
9 // Class: Lambertson
10 // Defines the abstract interface for a Lambertson septum magnet.
11 //
12 // ------------------------------------------------------------------------
13 // Class category: AbsBeamline
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:32:31 $
17 // $Author: fci $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "AbsBeamline/Lambertson.h"
23 
24 
25 // Class Lambertson
26 // ------------------------------------------------------------------------
27 
29  Component()
30 { }
31 
32 
34  Component(rhs)
35 { }
36 
37 
38 Lambertson::Lambertson(const std::string &name):
39  Component(name)
40 { }
41 
42 
44 { }
45 
46 
47 void Lambertson::accept(BeamlineVisitor &visitor) const {
48  visitor.visitLambertson(*this);
49 }
50 
51 void Lambertson::initialise(PartBunchBase<double, 3> *bunch, double &startField, double &endField) {
52  RefPartBunch_m = bunch;
53 }
54 
56 { }
57 
58 bool Lambertson::bends() const {
59  return false;
60 }
61 
62 void Lambertson::getDimensions(double &zBegin, double &zEnd) const {
63 
64 }
65 
67  return LAMBERTSON;
68 }
virtual void finalise() override
Definition: Lambertson.cpp:55
virtual void getDimensions(double &zBegin, double &zEnd) const override
Definition: Lambertson.cpp:62
virtual void visitLambertson(const Lambertson &)=0
Apply the algorithm to a Lambertson septum magnet.
virtual void accept(BeamlineVisitor &) const override
Apply visitor to Lambertson.
Definition: Lambertson.cpp:47
virtual void initialise(PartBunchBase< double, 3 > *bunch, double &startField, double &endField) override
Definition: Lambertson.cpp:51
virtual bool bends() const override
Definition: Lambertson.cpp:58
virtual ~Lambertson()
Definition: Lambertson.cpp:43
virtual ElementBase::ElementType getType() const override
Get element type std::string.
Definition: Lambertson.cpp:66
PartBunchBase< double, 3 > * RefPartBunch_m
Definition: Component.h:200
const std::string name
Interface for a single beam element.
Definition: Component.h:51
Abstract algorithm.
Interface for a Lambertson septum.
Definition: Lambertson.h:33