OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
OpalSolenoid.h
Go to the documentation of this file.
1 #ifndef OPAL_OpalSolenoid_HH
2 #define OPAL_OpalSolenoid_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: OpalSolenoid.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: OpalSolenoid
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 OpalSolenoid
25 // ------------------------------------------------------------------------
27 
28 class OpalSolenoid: public OpalElement {
29 
30 public:
31 
33  enum {
34  KS = COMMON, // The longitudinal magnetic field.
35  DKS, // The longitudinal magnetic field error.
36  FMAPFN, // The Field filename
37  FAST, // Faster but less accurate
39  };
40 
42  OpalSolenoid();
43 
44  virtual ~OpalSolenoid();
45 
47  virtual OpalSolenoid *clone(const std::string &name);
48 
50  virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag);
51 
53  virtual void update();
54 
55 private:
56 
57  // Not implemented.
58  OpalSolenoid(const OpalSolenoid &);
59  void operator=(const OpalSolenoid &);
60 
61  // Clone constructor.
62  OpalSolenoid(const std::string &name, OpalSolenoid *parent);
63 };
64 
65 #endif // OPAL_OpalSolenoid_HH
OpalSolenoid()
Exemplar constructor.
virtual void update()
Update the embedded CLASSIC solenoid.
Interface for basic beam line object.
Definition: ElementBase.h:128
ValueFlag
Switch for value desired on ATTLIST command.
Definition: OpalElement.h:71
virtual ~OpalSolenoid()
virtual OpalSolenoid * clone(const std::string &name)
Make clone.
void operator=(const OpalSolenoid &)
The SOLENOID element.
Definition: OpalSolenoid.h:28
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
Base class for all beam line elements.
Definition: OpalElement.h:41
const std::string name