Fork me on GitHub

source: svn/trunk/Utilities/Hector/include/H_Quadrupole.h@ 1010

Last change on this file since 1010 was 281, checked in by Xavier Rouby, 16 years ago

new Hector version

File size: 2.0 KB
Line 
1#ifndef _H_Quadrupole_
2#define _H_Quadrupole_
3
4 /* * * * * * * * * * * * * * * * * * * * * * * * * * * *
5 * *
6* --<--<-- A fast simulator --<--<-- *
7* / --<--<-- of particle --<--<-- *
8* ----HECTOR----< *
9* \ -->-->-- transport through -->-->-- *
10* -->-->-- generic beamlines -->-->-- *
11* *
12* JINST 2:P09005 (2007) *
13* X Rouby, J de Favereau, K Piotrzkowski (CP3) *
14* http://www.fynu.ucl.ac.be/hector.html *
15* *
16* Center for Cosmology, Particle Physics and Phenomenology *
17* Universite catholique de Louvain *
18* Louvain-la-Neuve, Belgium *
19 * *
20 * * * * * * * * * * * * * * * * * * * * * * * * * * * */
21
22/// \file H_Quadrupole.h
23/// \brief Class describing quadrupoles.
24
25// local #includes
26#include "H_OpticalElement.h"
27
28/// Abstract class aiming at simulating LHC beam quadrupoles.
29class H_Quadrupole : public H_OpticalElement {
30
31 public:
32 /// Constructors and destructor
33 //@{
34 H_Quadrupole():H_OpticalElement() {}
35 H_Quadrupole(const int dtype, const double s, const double k, const double l) : H_OpticalElement(dtype,s,k,l) {}
36 H_Quadrupole(const string& nameE, const int dtype, const double s, const double k, const double l) : H_OpticalElement(nameE,dtype,s,k,l) {}
37 virtual ~H_Quadrupole() {};
38 //@}
39 virtual H_Quadrupole* clone() const =0 ;
40 virtual void printProperties() const { cout << *this; return;};
41 void init();
42
43 protected:
44 virtual void setTypeString() =0;
45 virtual void setMatrix(const float, const float, const float) = 0;
46
47 friend std::ostream& operator<< (std::ostream& os, const H_Quadrupole& el);
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.