Fork me on GitHub

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

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

new Hector version

File size: 2.0 KB
RevLine 
[3]1#ifndef _H_Quadrupole_
2#define _H_Quadrupole_
3
[281]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 * * * * * * * * * * * * * * * * * * * * * * * * * * * */
[3]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) {}
[216]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() {};
[3]38 //@}
39 virtual H_Quadrupole* clone() const =0 ;
[281]40 virtual void printProperties() const { cout << *this; return;};
[3]41 void init();
42
43 protected:
44 virtual void setTypeString() =0;
45 virtual void setMatrix(const float, const float, const float) = 0;
46
[281]47 friend std::ostream& operator<< (std::ostream& os, const H_Quadrupole& el);
[3]48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.