OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
src
src
Elements
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.
59
OpalVKicker
(
const
OpalVKicker
&);
60
void
operator=
(
const
OpalVKicker
&);
61
62
// Clone constructor.
63
OpalVKicker
(
const
std::string &
name
,
OpalVKicker
*parent);
64
};
65
66
#endif
// OPAL_OpalVKicker_HH
OpalElement.h
name
const std::string name
Definition:
MaxNormRadialPeak.cpp:32
OpalElement
Definition:
OpalElement.h:28
OpalElement::COMMON
@ COMMON
Definition:
OpalElement.h:55
OpalVKicker
Definition:
OpalVKicker.h:25
OpalVKicker::K0
@ K0
Definition:
OpalVKicker.h:33
OpalVKicker::KICK
@ KICK
Definition:
OpalVKicker.h:31
OpalVKicker::DESIGNENERGY
@ DESIGNENERGY
Definition:
OpalVKicker.h:32
OpalVKicker::SIZE
@ SIZE
Definition:
OpalVKicker.h:34
OpalVKicker::update
virtual void update()
Update the embedded CLASSIC corrector.
Definition:
OpalVKicker.cpp:59
OpalVKicker::clone
virtual OpalVKicker * clone(const std::string &name)
Make clone.
Definition:
OpalVKicker.cpp:54
OpalVKicker::operator=
void operator=(const OpalVKicker &)
OpalVKicker::OpalVKicker
OpalVKicker()
Exemplar constructor.
Definition:
OpalVKicker.cpp:27
OpalVKicker::OpalVKicker
OpalVKicker(const OpalVKicker &)
OpalVKicker::~OpalVKicker
virtual ~OpalVKicker()
Definition:
OpalVKicker.cpp:50
Generated on Wed Aug 25 2021 16:41:04 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.1