summaryrefslogtreecommitdiff
path: root/src/main/FODO.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/FODO.cc')
-rw-r--r--src/main/FODO.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/FODO.cc b/src/main/FODO.cc
index c87324c..9ed5308 100644
--- a/src/main/FODO.cc
+++ b/src/main/FODO.cc
@@ -16,6 +16,8 @@ namespace vhc {
FODO::FODO(const Vector3D& entry, const Vector3D& exit, double sectionRadius, double straightLength, double focalisingCoefficient, Element* next):
CompositeElement(entry, exit, sectionRadius, next),
+ straightLength(straightLength),
+ focalisingCoefficient(focalisingCoefficient),
focalisingQuadrupole(NULL),
defocalisingQuadrupole(NULL),
straightElement1(NULL),
@@ -49,4 +51,8 @@ FODO::~FODO() {
}
}
+FODO* FODO::copy() const {
+ return new FODO(getEntryPosition(), getExitPosition(), getSectionRadius(), straightLength, focalisingCoefficient);
+}
+
}