[1360] | 1 | #ifndef _H_Quadrupole_
|
---|
| 2 | #define _H_Quadrupole_
|
---|
| 3 |
|
---|
[1365] | 4 | /*
|
---|
| 5 | ---- Hector the simulator ----
|
---|
| 6 | A fast simulator of particles through generic beamlines.
|
---|
| 7 | J. de Favereau, X. Rouby ~~~ hector_devel@cp3.phys.ucl.ac.be
|
---|
[1360] | 8 |
|
---|
[1365] | 9 | http://www.fynu.ucl.ac.be/hector.html
|
---|
| 10 |
|
---|
| 11 | Centre de Physique des Particules et de Phénoménologie (CP3)
|
---|
| 12 | Université Catholique de Louvain (UCL)
|
---|
| 13 | */
|
---|
| 14 |
|
---|
[1360] | 15 | /// \file H_Quadrupole.h
|
---|
| 16 | /// \brief Class describing quadrupoles.
|
---|
| 17 |
|
---|
| 18 | // local #includes
|
---|
| 19 | #include "H_OpticalElement.h"
|
---|
| 20 |
|
---|
| 21 | /// Abstract class aiming at simulating LHC beam quadrupoles.
|
---|
| 22 | class H_Quadrupole : public H_OpticalElement {
|
---|
| 23 |
|
---|
| 24 | public:
|
---|
| 25 | /// Constructors and destructor
|
---|
| 26 | //@{
|
---|
| 27 | H_Quadrupole():H_OpticalElement() {}
|
---|
| 28 | H_Quadrupole(const int dtype, const double s, const double k, const double l) : H_OpticalElement(dtype,s,k,l) {}
|
---|
[1365] | 29 | H_Quadrupole(const string nameE, const int dtype, const double s, const double k, const double l) : H_OpticalElement(nameE,dtype,s,k,l) {}
|
---|
| 30 | virtual ~H_Quadrupole() {return;};
|
---|
[1360] | 31 | //@}
|
---|
[1365] | 32 | virtual void printProperties() const;
|
---|
[1360] | 33 | void init();
|
---|
| 34 |
|
---|
| 35 | protected:
|
---|
| 36 | virtual void setTypeString() =0;
|
---|
[1365] | 37 | virtual void setMatrix(const float, const float, const float) const =0;
|
---|
[1360] | 38 |
|
---|
| 39 | };
|
---|
| 40 |
|
---|
| 41 | #endif
|
---|