OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
OpalPatch.h
Go to the documentation of this file.
1 #ifndef OPAL_OpalPatch_HH
2 #define OPAL_OpalPatch_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: OpalPatch.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: OpalPatch
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:40 $
17 // $Author: Andreas Adelmann $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "Elements/OpalElement.h"
22 
23 
24 // Class OpalPatch
25 // ------------------------------------------------------------------------
27 
28 class OpalPatch: public OpalElement {
29 
30 public:
31 
33  enum {
34  HORD = COMMON, // The horizontal orbit displacement.
35  VERTD, // The vertical orbit displacement.
36  LONGD, // The longitudinal orbit displacement.
37  VX, // The rotation around the x-axis.
38  VY, // The rotation around the y-axis.
39  VS, // The rotation around the s-axis.
41  };
42 
44  OpalPatch();
45 
46  virtual ~OpalPatch();
47 
49  virtual OpalPatch *clone(const std::string &name);
50 
52  // Return true.
53  virtual bool isPatch() const;
54 
56  virtual void update();
57 
58 private:
59 
60  // Not implemented.
61  OpalPatch(const OpalPatch &);
62  void operator=(const OpalPatch &);
63 
64  // Clone constructor.
65  OpalPatch(const std::string &name, OpalPatch *parent);
66 };
67 
68 #endif // OPAL_OpalPatch_HH
virtual bool isPatch() const
Test for patch.
Definition: OpalPatch.cpp:59
virtual ~OpalPatch()
Definition: OpalPatch.cpp:50
OpalPatch()
Exemplar constructor.
Definition: OpalPatch.cpp:27
Base class for all beam line elements.
Definition: OpalElement.h:41
void operator=(const OpalPatch &)
virtual void update()
Update the embedded CLASSIC patch.
Definition: OpalPatch.cpp:64
The PATCH element.
Definition: OpalPatch.h:28
virtual OpalPatch * clone(const std::string &name)
Make clone.
Definition: OpalPatch.cpp:54
const std::string name