summaryrefslogtreecommitdiff
path: root/src/main/Dipole.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/Dipole.h')
-rw-r--r--src/main/Dipole.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/Dipole.h b/src/main/Dipole.h
index 10d8062..c4f7bc0 100644
--- a/src/main/Dipole.h
+++ b/src/main/Dipole.h
@@ -67,6 +67,10 @@ public:
virtual void accept(ElementVisitor& v) {v.visit(this);}
+ virtual Dipole* copy() const {
+ return new Dipole(getEntryPosition(), getExitPosition(), getSectionRadius(), getCurvature(), _magneticField);
+ }
+
};