blob: 06cca9a3305a0a2ae3a092488c967ccbdcbcdc95 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*
* Quadrupole.h
*
* Created on: Mar 29, 2011
* Author: jakob
*/
#ifndef QUADRUPOLE_H_
#define QUADRUPOLE_H_
#include <string>
#include "StraightElement.h"
#include "Vector3D.h"
#include "ElementVisitor.h"
namespace vhc {
class Quadrupole: public StraightElement {
private:
double focalizingCoefficient;
public:
Quadrupole(const Vector3D& entry, const Vector3D& exit, double sectionRadius, double focalizingCoefficient, Element* next = NULL);
virtual ~Quadrupole();
virtual Vector3D magneticFieldAt(const Vector3D& position) const;
double getFocalizingCoefficient() const;
void setFocalizingCoefficient(double value);
virtual std::string getType() const;
virtual std::string toString() const;
virtual void accept(const ElementVisitor& v) const;
virtual Quadrupole* clone() const;
};
}
#endif /* QUADRUPOLE_H_ */
|