OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
Marker.cpp
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2// $RCSfile: Marker.cpp,v $
3// ------------------------------------------------------------------------
4// $Revision: 1.1.1.1 $
5// ------------------------------------------------------------------------
6// Copyright: see Copyright.readme
7// ------------------------------------------------------------------------
8//
9// Class: Marker
10// Defines the abstract interface for a marker element.
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/Marker.h"
23
24
25// Class Marker
26// ------------------------------------------------------------------------
27
28
32
33
34Marker::Marker(const Marker &right):
35 Component(right)
36{ }
37
38
39Marker::Marker(const std::string &name):
40 Component(name)
41{ }
42
43
46
47
48void Marker::accept(BeamlineVisitor &visitor) const {
49 visitor.visitMarker(*this);
50}
51
52void Marker::initialise(PartBunch_t *bunch, double &/*startField*/, double &/*endField*/) {
53 RefPartBunch_m = bunch;
54}
55
57{ }
58
59bool Marker::bends() const {
60 return false;
61}
62
63
64void Marker::getDimensions(double &/*zBegin*/, double &/*zEnd*/) const {
65}
66
70
ElementType
Definition ElementBase.h:88
PartBunch< PLayout_t< double, 3 >, double, 3 > PartBunch_t
virtual void visitMarker(const Marker &)=0
Apply the algorithm to a marker.
Component(const std::string &name)
Constructor with given name.
Definition Component.cpp:44
PartBunch_t * RefPartBunch_m
Definition Component.h:185
virtual bool bends() const override
Definition Marker.cpp:59
virtual void finalise() override
Definition Marker.cpp:56
virtual ElementType getType() const override
Get element type std::string.
Definition Marker.cpp:67
Marker(const std::string &name)
Constructor with given name.
Definition Marker.cpp:39
virtual void initialise(PartBunch_t *bunch, double &startField, double &endField) override
Definition Marker.cpp:52
virtual void getDimensions(double &zBegin, double &zEnd) const override
Definition Marker.cpp:64
virtual void accept(BeamlineVisitor &) const override
Apply visitor to Marker.
Definition Marker.cpp:48
Marker()
Definition Marker.cpp:29
virtual ~Marker()
Definition Marker.cpp:44