OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Beamline.cpp
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // $RCSfile: Beamline.cpp,v $
3 // ------------------------------------------------------------------------
4 // $Revision: 1.1.1.1 $
5 // ------------------------------------------------------------------------
6 // Copyright: see Copyright.readme
7 // ------------------------------------------------------------------------
8 //
9 // Class: Beamline
10 // Represents an abstract sequence of elements.
11 //
12 // ------------------------------------------------------------------------
13 // Class category: Beamlines
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:32:34 $
17 // $Author: fci $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "Beamlines/Beamline.h"
22 
23 
24 // Class Beamline
25 // ------------------------------------------------------------------------
26 
27 
29  ElementBase() {
30  shareFlag = false;
31 }
32 
33 
35  ElementBase() {
36  shareFlag = false;
37 }
38 
39 
40 Beamline::Beamline(const std::string &name):
41  ElementBase(name) {
42  shareFlag = false;
43 }
44 
45 
47 {}
48 
50  return Vector_t(0);
51 }
52 
54  return Quaternion(1, 0, 0, 0);
55 }
56 
58  return false;
59 }
const std::string name
bool shareFlag
Definition: ElementBase.h:385
An abstract sequence of beam line components.
Definition: Beamline.h:34
virtual ~Beamline()
Definition: Beamline.cpp:46
virtual bool getRelativeFlag() const
Definition: Beamline.cpp:57
virtual Quaternion getInitialDirection() const
Definition: Beamline.cpp:53
Beamline()
Definition: Beamline.cpp:28
virtual Vector_t getOrigin3D() const
Definition: Beamline.cpp:49
Vektor< double, 3 > Vector_t
Definition: Vektor.h:6