OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
OpalWire.h
Go to the documentation of this file.
1 #ifndef OPAL_OpalWire_HH
2 #define OPAL_OpalWire_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: OpalSlit.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: OpalWire
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:39 $
17 // $Author: Andreas Adelmann $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "Elements/OpalElement.h"
22 
24 // Class OpalWire
25 // ------------------------------------------------------------------------
27 
28 class OpalWire: public OpalElement {
29 
30 public:
31 
33  enum {
34  XSIZE = COMMON, // The horizontal half-size.
36  XPOS, // The horizontal position.
37  YPOS, // The vertical position.
40  };
41 
43  OpalWire();
44 
45  virtual ~OpalWire();
46 
48  virtual OpalWire *clone(const std::string &name);
49 
51  virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag);
52 
54  virtual void update();
55 
56 private:
57 
58  // Not implemented.
59  OpalWire(const OpalWire &);
60  void operator=(const OpalWire &);
61 
62  // Clone constructor.
63  OpalWire(const std::string &name, OpalWire *parent);
65 };
66 
67 #endif // OPAL_OpalWire_HH
ParticleMatterInteraction * parmatint_m
Definition: OpalWire.h:64
Interface for basic beam line object.
Definition: ElementBase.h:128
ValueFlag
Switch for value desired on ATTLIST command.
Definition: OpalElement.h:71
void operator=(const OpalWire &)
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
Definition: OpalWire.cpp:72
virtual OpalWire * clone(const std::string &name)
Make clone.
Definition: OpalWire.cpp:67
virtual ~OpalWire()
Definition: OpalWire.cpp:61
The ECOLLIMATOR element.
Definition: OpalWire.h:28
Base class for all beam line elements.
Definition: OpalElement.h:41
virtual void update()
Update the embedded CLASSIC collimator.
Definition: OpalWire.cpp:82
const std::string name
OpalWire()
Exemplar constructor.
Definition: OpalWire.cpp:27