OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
SequenceMember.cpp
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // $RCSfile: SequenceMember.cpp,v $
3 // ------------------------------------------------------------------------
4 // $Revision: 1.2 $
5 // ------------------------------------------------------------------------
6 // Copyright: see Copyright.readme
7 // ------------------------------------------------------------------------
8 //
9 // Class: SequenceMember
10 // A SequenceMember includes the special data required for OPAL sequences.
11 //
12 // ------------------------------------------------------------------------
13 //
14 // $Date: 2001/08/13 15:16:16 $
15 // $Author: jowett $
16 //
17 // ------------------------------------------------------------------------
18 
19 #include "Lines/SequenceMember.h"
21 
22 
23 // Class SequenceMember
24 // ------------------------------------------------------------------------
25 
27  FlaggedElmPtr(),
28  itsPosition(0.0), itsFlag(ABSOLUTE), itsType(UNKNOWN), OpalElement()
29 {}
30 
31 
33  FlaggedElmPtr(rhs),
34  itsPosition(rhs.itsPosition),
35  itsFlag(rhs.itsFlag),
36  itsType(rhs.itsType),
38 {}
39 
40 
42 {}
43 
44 
45 void SequenceMember::setLength(double drift) {
47 }
@ UNKNOWN
Definition: Fieldmap.h:15
virtual void setElementLength(double length)
Set design length.
Definition: ElementBase.h:436
ElementBase * getElement() const
Get the element pointer.
Definition: ElmPtr.h:58
A section of a beam line.
Definition: FlaggedElmPtr.h:36
A member of a SEQUENCE.
MemberType itsType
Type word.
void setLength(double drift)
Store the drift length for a generated drift.