OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
OpalMultipole.h
Go to the documentation of this file.
1//
2// Class OpalMultipole
3// The MULTIPOLE 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_OpalMultipole_HH
19#define OPAL_OpalMultipole_HH
20
22
23class OpalMultipole : public OpalElement {
24public:
26 enum {
27 KN = COMMON, // The normal field components.
28 DKN, // The normal field component errors.
29 KS, // The skewed field components.
30 DKS, // The skewed field component errors.
31 SIZE
32 };
33
36
37 virtual ~OpalMultipole();
38
40 virtual OpalMultipole* clone(const std::string& name);
41
43 // Handle printing in OPAL-8 format.
44 virtual void print(std::ostream&) const;
45
47 virtual void update();
48
49private:
50 // Not implemented.
53
54 // Clone constructor.
55 OpalMultipole(const std::string& name, OpalMultipole* parent);
56};
57
58#endif // OPAL_OpalMultipole_HH
OpalMultipole(const OpalMultipole &)
virtual ~OpalMultipole()
virtual OpalMultipole * clone(const std::string &name)
Make clone.
virtual void print(std::ostream &) const
Print the object.
void operator=(const OpalMultipole &)
virtual void update()
Update the embedded OPALX multipole.
OpalMultipole()
Exemplar constructor.