OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
OpalVKicker.h
Go to the documentation of this file.
1 //
2 // Class OpalVKicker
3 // The VKICKER element.
4 // Note the sign convention: A positive kick bend particles to positive y.
5 //
6 // Copyright (c) 200x - 2020, Paul Scherrer Institut, Villigen PSI, Switzerland
7 // All rights reserved
8 //
9 // This file is part of OPAL.
10 //
11 // OPAL is free software: you can redistribute it and/or modify
12 // it under the terms of the GNU General Public License as published by
13 // the Free Software Foundation, either version 3 of the License, or
14 // (at your option) any later version.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with OPAL. If not, see <https://www.gnu.org/licenses/>.
18 //
19 #ifndef OPAL_OpalVKicker_HH
20 #define OPAL_OpalVKicker_HH
21 
22 #include "Elements/OpalElement.h"
23 
24 
25 class OpalVKicker: public OpalElement {
26 
27 public:
28 
30  enum {
31  KICK = COMMON, // The kicker strength.
32  DESIGNENERGY, // The mean kinetic energy at exit
33  K0, // The magnetic field
34  SIZE
35  };
36 
38  OpalVKicker();
39 
40  virtual ~OpalVKicker();
41 
43  virtual OpalVKicker *clone(const std::string &name);
44 
45 
46  // JMJ 18/12/2000 Following method not needed, commented out, delete after next CVS commit.
47  //BEGIN JMJ 15/12/2000, adding missing print method
48  // Print the kicker
49  // Handle printing in OPAL-8 format.
50  // virtual void print(std::ostream &) const;
51  //END JMJ 15/12/2000, adding missing print method
52 
54  virtual void update();
55 
56 private:
57 
58  // Not implemented.
60  void operator=(const OpalVKicker &);
61 
62  // Clone constructor.
63  OpalVKicker(const std::string &name, OpalVKicker *parent);
64 };
65 
66 #endif // OPAL_OpalVKicker_HH
const std::string name
virtual void update()
Update the embedded CLASSIC corrector.
Definition: OpalVKicker.cpp:59
virtual OpalVKicker * clone(const std::string &name)
Make clone.
Definition: OpalVKicker.cpp:54
void operator=(const OpalVKicker &)
OpalVKicker()
Exemplar constructor.
Definition: OpalVKicker.cpp:27
OpalVKicker(const OpalVKicker &)
virtual ~OpalVKicker()
Definition: OpalVKicker.cpp:50