OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
src
src
Elements
OpalSolenoid.h
Go to the documentation of this file.
1
//
2
// Class OpalSolenoid
3
// The SOLENOID 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_OpalSolenoid_HH
19
#define OPAL_OpalSolenoid_HH
20
21
#include "
Elements/OpalElement.h
"
22
23
24
class
OpalSolenoid
:
public
OpalElement
{
25
26
public
:
27
29
enum
{
30
KS
=
COMMON
,
// The longitudinal magnetic field.
31
DKS
,
// The longitudinal magnetic field error.
32
FMAPFN
,
// The Field filename
33
FAST
,
// Faster but less accurate
34
SIZE
35
};
36
38
OpalSolenoid
();
39
40
virtual
~OpalSolenoid
();
41
43
virtual
OpalSolenoid
*
clone
(
const
std::string &
name
);
44
46
virtual
void
update
();
47
48
private
:
49
50
// Not implemented.
51
OpalSolenoid
(
const
OpalSolenoid
&);
52
void
operator=
(
const
OpalSolenoid
&);
53
54
// Clone constructor.
55
OpalSolenoid
(
const
std::string &
name
,
OpalSolenoid
*parent);
56
};
57
58
#endif
// OPAL_OpalSolenoid_HH
OpalElement.h
name
const std::string name
Definition:
MaxNormRadialPeak.cpp:32
OpalElement
Definition:
OpalElement.h:28
OpalElement::COMMON
@ COMMON
Definition:
OpalElement.h:55
OpalSolenoid
Definition:
OpalSolenoid.h:24
OpalSolenoid::~OpalSolenoid
virtual ~OpalSolenoid()
Definition:
OpalSolenoid.cpp:49
OpalSolenoid::clone
virtual OpalSolenoid * clone(const std::string &name)
Make clone.
Definition:
OpalSolenoid.cpp:53
OpalSolenoid::OpalSolenoid
OpalSolenoid()
Exemplar constructor.
Definition:
OpalSolenoid.cpp:25
OpalSolenoid::OpalSolenoid
OpalSolenoid(const OpalSolenoid &)
OpalSolenoid::FAST
@ FAST
Definition:
OpalSolenoid.h:33
OpalSolenoid::DKS
@ DKS
Definition:
OpalSolenoid.h:31
OpalSolenoid::FMAPFN
@ FMAPFN
Definition:
OpalSolenoid.h:32
OpalSolenoid::KS
@ KS
Definition:
OpalSolenoid.h:30
OpalSolenoid::SIZE
@ SIZE
Definition:
OpalSolenoid.h:34
OpalSolenoid::update
virtual void update()
Update the embedded CLASSIC solenoid.
Definition:
OpalSolenoid.cpp:58
OpalSolenoid::operator=
void operator=(const OpalSolenoid &)
Generated on Wed Aug 25 2021 16:41:04 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.1