OPAL (Object Oriented Parallel Accelerator Library)
2022.1
OPAL
src
src
Elements
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
22
#include "
Elements/OpalElement.h
"
23
24
class
OpalHKicker
:
public
OpalElement
{
25
26
public
:
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
37
OpalHKicker
();
38
39
virtual
~OpalHKicker
();
40
42
virtual
OpalHKicker
*
clone
(
const
std::string &
name
);
43
45
virtual
void
update
();
46
47
private
:
48
49
// Not implemented.
50
OpalHKicker
(
const
OpalHKicker
&);
51
void
operator=
(
const
OpalHKicker
&);
52
53
// Clone constructor.
54
OpalHKicker
(
const
std::string &
name
,
OpalHKicker
*parent);
55
};
56
57
#endif
// OPAL_OpalHKicker_HH
OpalElement.h
name
const std::string name
Definition:
MaxNormRadialPeak.cpp:32
OpalElement
Definition:
OpalElement.h:28
OpalElement::COMMON
@ COMMON
Definition:
OpalElement.h:56
OpalHKicker
Definition:
OpalHKicker.h:24
OpalHKicker::OpalHKicker
OpalHKicker()
Exemplar constructor.
Definition:
OpalHKicker.cpp:28
OpalHKicker::clone
virtual OpalHKicker * clone(const std::string &name)
Make clone.
Definition:
OpalHKicker.cpp:55
OpalHKicker::KICK
@ KICK
Definition:
OpalHKicker.h:30
OpalHKicker::K0
@ K0
Definition:
OpalHKicker.h:32
OpalHKicker::SIZE
@ SIZE
Definition:
OpalHKicker.h:33
OpalHKicker::DESIGNENERGY
@ DESIGNENERGY
Definition:
OpalHKicker.h:31
OpalHKicker::update
virtual void update()
Update the embedded CLASSIC corrector.
Definition:
OpalHKicker.cpp:60
OpalHKicker::~OpalHKicker
virtual ~OpalHKicker()
Definition:
OpalHKicker.cpp:51
OpalHKicker::OpalHKicker
OpalHKicker(const OpalHKicker &)
OpalHKicker::operator=
void operator=(const OpalHKicker &)
Generated on Thu Oct 20 2022 17:40:11 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.3