OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
OpalSeptum.h
Go to the documentation of this file.
1 //
2 // Class OpalSeptum
3 // The Septum element.
4 //
5 // Copyright (c) 200x - 2020, Paul Scherrer Institut, Villigen PSI, Switzerland
6 // All rights reserved
7 //
8 // This file is part of OPAL.
9 //
10 // OPAL is free software: you can redistribute it and/or modify
11 // it under the terms of the GNU General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with OPAL. If not, see <https://www.gnu.org/licenses/>.
17 //
18 #ifndef OPAL_OpalSeptum_HH
19 #define OPAL_OpalSeptum_HH
20 
21 #include "Elements/OpalElement.h"
22 
23 class OpalWake;
24 
25 class OpalSeptum: public OpalElement {
26 
27 public:
28 
30  enum {
31  XSTART = COMMON, // Start of x coordinate
32  XEND, // End of x coordinate
33  YSTART, // Start of y coordinate
34  YEND, // End of y coordinate
35  WIDTH, // Width of the septum
36  SIZE
37  };
39  OpalSeptum();
40 
41  virtual ~OpalSeptum();
42 
44  virtual OpalSeptum *clone(const std::string &name);
45 
47  virtual void update();
48 
49 private:
50 
51  // Not implemented.
53  void operator=(const OpalSeptum &);
54 
55  // Clone constructor.
56  OpalSeptum(const std::string &name, OpalSeptum *parent);
57 
59 };
60 
61 #endif // OPAL_OpalSeptum_HH
const std::string name
virtual OpalSeptum * clone(const std::string &name)
Make clone.
Definition: OpalSeptum.cpp:61
OpalWake * owk_m
Definition: OpalSeptum.h:58
virtual ~OpalSeptum()
Definition: OpalSeptum.cpp:55
void operator=(const OpalSeptum &)
OpalSeptum(const OpalSeptum &)
OpalSeptum()
Exemplar constructor.
Definition: OpalSeptum.cpp:26
virtual void update()
Update the embedded CLASSIC septum.
Definition: OpalSeptum.cpp:66