OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
OpalDegrader.h
Go to the documentation of this file.
1 #ifndef OPAL_OpalDegrader_HH
2 #define OPAL_OpalDegrader_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: OpalDegrader.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: OpalDegrader
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 
25 // Class OpalDegrader
26 // ------------------------------------------------------------------------
28 
29 class OpalDegrader: public OpalElement {
30 
31 public:
32 
34  enum {
35  XSIZE = COMMON, // not used
36  YSIZE, // not used
39  };
40 
42  OpalDegrader();
43 
44  virtual ~OpalDegrader();
45 
47  virtual OpalDegrader *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  OpalDegrader(const OpalDegrader &);
59  void operator=(const OpalDegrader &);
60 
61  // Clone constructor.
62  OpalDegrader(const std::string &name, OpalDegrader *parent);
63 
65 };
66 
67 #endif // OPAL_OpalDegrader_HH
Interface for basic beam line object.
Definition: ElementBase.h:128
ValueFlag
Switch for value desired on ATTLIST command.
Definition: OpalElement.h:71
ParticleMatterInteraction * parmatint_m
Definition: OpalDegrader.h:64
The DEGRADER element.
Definition: OpalDegrader.h:29
Base class for all beam line elements.
Definition: OpalElement.h:41
OpalDegrader()
Exemplar constructor.
virtual ~OpalDegrader()
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
virtual void update()
Update the embedded CLASSIC collimator.
const std::string name
virtual OpalDegrader * clone(const std::string &name)
Make clone.
void operator=(const OpalDegrader &)