OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
OpalParallelPlate.h
Go to the documentation of this file.
1 #ifndef OPAL_OpalParallelPlate_HH
2 #define OPAL_OpalParallelPlate_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: OpalParallelPlate.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: OpalParallelPlate
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:39 $
17 // $Author: Andreas Adelmann $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "Elements/OpalElement.h"
22 
23 class BoundaryGeometry;
24 
25 // Class OpalParallelPlate
26 // ------------------------------------------------------------------------
28 
29 
31 
32 public:
33 
35  enum {
36  VOLT = COMMON, // The peak voltage.
37  GEOMETRY, // geometry of boundary
38  FREQ, // The RF frequency.
39  LAG, // The phase lag.
40 
41  PLENGTH, //distance between two plates or length in s direction
43  };
44 
47 
48  virtual ~OpalParallelPlate();
49 
51  virtual OpalParallelPlate *clone(const std::string &name);
52 
54  virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag);
55 
57  virtual void update();
58 
59 private:
60 
61  // Not implemented.
63  void operator=(const OpalParallelPlate &);
64 
65  // Clone constructor.
66  OpalParallelPlate(const std::string &name, OpalParallelPlate *parent);
67 
68 
69 
71 
72 
73 };
74 
75 #endif // OPAL_OpalParallelPlate_HH
Interface for basic beam line object.
Definition: ElementBase.h:128
ValueFlag
Switch for value desired on ATTLIST command.
Definition: OpalElement.h:71
BoundaryGeometry * obgeo_m
Base class for all beam line elements.
Definition: OpalElement.h:41
OpalParallelPlate()
Exemplar constructor.
void operator=(const OpalParallelPlate &)
The ParallelPlate element.
virtual void update()
Update the embedded CLASSIC cavity.
const std::string name
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
virtual OpalParallelPlate * clone(const std::string &name)
Make clone.