OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
OpalPepperPot.h
Go to the documentation of this file.
1 #ifndef OPAL_OpalPepperPot_HH
2 #define OPAL_OpalPepperPot_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: OpalPepperPot.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: OpalPepperPot
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 
24 // Class OpalPepperPot
25 // ------------------------------------------------------------------------
27 
29 
30 class OpalPepperPot: public OpalElement {
31 
32 public:
33 
35  enum {
36  R = COMMON, // The horizontal half-size of a hole
43  };
44 
46  OpalPepperPot();
47 
48  virtual ~OpalPepperPot();
49 
51  virtual OpalPepperPot *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 OpalPepperPot &);
64 
65  // Clone constructor.
66  OpalPepperPot(const std::string &name, OpalPepperPot *parent);
67 
69 };
70 
71 #endif // OPAL_OpalPepperPot_HH
OpalPepperPot()
Exemplar constructor.
Interface for basic beam line object.
Definition: ElementBase.h:128
ValueFlag
Switch for value desired on ATTLIST command.
Definition: OpalElement.h:71
virtual void update()
Update the embedded CLASSIC collimator.
ParticleMatterInteraction * parmatint_m
Definition: OpalPepperPot.h:68
Base class for all beam line elements.
Definition: OpalElement.h:41
virtual OpalPepperPot * clone(const std::string &name)
Make clone.
const std::string name
void operator=(const OpalPepperPot &)
virtual ~OpalPepperPot()
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.