OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
OpalSeptum.h
Go to the documentation of this file.
1 #ifndef OPAL_OpalSeptum_HH
2 #define OPAL_OpalSeptum_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: OpalSeptum.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: OpalSeptum
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2009/09/21 10:08:06 $
17 // $Author: bi $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "Elements/OpalElement.h"
22 
23 class OpalWake;
24 
25 // Class OpalSeptum
26 // ------------------------------------------------------------------------
28 
29 class OpalSeptum: public OpalElement {
30 
31 public:
32 
34  enum {
35  XSTART = COMMON, // Start of x coordinate
36  XEND, // End of x coordinate
37  YSTART, // Start of y coordinate
38  YEND, // End of y coordinate
39  WIDTH, // Width of the septum
40  OUTFN, // Output filename
42  };
44  OpalSeptum();
45 
46  virtual ~OpalSeptum();
47 
49  virtual OpalSeptum *clone(const std::string &name);
50 
52  virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag);
53 
55  virtual void update();
56 
57 private:
58 
59  // Not implemented.
60  OpalSeptum(const OpalSeptum &);
61  void operator=(const OpalSeptum &);
62 
63  // Clone constructor.
64  OpalSeptum(const std::string &name, OpalSeptum *parent);
65 
67 };
68 
69 #endif // OPAL_OpalSeptum_HH
virtual ~OpalSeptum()
Definition: OpalSeptum.cpp:68
Interface for basic beam line object.
Definition: ElementBase.h:128
ValueFlag
Switch for value desired on ATTLIST command.
Definition: OpalElement.h:71
virtual OpalSeptum * clone(const std::string &name)
Make clone.
Definition: OpalSeptum.cpp:74
void operator=(const OpalSeptum &)
OpalWake * owk_m
Definition: OpalSeptum.h:66
The WAKE definition.
Definition: OpalWake.h:34
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
Definition: OpalSeptum.cpp:79
OpalSeptum()
Exemplar constructor.
Definition: OpalSeptum.cpp:30
virtual void update()
Update the embedded CLASSIC septum.
Definition: OpalSeptum.cpp:85
Base class for all beam line elements.
Definition: OpalElement.h:41
The Septum element.
Definition: OpalSeptum.h:29
const std::string name