OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
OpalCCollimator.h
Go to the documentation of this file.
1 #ifndef OPAL_OpalCCollimator_HH
2 #define OPAL_OpalCCollimator_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: OpalCCollimator
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:39 $
17 // $Author: Andreas Adelmann, Jianjun Yang $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "Elements/OpalElement.h"
22 
24 // Class OpalCCollimator
25 // ------------------------------------------------------------------------
27 
29 
30 public:
31 
33  enum {
34  XSTART = COMMON, // Start of x coordinate
35  XEND, // End of x coordinate
36  YSTART, // Start of y coordinate
37  YEND, // End of y coordinate
38  ZSTART, // Top boundary
39  ZEND, // Bottom boundary
40  WIDTH, // The width of collimator
41  OUTFN, // Output filename
43  };
44 
47 
48  virtual ~OpalCCollimator();
49 
51  virtual OpalCCollimator *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 OpalCCollimator &);
64 
65  // Clone constructor.
66  OpalCCollimator(const std::string &name, OpalCCollimator *parent);
68 };
69 
70 #endif // OPAL_OpalCCollimator_HH
Interface for basic beam line object.
Definition: ElementBase.h:128
ValueFlag
Switch for value desired on ATTLIST command.
Definition: OpalElement.h:71
virtual ~OpalCCollimator()
The CCOLLIMATOR element.
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
void operator=(const OpalCCollimator &)
virtual void update()
Update the embedded CLASSIC collimator.
Base class for all beam line elements.
Definition: OpalElement.h:41
OpalCCollimator()
Exemplar constructor.
const std::string name
virtual OpalCCollimator * clone(const std::string &name)
Make clone.
ParticleMatterInteraction * parmatint_m