OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
OpalBeamStripping.h
Go to the documentation of this file.
1 #ifndef OPAL_OpalBeamStripping_HH
2 #define OPAL_OpalBeamStripping_HH
3 
4 // ------------------------------------------------------------------------
5 // Copyright: see Copyright.readme
6 // ------------------------------------------------------------------------
7 // Class: OpalBeamStripping
8 // ------------------------------------------------------------------------
9 // $Date: 2018/11 $
10 // $Author: PedroCalvo$
11 // ------------------------------------------------------------------------
12 
13 #include "Elements/OpalElement.h"
14 
16 // Class OpalBeamStripping
17 // ------------------------------------------------------------------------
19 
21 
22 public:
23 
25  enum {
26  PRESSURE = COMMON, // Pressure in mbar
27  TEMPERATURE, // Temperature of residual gas
28  PMAPFN, // The filename of the mid-plane pressure map
29  PSCALE, // A scalar to scale the P-field
30  GAS, // Type of gas for residual vaccum
31  STOP, // whether the secondary particles are tracked
33  };
34 
37 
38  virtual ~OpalBeamStripping();
39 
41  virtual OpalBeamStripping *clone(const std::string &name);
42 
44  virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag);
45 
47  virtual void update();
48 
49 private:
50 
51  // Not implemented.
53  void operator=(const OpalBeamStripping &);
54 
55  // Clone constructor.
56  OpalBeamStripping(const std::string &name, OpalBeamStripping *parent);
58 };
59 
60 #endif // OPAL_OpalBeamStripping_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
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
virtual void update()
Update the embedded CLASSIC beam stripping.
Base class for all beam line elements.
Definition: OpalElement.h:41
OpalBeamStripping()
Exemplar constructor.
virtual OpalBeamStripping * clone(const std::string &name)
Make clone.
The BEAMSTRIPPING element.
const std::string name
void operator=(const OpalBeamStripping &)