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