OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
src
src
Classic
Beamlines
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
28
Beamline::Beamline
():
29
ElementBase
() {
30
shareFlag
=
false
;
31
}
32
33
34
Beamline::Beamline
(
const
Beamline
&):
35
ElementBase
() {
36
shareFlag
=
false
;
37
}
38
39
40
Beamline::Beamline
(
const
std::string &
name
):
41
ElementBase
(
name
) {
42
shareFlag
=
false
;
43
}
44
45
46
Beamline::~Beamline
()
47
{}
48
49
Vector_t
Beamline::getOrigin3D
()
const
{
50
return
Vector_t
(0);
51
}
52
53
Quaternion
Beamline::getInitialDirection
()
const
{
54
return
Quaternion
(1, 0, 0, 0);
55
}
56
57
bool
Beamline::getRelativeFlag
()
const
{
58
return
false
;
59
}
Beamline.h
name
const std::string name
Definition:
MaxNormRadialPeak.cpp:32
ElementBase
Definition:
ElementBase.h:86
ElementBase::shareFlag
bool shareFlag
Definition:
ElementBase.h:385
Quaternion
Definition:
Quaternion.h:10
Beamline
An abstract sequence of beam line components.
Definition:
Beamline.h:34
Beamline::~Beamline
virtual ~Beamline()
Definition:
Beamline.cpp:46
Beamline::getRelativeFlag
virtual bool getRelativeFlag() const
Definition:
Beamline.cpp:57
Beamline::getInitialDirection
virtual Quaternion getInitialDirection() const
Definition:
Beamline.cpp:53
Beamline::Beamline
Beamline()
Definition:
Beamline.cpp:28
Beamline::getOrigin3D
virtual Vector_t getOrigin3D() const
Definition:
Beamline.cpp:49
Vektor< double, 3 >
Vector_t
Vektor< double, 3 > Vector_t
Definition:
Vektor.h:6
Generated on Wed Aug 25 2021 16:41:02 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.1