OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
OpalQuadrupole.h
Go to the documentation of this file.
1 //
2 // Class OpalQuadrupole
3 // The QUADRUPOLE 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_OpalQuadrupole_HH
19 #define OPAL_OpalQuadrupole_HH
20 
21 #include "Elements/OpalElement.h"
22 
24 
25 class OpalQuadrupole: public OpalElement {
26 
27 public:
28 
30  enum {
31  K1 = COMMON, // The normal quadrupole coefficient.
32  DK1, // The normal quadupole coefficient error.
33  K1S, // The skew quadrupole coefficient.
34  DK1S, // The skew quadrupole coefficient error.
35  NSLICES, // The number of slices / steps per element for map tracking
36  SIZE
37  };
38 
41 
42  virtual ~OpalQuadrupole();
43 
45  virtual OpalQuadrupole* clone(const std::string& name);
46 
48  // Handle printing in OPAL-8 format.
49  virtual void print(std::ostream&) const;
50 
52  virtual void update();
53 
54 private:
55 
56  // Not implemented.
58  void operator=(const OpalQuadrupole&);
59 
60  // Clone constructor.
61  OpalQuadrupole(const std::string& name, OpalQuadrupole* parent);
62 
64 };
65 
66 #endif // OPAL_OpalQuadrupole_HH
const std::string name
virtual void print(std::ostream &) const
Print the quadrupole.
virtual ~OpalQuadrupole()
virtual OpalQuadrupole * clone(const std::string &name)
Make clone.
void operator=(const OpalQuadrupole &)
ParticleMatterInteraction * parmatint_m
OpalQuadrupole(const OpalQuadrupole &)
OpalQuadrupole()
Exemplar constructor.
virtual void update()
Update the embedded CLASSIC multipole.