OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
OpalHKicker.h
Go to the documentation of this file.
1//
2// Class OpalHKicker
3// The HKICKER element.
4// Note the sign convention: A positive kick bend particles to positive x.
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_OpalHKicker_HH
20#define OPAL_OpalHKicker_HH
21
23
24class OpalHKicker: public OpalElement {
25
26public:
27
29 enum {
30 KICK = COMMON, // The kicker strength.
31 DESIGNENERGY, // The mean kinetic energy at exit
32 K0, // The magnetic field
33 SIZE
34 };
35
38
39 virtual ~OpalHKicker();
40
42 virtual OpalHKicker *clone(const std::string &name);
43
45 virtual void update();
46
47private:
48
49 // Not implemented.
51 void operator=(const OpalHKicker &);
52
53 // Clone constructor.
54 OpalHKicker(const std::string &name, OpalHKicker *parent);
55};
56
57#endif // OPAL_OpalHKicker_HH
const std::string name
OpalHKicker()
Exemplar constructor.
Definition: OpalHKicker.cpp:28
virtual OpalHKicker * clone(const std::string &name)
Make clone.
Definition: OpalHKicker.cpp:55
virtual void update()
Update the embedded CLASSIC corrector.
Definition: OpalHKicker.cpp:60
virtual ~OpalHKicker()
Definition: OpalHKicker.cpp:51
OpalHKicker(const OpalHKicker &)
void operator=(const OpalHKicker &)