OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
OpalVacuum.h
Go to the documentation of this file.
1 //
2 // Class OpalVacuum
3 // The class of OPAL Vacuum.
4 //
5 // Copyright (c) 2018-2019, Pedro Calvo, CIEMAT, Spain
6 // All rights reserved
7 //
8 // Implemented as part of the PhD thesis
9 // "Optimizing the radioisotope production of the novel AMIT
10 // superconducting weak focusing cyclotron"
11 //
12 // This file is part of OPAL.
13 //
14 // OPAL is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with OPAL. If not, see <https://www.gnu.org/licenses/>.
21 //
22 #ifndef OPAL_OpalVacuum_HH
23 #define OPAL_OpalVacuum_HH
24 
25 #include "Elements/OpalElement.h"
26 
28 
29 class OpalVacuum: public OpalElement {
30 
31 public:
32 
34  enum {
35  PRESSURE = COMMON, // Pressure in mbar
36  TEMPERATURE, // Temperature of residual gas
37  PMAPFN, // The filename of the mid-plane pressure map
38  PSCALE, // A scalar to scale the P-field
39  GAS, // Type of gas for residual vaccum
40  STOP, // whether the secondary particles are tracked
41  SIZE
42  };
43 
45  OpalVacuum();
46 
47  virtual ~OpalVacuum();
48 
50  virtual OpalVacuum* clone(const std::string& name);
51 
53  virtual void update();
54 
55 private:
56 
57  // Not implemented.
59  void operator=(const OpalVacuum&);
60 
61  // Clone constructor.
62  OpalVacuum(const std::string& name, OpalVacuum* parent);
64 };
65 
66 #endif // OPAL_OpalVacuum_HH
const std::string name
OpalVacuum()
Exemplar constructor.
Definition: OpalVacuum.cpp:30
ParticleMatterInteraction * parmatint_m
Definition: OpalVacuum.h:63
virtual ~OpalVacuum()
Definition: OpalVacuum.cpp:60
virtual OpalVacuum * clone(const std::string &name)
Make clone.
Definition: OpalVacuum.cpp:65
void operator=(const OpalVacuum &)
OpalVacuum(const OpalVacuum &)
virtual void update()
Update the embedded CLASSIC vacuum.
Definition: OpalVacuum.cpp:70